From f39c02855ab71c3a7017c25886dc6bcee5c3ec75 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:33:53 -0700 Subject: [PATCH] Update AutoRest C# version to 3.0.0-beta.20240404.1 (#43204) * Update Generator Version 3.0.0-beta.20240404.1 * Update SDK codes he_mi_3 * Update SDK codes de_he_2 * Update SDK codes ad_co_0 * Update SDK codes sq_wo_6 * Update SDK codes mi_pu_4 * Update SDK codes pu_sq_5 * Update SDK codes co_de_1 * Build fix * Build fix #2 * Build fix #3 --------- Co-authored-by: Alexander Sher --- eng/Packages.Data.props | 2 +- eng/emitter-package-lock.json | 22 +++++++++---------- eng/emitter-package.json | 12 +++++----- .../AttestOpenEnclaveRequest.Serialization.cs | 8 +++++++ .../AttestSgxEnclaveRequest.Serialization.cs | 8 +++++++ .../AttestationResponse.Serialization.cs | 8 +++++++ .../Models/AttestationResult.Serialization.cs | 9 ++++++++ .../Models/CloudError.Serialization.cs | 8 +++++++ .../Models/CloudErrorBody.Serialization.cs | 8 +++++++ .../Models/InitTimeData.Serialization.cs | 8 +++++++ .../Models/JsonWebKey.Serialization.cs | 16 ++++++++++++++ .../Models/JsonWebKeySet.Serialization.cs | 8 +++++++ ...cyCertificateModification.Serialization.cs | 17 ++++++++++++++ ...ficatesModificationResult.Serialization.cs | 17 ++++++++++++++ ...ertificatesModifyResponse.Serialization.cs | 8 +++++++ ...olicyCertificatesResponse.Serialization.cs | 8 +++++++ .../PolicyCertificatesResult.Serialization.cs | 9 ++++++++ .../PolicyModificationResult.Serialization.cs | 9 ++++++++ .../Models/PolicyResponse.Serialization.cs | 8 +++++++ .../Models/RuntimeData.Serialization.cs | 8 +++++++ .../TpmAttestationRequest.Serialization.cs | 8 +++++++ .../TpmAttestationResponse.Serialization.cs | 8 +++++++ .../Models/AnswerSpan.Serialization.cs | 8 +++++++ .../AnswersFromTextOptions.Serialization.cs | 8 +++++++ .../AnswersFromTextResult.Serialization.cs | 8 +++++++ .../Models/AnswersOptions.Serialization.cs | 8 +++++++ .../Models/AnswersResult.Serialization.cs | 8 +++++++ .../Generated/Models/Error.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../Models/InnerErrorModel.Serialization.cs | 8 +++++++ .../KnowledgeBaseAnswer.Serialization.cs | 8 +++++++ ...nowledgeBaseAnswerContext.Serialization.cs | 8 +++++++ ...KnowledgeBaseAnswerDialog.Serialization.cs | 8 +++++++ ...KnowledgeBaseAnswerPrompt.Serialization.cs | 8 +++++++ .../Models/MetadataFilter.Serialization.cs | 8 +++++++ .../Models/MetadataRecord.Serialization.cs | 8 +++++++ .../Models/QueryFilters.Serialization.cs | 8 +++++++ .../ShortAnswerOptions.Serialization.cs | 8 +++++++ .../Models/TextAnswer.Serialization.cs | 8 +++++++ .../Models/TextDocument.Serialization.cs | 8 +++++++ .../AlphaIdConfiguration.Serialization.cs | 16 ++++++++++++++ .../CommunicationError.Serialization.cs | 8 +++++++ ...ommunicationErrorResponse.Serialization.cs | 8 +++++++ ...ParticipantFailedInternal.Serialization.cs | 8 +++++++ ...articipantRequestInternal.Serialization.cs | 8 +++++++ ...rticipantResponseInternal.Serialization.cs | 8 +++++++ ...ticipantSucceededInternal.Serialization.cs | 8 +++++++ ...AnswerCallRequestInternal.Serialization.cs | 8 +++++++ .../AnswerFailedInternal.Serialization.cs | 8 +++++++ .../Models/AzureOpenAIDialog.Serialization.cs | 16 ++++++++++++++ .../AzureOpenAIDialogUpdate.Serialization.cs | 8 +++++++ .../Models/BaseDialog.Serialization.cs | 16 ++++++++++++++ .../BlobStorageInternal.Serialization.cs | 8 +++++++ .../Models/CallConnected.Serialization.cs | 8 +++++++ ...nectionPropertiesInternal.Serialization.cs | 8 +++++++ .../Models/CallDisconnected.Serialization.cs | 8 +++++++ ...telligenceOptionsInternal.Serialization.cs | 8 +++++++ .../CallLocatorInternal.Serialization.cs | 8 +++++++ .../CallParticipantInternal.Serialization.cs | 8 +++++++ ...lTransferAcceptedInternal.Serialization.cs | 8 +++++++ .../CallTransferFailed.Serialization.cs | 8 +++++++ ...ParticipantFailedInternal.Serialization.cs | 8 +++++++ ...articipantRequestInternal.Serialization.cs | 8 +++++++ ...rticipantResponseInternal.Serialization.cs | 8 +++++++ ...ticipantSucceededInternal.Serialization.cs | 8 +++++++ .../ChannelAffinityInternal.Serialization.cs | 8 +++++++ .../Models/ChoiceResult.Serialization.cs | 8 +++++++ .../CollectTonesResult.Serialization.cs | 8 +++++++ .../CommunicationError.Serialization.cs | 8 +++++++ ...ommunicationErrorResponse.Serialization.cs | 8 +++++++ ...municationIdentifierModel.Serialization.cs | 16 ++++++++++++++ ...cationUserIdentifierModel.Serialization.cs | 17 ++++++++++++++ ...ecognitionRequestInternal.Serialization.cs | 8 +++++++ ...ousDtmfRecognitionStopped.Serialization.cs | 8 +++++++ ...DtmfRecognitionToneFailed.Serialization.cs | 8 +++++++ ...mfRecognitionToneReceived.Serialization.cs | 8 +++++++ .../CreateCallFailedInternal.Serialization.cs | 8 +++++++ ...CreateCallRequestInternal.Serialization.cs | 8 +++++++ ...tomCallingContextInternal.Serialization.cs | 8 +++++++ .../DialogCompletedInternal.Serialization.cs | 8 +++++++ .../DialogConsentInternal.Serialization.cs | 8 +++++++ .../DialogFailedInternal.Serialization.cs | 8 +++++++ .../DialogHangupInternal.Serialization.cs | 8 +++++++ ...logLanguageChangeInternal.Serialization.cs | 8 +++++++ ...SensitivityUpdateInternal.Serialization.cs | 8 +++++++ .../DialogStartedInternal.Serialization.cs | 8 +++++++ ...alogStateResponseInternal.Serialization.cs | 8 +++++++ .../DialogTransferInternal.Serialization.cs | 8 +++++++ .../Models/DialogUpdateBase.Serialization.cs | 8 +++++++ .../DialogUpdatedInternal.Serialization.cs | 8 +++++++ .../DtmfOptionsInternal.Serialization.cs | 8 +++++++ .../Models/DtmfResult.Serialization.cs | 8 +++++++ .../ExternalStorageInternal.Serialization.cs | 8 +++++++ .../FileSourceInternal.Serialization.cs | 8 +++++++ ...ticipantsResponseInternal.Serialization.cs | 8 +++++++ .../Models/HoldFailed.Serialization.cs | 8 +++++++ .../HoldRequestInternal.Serialization.cs | 8 +++++++ ...aStreamingOptionsInternal.Serialization.cs | 8 +++++++ ...ftTeamsAppIdentifierModel.Serialization.cs | 16 ++++++++++++++ ...tTeamsUserIdentifierModel.Serialization.cs | 16 ++++++++++++++ .../MuteParticipantResult.Serialization.cs | 8 +++++++ ...rticipantsRequestInternal.Serialization.cs | 8 +++++++ ...rticipantsUpdatedInternal.Serialization.cs | 8 +++++++ ...honeNumberIdentifierModel.Serialization.cs | 17 ++++++++++++++ .../Models/PlayCanceled.Serialization.cs | 8 +++++++ .../Models/PlayCompleted.Serialization.cs | 8 +++++++ .../Models/PlayFailed.Serialization.cs | 8 +++++++ .../PlayOptionsInternal.Serialization.cs | 8 +++++++ .../PlayRequestInternal.Serialization.cs | 8 +++++++ .../PlaySourceInternal.Serialization.cs | 8 +++++++ .../PowerVirtualAgentsDialog.Serialization.cs | 16 ++++++++++++++ .../Models/RecognitionChoice.Serialization.cs | 16 ++++++++++++++ .../Models/RecognizeCanceled.Serialization.cs | 8 +++++++ ...ecognizeCompletedInternal.Serialization.cs | 8 +++++++ .../Models/RecognizeFailed.Serialization.cs | 8 +++++++ .../RecognizeOptionsInternal.Serialization.cs | 8 +++++++ .../RecognizeRequestInternal.Serialization.cs | 8 +++++++ .../RecordingStateChanged.Serialization.cs | 8 +++++++ .../RecordingStateResult.Serialization.cs | 8 +++++++ ...directCallRequestInternal.Serialization.cs | 8 +++++++ ...RejectCallRequestInternal.Serialization.cs | 8 +++++++ ...ParticipantFailedInternal.Serialization.cs | 8 +++++++ ...articipantRequestInternal.Serialization.cs | 8 +++++++ ...rticipantResponseInternal.Serialization.cs | 8 +++++++ ...ticipantSucceededInternal.Serialization.cs | 8 +++++++ .../Models/ResultInformation.Serialization.cs | 8 +++++++ ...tmfTonesCompletedInternal.Serialization.cs | 8 +++++++ ...ndDtmfTonesFailedInternal.Serialization.cs | 8 +++++++ ...dDtmfTonesRequestInternal.Serialization.cs | 8 +++++++ .../SendDtmfTonesResult.Serialization.cs | 8 +++++++ .../SpeechOptionsInternal.Serialization.cs | 8 +++++++ .../Models/SpeechResult.Serialization.cs | 8 +++++++ .../SsmlSourceInternal.Serialization.cs | 8 +++++++ ...lRecordingRequestInternal.Serialization.cs | 8 +++++++ ...tartDialogRequestInternal.Serialization.cs | 8 +++++++ ...tHoldMusicRequestInternal.Serialization.cs | 8 +++++++ ...nscriptionRequestInternal.Serialization.cs | 8 +++++++ ...pHoldMusicRequestInternal.Serialization.cs | 8 +++++++ ...nscriptionRequestInternal.Serialization.cs | 8 +++++++ ...anceRecordingStateChanged.Serialization.cs | 8 +++++++ ...eamsRecordingStateChanged.Serialization.cs | 8 +++++++ .../TextSourceInternal.Serialization.cs | 8 +++++++ .../TranscriptionFailed.Serialization.cs | 8 +++++++ ...nscriptionOptionsInternal.Serialization.cs | 8 +++++++ .../TranscriptionStarted.Serialization.cs | 8 +++++++ .../TranscriptionStopped.Serialization.cs | 8 +++++++ .../TranscriptionUpdate.Serialization.cs | 8 +++++++ .../TranscriptionUpdated.Serialization.cs | 8 +++++++ ...erCallToParticipantResult.Serialization.cs | 8 +++++++ ...articipantRequestInternal.Serialization.cs | 8 +++++++ .../UnholdRequestInternal.Serialization.cs | 8 +++++++ .../Models/UnknownDialog.Serialization.cs | 16 ++++++++++++++ .../UnmuteParticipantResult.Serialization.cs | 8 +++++++ ...rticipantsRequestInternal.Serialization.cs | 8 +++++++ ...dateDialogRequestInternal.Serialization.cs | 8 +++++++ ...nscriptionRequestInternal.Serialization.cs | 8 +++++++ .../Models/UserConsent.Serialization.cs | 8 +++++++ ...csCallParticipantInternal.Serialization.cs | 8 +++++++ ...articipantsFailedInternal.Serialization.cs | 8 +++++++ ...rticipantsRequestInternal.Serialization.cs | 8 +++++++ ...ticipantsResponseInternal.Serialization.cs | 8 +++++++ ...icipantsSucceededInternal.Serialization.cs | 8 +++++++ ...AnswerCallRequestInternal.Serialization.cs | 8 +++++++ .../Models/CallConnected.Serialization.cs | 8 +++++++ ...nectionPropertiesInternal.Serialization.cs | 8 +++++++ .../Models/CallDisconnected.Serialization.cs | 8 +++++++ .../CallLocatorInternal.Serialization.cs | 8 +++++++ ...CallRecordingStateChanged.Serialization.cs | 8 +++++++ .../CallSourceInternal.Serialization.cs | 16 ++++++++++++++ .../CallTransferAccepted.Serialization.cs | 8 +++++++ .../CallTransferFailed.Serialization.cs | 8 +++++++ .../ChannelAffinityInternal.Serialization.cs | 8 +++++++ .../CollectTonesResult.Serialization.cs | 8 +++++++ ...municationIdentifierModel.Serialization.cs | 16 ++++++++++++++ ...cationUserIdentifierModel.Serialization.cs | 17 ++++++++++++++ ...CreateCallRequestInternal.Serialization.cs | 8 +++++++ .../DtmfOptionsInternal.Serialization.cs | 8 +++++++ .../FileSourceInternal.Serialization.cs | 8 +++++++ ...ticipantsResponseInternal.Serialization.cs | 8 +++++++ ...aStreamingOptionsInternal.Serialization.cs | 8 +++++++ ...tTeamsUserIdentifierModel.Serialization.cs | 16 ++++++++++++++ ...rticipantsUpdatedInternal.Serialization.cs | 8 +++++++ ...honeNumberIdentifierModel.Serialization.cs | 17 ++++++++++++++ .../Models/PlayCompleted.Serialization.cs | 8 +++++++ .../Models/PlayFailed.Serialization.cs | 8 +++++++ .../PlayOptionsInternal.Serialization.cs | 8 +++++++ .../PlayRequestInternal.Serialization.cs | 8 +++++++ .../PlaySourceInternal.Serialization.cs | 8 +++++++ .../RecognizeCompleted.Serialization.cs | 8 +++++++ .../Models/RecognizeFailed.Serialization.cs | 8 +++++++ .../RecognizeOptionsInternal.Serialization.cs | 8 +++++++ .../RecognizeRequestInternal.Serialization.cs | 8 +++++++ .../RecordingStateResult.Serialization.cs | 8 +++++++ ...directCallRequestInternal.Serialization.cs | 8 +++++++ ...RejectCallRequestInternal.Serialization.cs | 8 +++++++ ...rticipantsRequestInternal.Serialization.cs | 8 +++++++ .../RemoveParticipantsResult.Serialization.cs | 8 +++++++ .../Models/ResultInformation.Serialization.cs | 8 +++++++ ...lRecordingRequestInternal.Serialization.cs | 8 +++++++ ...erCallToParticipantResult.Serialization.cs | 8 +++++++ ...articipantRequestInternal.Serialization.cs | 8 +++++++ ...ddChatParticipantsRequest.Serialization.cs | 8 +++++++ ...AddChatParticipantsResult.Serialization.cs | 8 +++++++ .../ChatAttachmentInternal.Serialization.cs | 8 +++++++ .../Models/ChatError.Serialization.cs | 8 +++++++ .../Models/ChatErrorResponse.Serialization.cs | 8 +++++++ ...hatMessageContentInternal.Serialization.cs | 8 +++++++ .../ChatMessageInternal.Serialization.cs | 8 +++++++ ...essageReadReceiptInternal.Serialization.cs | 8 +++++++ ...ageReadReceiptsCollection.Serialization.cs | 8 +++++++ .../ChatMessagesCollection.Serialization.cs | 8 +++++++ .../ChatParticipantInternal.Serialization.cs | 16 ++++++++++++++ ...hatParticipantsCollection.Serialization.cs | 8 +++++++ .../Models/ChatThreadItem.Serialization.cs | 8 +++++++ ...tThreadPropertiesInternal.Serialization.cs | 8 +++++++ ...ChatThreadsItemCollection.Serialization.cs | 8 +++++++ ...municationIdentifierModel.Serialization.cs | 16 ++++++++++++++ ...cationUserIdentifierModel.Serialization.cs | 17 ++++++++++++++ .../CreateChatThreadRequest.Serialization.cs | 8 +++++++ ...eChatThreadResultInternal.Serialization.cs | 8 +++++++ ...tTeamsUserIdentifierModel.Serialization.cs | 16 ++++++++++++++ ...honeNumberIdentifierModel.Serialization.cs | 17 ++++++++++++++ .../SendChatMessageRequest.Serialization.cs | 8 +++++++ ...ChatMessageResultInternal.Serialization.cs | 8 +++++++ .../SendReadReceiptRequest.Serialization.cs | 8 +++++++ ...TypingNotificationRequest.Serialization.cs | 8 +++++++ .../UpdateChatMessageRequest.Serialization.cs | 8 +++++++ .../UpdateChatThreadRequest.Serialization.cs | 8 +++++++ .../Models/EmailAddress.Serialization.cs | 8 +++++++ .../Models/EmailAttachment.Serialization.cs | 8 +++++++ .../Models/EmailContent.Serialization.cs | 8 +++++++ .../Models/EmailMessage.Serialization.cs | 8 +++++++ .../Models/EmailRecipients.Serialization.cs | 8 +++++++ .../Models/EmailSendResult.Serialization.cs | 9 ++++++++ .../ErrorAdditionalInfo.Serialization.cs | 8 +++++++ .../Models/ErrorDetail.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../CommunicationError.Serialization.cs | 8 +++++++ ...ommunicationErrorResponse.Serialization.cs | 8 +++++++ .../CommunicationIdentity.Serialization.cs | 8 +++++++ ...cationIdentityAccessToken.Serialization.cs | 8 +++++++ ...dentityAccessTokenRequest.Serialization.cs | 8 +++++++ ...tionIdentityCreateRequest.Serialization.cs | 8 +++++++ ...ionUserIdentifierAndToken.Serialization.cs | 8 +++++++ ...sUserExchangeTokenRequest.Serialization.cs | 8 +++++++ .../Models/ActivePresenter.Serialization.cs | 16 ++++++++++++++ .../AutoGridInputGroup.Serialization.cs | 16 ++++++++++++++ .../Models/AutoGridLayout.Serialization.cs | 16 ++++++++++++++ .../CommunicationError.Serialization.cs | 16 ++++++++++++++ ...ommunicationErrorResponse.Serialization.cs | 16 ++++++++++++++ ...municationIdentifierModel.Serialization.cs | 16 ++++++++++++++ ...cationUserIdentifierModel.Serialization.cs | 17 ++++++++++++++ .../CompositionStreamState.Serialization.cs | 16 ++++++++++++++ .../Models/CustomLayout.Serialization.cs | 16 ++++++++++++++ .../Models/DominantSpeaker.Serialization.cs | 16 ++++++++++++++ .../Models/GridInputGroup.Serialization.cs | 16 ++++++++++++++ .../Models/GridLayout.Serialization.cs | 16 ++++++++++++++ .../Models/GroupCallInput.Serialization.cs | 16 ++++++++++++++ .../Models/GroupCallOutput.Serialization.cs | 16 ++++++++++++++ .../Models/ImageInput.Serialization.cs | 16 ++++++++++++++ .../Models/InputGroup.Serialization.cs | 16 ++++++++++++++ .../Models/InputPosition.Serialization.cs | 16 ++++++++++++++ .../Models/LayoutLayer.Serialization.cs | 16 ++++++++++++++ .../Models/LayoutResolution.Serialization.cs | 16 ++++++++++++++ .../Models/MediaComposition.Serialization.cs | 16 ++++++++++++++ .../MediaCompositionLayout.Serialization.cs | 16 ++++++++++++++ .../Models/MediaInput.Serialization.cs | 16 ++++++++++++++ .../Models/MediaOutput.Serialization.cs | 16 ++++++++++++++ ...tTeamsUserIdentifierModel.Serialization.cs | 16 ++++++++++++++ .../Models/ParticipantInput.Serialization.cs | 16 ++++++++++++++ ...honeNumberIdentifierModel.Serialization.cs | 17 ++++++++++++++ .../PresentationLayout.Serialization.cs | 16 ++++++++++++++ .../Models/PresenterLayout.Serialization.cs | 16 ++++++++++++++ .../Models/RoomInput.Serialization.cs | 16 ++++++++++++++ .../Models/RoomOutput.Serialization.cs | 16 ++++++++++++++ .../Models/RtmpInput.Serialization.cs | 16 ++++++++++++++ .../Models/RtmpOutput.Serialization.cs | 16 ++++++++++++++ .../Models/ScreenShare.Serialization.cs | 16 ++++++++++++++ .../Models/SrtInput.Serialization.cs | 16 ++++++++++++++ .../Models/SrtOutput.Serialization.cs | 16 ++++++++++++++ .../Models/TeamsMeetingInput.Serialization.cs | 16 ++++++++++++++ .../TeamsMeetingOutput.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownInputGroup.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownLayout.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownMediaInput.Serialization.cs | 16 ++++++++++++++ .../UnknownMediaOutput.Serialization.cs | 16 ++++++++++++++ .../CommunicationError.Serialization.cs | 8 +++++++ ...ommunicationErrorResponse.Serialization.cs | 8 +++++++ .../CommunicationIceServer.Serialization.cs | 17 ++++++++++++++ ...icationRelayConfiguration.Serialization.cs | 17 ++++++++++++++ ...RelayConfigurationRequest.Serialization.cs | 8 +++++++ .../CommunicationError.Serialization.cs | 8 +++++++ .../Models/OperatorDetails.Serialization.cs | 8 +++++++ .../OperatorInformation.Serialization.cs | 8 +++++++ ...peratorInformationOptions.Serialization.cs | 8 +++++++ ...peratorInformationRequest.Serialization.cs | 8 +++++++ ...OperatorInformationResult.Serialization.cs | 8 +++++++ ...berAdministrativeDivision.Serialization.cs | 8 +++++++ .../PhoneNumberAreaCode.Serialization.cs | 8 +++++++ .../PhoneNumberCapabilities.Serialization.cs | 16 ++++++++++++++ ...NumberCapabilitiesRequest.Serialization.cs | 8 +++++++ .../Models/PhoneNumberCost.Serialization.cs | 8 +++++++ .../PhoneNumberCountry.Serialization.cs | 8 +++++++ .../PhoneNumberLocality.Serialization.cs | 8 +++++++ .../PhoneNumberOffering.Serialization.cs | 8 +++++++ ...honeNumberPurchaseRequest.Serialization.cs | 8 +++++++ .../PhoneNumberSearchRequest.Serialization.cs | 8 +++++++ .../PhoneNumberSearchResult.Serialization.cs | 8 +++++++ .../PurchasedPhoneNumber.Serialization.cs | 8 +++++++ .../src/Models/CommunicationErrorResponse.cs | 1 + .../src/Models/OfferingsResponse.cs | 1 + .../src/Models/PhoneNumberAreaCodes.cs | 1 + .../src/Models/PhoneNumberCountries.cs | 1 + .../src/Models/PhoneNumberLocalities.cs | 1 + .../src/Models/PhoneNumberOperation.cs | 2 +- .../src/Models/PurchasedPhoneNumbers.cs | 1 + .../CommunicationError.Serialization.cs | 8 +++++++ ...ommunicationErrorResponse.Serialization.cs | 8 +++++++ .../Models/CommunicationRoom.Serialization.cs | 8 +++++++ .../Models/CreateRoomRequest.Serialization.cs | 8 +++++++ .../ParticipantProperties.Serialization.cs | 8 +++++++ .../ParticipantsCollection.Serialization.cs | 8 +++++++ .../Models/RoomParticipant.Serialization.cs | 8 +++++++ .../Models/RoomsCollection.Serialization.cs | 8 +++++++ ...UpdateParticipantsRequest.Serialization.cs | 8 +++++++ .../Models/UpdateRoomRequest.Serialization.cs | 8 +++++++ .../CommunicationError.Serialization.cs | 8 +++++++ ...ommunicationErrorResponse.Serialization.cs | 8 +++++++ .../CompanyInformation.Serialization.cs | 16 ++++++++++++++ .../ContactInformation.Serialization.cs | 16 ++++++++++++++ .../CustomerCareInformation.Serialization.cs | 16 ++++++++++++++ .../Models/MessageDetails.Serialization.cs | 16 ++++++++++++++ .../Models/MessageExample.Serialization.cs | 16 ++++++++++++++ .../MessageExampleSequence.Serialization.cs | 16 ++++++++++++++ .../Models/ProgramDetails.Serialization.cs | 16 ++++++++++++++ .../Models/ReviewNote.Serialization.cs | 16 ++++++++++++++ .../Models/ShortCode.Serialization.cs | 8 +++++++ .../Models/ShortCodeCost.Serialization.cs | 16 ++++++++++++++ .../Models/ShortCodes.Serialization.cs | 8 +++++++ .../Models/TrafficDetails.Serialization.cs | 16 ++++++++++++++ .../Models/USProgramBrief.Serialization.cs | 16 ++++++++++++++ .../Models/USProgramBriefs.Serialization.cs | 8 +++++++ .../Generated/Models/UseCase.Serialization.cs | 16 ++++++++++++++ .../SendMessageRequest.Serialization.cs | 8 +++++++ .../Models/SmsRecipient.Serialization.cs | 8 +++++++ .../Models/SmsSendOptions.Serialization.cs | 8 +++++++ .../Models/SmsSendResponse.Serialization.cs | 8 +++++++ .../Models/SmsSendResult.Serialization.cs | 8 +++++++ .../KeyVaultSecretReference.Serialization.cs | 1 + .../Models/AcrAccessToken.Serialization.cs | 8 +++++++ .../Models/AcrErrorInfo.Serialization.cs | 8 +++++++ .../Models/AcrErrors.Serialization.cs | 8 +++++++ .../Models/AcrManifests.Serialization.cs | 8 +++++++ .../Models/AcrRefreshToken.Serialization.cs | 8 +++++++ .../ArtifactManifestPlatform.Serialization.cs | 8 +++++++ ...rtifactManifestProperties.Serialization.cs | 8 +++++++ .../ArtifactTagProperties.Serialization.cs | 8 +++++++ ...ainerRepositoryProperties.Serialization.cs | 8 +++++++ .../Generated/Models/FsLayer.Serialization.cs | 8 +++++++ .../Generated/Models/History.Serialization.cs | 8 +++++++ .../Models/ImageSignature.Serialization.cs | 8 +++++++ .../src/Generated/Models/JWK.Serialization.cs | 8 +++++++ .../Models/JWKHeader.Serialization.cs | 8 +++++++ .../Models/Manifest.Serialization.cs | 8 +++++++ .../ManifestAttributesBase.Serialization.cs | 8 +++++++ .../Models/ManifestList.Serialization.cs | 8 +++++++ .../ManifestListAttributes.Serialization.cs | 8 +++++++ .../Models/ManifestWrapper.Serialization.cs | 8 +++++++ ...nifestWriteableProperties.Serialization.cs | 8 +++++++ .../Models/OCIIndex.Serialization.cs | 8 +++++++ .../Models/OciAnnotations.Serialization.cs | 16 ++++++++++++++ .../Models/OciDescriptor.Serialization.cs | 16 ++++++++++++++ .../Models/OciImageManifest.Serialization.cs | 17 ++++++++++++++ .../Models/Platform.Serialization.cs | 8 +++++++ .../Models/Repositories.Serialization.cs | 8 +++++++ ...sitoryWriteableProperties.Serialization.cs | 8 +++++++ .../Models/TagAttributesBase.Serialization.cs | 8 +++++++ .../Generated/Models/TagList.Serialization.cs | 8 +++++++ .../TagWriteableProperties.Serialization.cs | 8 +++++++ .../Models/V1Manifest.Serialization.cs | 8 +++++++ .../Models/V2Manifest.Serialization.cs | 8 +++++++ .../DatasetDataElement.Serialization.cs | 1 + .../DatasetSchemaDataElement.Serialization.cs | 1 + ...ffice365TableOutputColumn.Serialization.cs | 1 + .../RelationshipCollection.Serialization.cs | 13 ----------- .../Models/RelationshipCollection.cs | 3 +++ .../DigitalTwinsEventRoute.Serialization.cs | 16 ++++++++++++++ ...TwinsEventRouteCollection.Serialization.cs | 8 +++++++ .../DigitalTwinsModelData.Serialization.cs | 9 ++++++++ .../Models/ErrorInformation.Serialization.cs | 16 ++++++++++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../Models/ImportJob.Serialization.cs | 16 ++++++++++++++ .../ImportJobCollection.Serialization.cs | 8 +++++++ .../IncomingRelationship.Serialization.cs | 8 +++++++ ...ingRelationshipCollection.Serialization.cs | 8 +++++++ .../Models/InnerError.Serialization.cs | 16 ++++++++++++++ ...lTwinsModelDataCollection.Serialization.cs | 8 +++++++ .../Models/QueryResult.Serialization.cs | 9 ++++++++ .../QuerySpecification.Serialization.cs | 8 +++++++ .../RelationshipCollection.Serialization.cs | 3 +++ ...ancedMessageButtonContent.Serialization.cs | 8 +++++++ ...dMessageChannelEventError.Serialization.cs | 8 +++++++ ...AcsAdvancedMessageContext.Serialization.cs | 8 +++++++ ...eryStatusUpdatedEventData.Serialization.cs | 9 ++++++++ ...sAdvancedMessageEventData.Serialization.cs | 9 ++++++++ ...ractiveButtonReplyContent.Serialization.cs | 8 +++++++ ...MessageInteractiveContent.Serialization.cs | 8 +++++++ ...teractiveListReplyContent.Serialization.cs | 8 +++++++ ...vancedMessageMediaContent.Serialization.cs | 8 +++++++ ...dMessageReceivedEventData.Serialization.cs | 9 ++++++++ ...csChatEventBaseProperties.Serialization.cs | 8 +++++++ ...entInThreadBaseProperties.Serialization.cs | 8 +++++++ ...atMessageDeletedEventData.Serialization.cs | 9 ++++++++ ...eDeletedInThreadEventData.Serialization.cs | 9 ++++++++ ...hatMessageEditedEventData.Serialization.cs | 9 ++++++++ ...geEditedInThreadEventData.Serialization.cs | 9 ++++++++ ...essageEventBaseProperties.Serialization.cs | 8 +++++++ ...entInThreadBaseProperties.Serialization.cs | 8 +++++++ ...tMessageReceivedEventData.Serialization.cs | 9 ++++++++ ...ReceivedInThreadEventData.Serialization.cs | 9 ++++++++ ...antAddedToThreadEventData.Serialization.cs | 9 ++++++++ ...ToThreadWithUserEventData.Serialization.cs | 9 ++++++++ ...emovedFromThreadEventData.Serialization.cs | 9 ++++++++ ...omThreadWithUserEventData.Serialization.cs | 9 ++++++++ ...hatThreadCreatedEventData.Serialization.cs | 9 ++++++++ ...dCreatedWithUserEventData.Serialization.cs | 9 ++++++++ ...hatThreadDeletedEventData.Serialization.cs | 9 ++++++++ ...ThreadEventBaseProperties.Serialization.cs | 8 +++++++ ...entInThreadBaseProperties.Serialization.cs | 8 +++++++ ...readParticipantProperties.Serialization.cs | 8 +++++++ ...ropertiesUpdatedEventData.Serialization.cs | 9 ++++++++ ...esUpdatedPerUserEventData.Serialization.cs | 9 ++++++++ ...dWithUserDeletedEventData.Serialization.cs | 9 ++++++++ ...ryReportReceivedEventData.Serialization.cs | 9 ++++++++ ...liveryReportStatusDetails.Serialization.cs | 8 +++++++ ...ngReportReceivedEventData.Serialization.cs | 9 ++++++++ ...IncomingCallCustomContext.Serialization.cs | 8 +++++++ .../AcsIncomingCallEventData.Serialization.cs | 9 ++++++++ ...ordingChunkInfoProperties.Serialization.cs | 8 +++++++ ...ileStatusUpdatedEventData.Serialization.cs | 9 ++++++++ ...dingStorageInfoProperties.Serialization.cs | 8 +++++++ ...outerChannelConfiguration.Serialization.cs | 8 +++++++ ...sRouterCommunicationError.Serialization.cs | 8 +++++++ .../AcsRouterEventData.Serialization.cs | 9 ++++++++ ...uterJobCancelledEventData.Serialization.cs | 9 ++++++++ ...sificationFailedEventData.Serialization.cs | 9 ++++++++ ...terJobClassifiedEventData.Serialization.cs | 9 ++++++++ ...sRouterJobClosedEventData.Serialization.cs | 9 ++++++++ ...uterJobCompletedEventData.Serialization.cs | 9 ++++++++ ...RouterJobDeletedEventData.Serialization.cs | 9 ++++++++ .../AcsRouterJobEventData.Serialization.cs | 9 ++++++++ ...ceptionTriggeredEventData.Serialization.cs | 9 ++++++++ ...sRouterJobQueuedEventData.Serialization.cs | 9 ++++++++ ...outerJobReceivedEventData.Serialization.cs | 9 ++++++++ ...SchedulingFailedEventData.Serialization.cs | 9 ++++++++ ...terJobUnassignedEventData.Serialization.cs | 9 ++++++++ ...ingForActivationEventData.Serialization.cs | 9 ++++++++ ...SelectorsExpiredEventData.Serialization.cs | 9 ++++++++ .../AcsRouterQueueDetails.Serialization.cs | 8 +++++++ ...terWorkerDeletedEventData.Serialization.cs | 9 ++++++++ ...rkerDeregisteredEventData.Serialization.cs | 9 ++++++++ .../AcsRouterWorkerEventData.Serialization.cs | 9 ++++++++ ...kerOfferAcceptedEventData.Serialization.cs | 9 ++++++++ ...kerOfferDeclinedEventData.Serialization.cs | 9 ++++++++ ...rkerOfferExpiredEventData.Serialization.cs | 9 ++++++++ ...orkerOfferIssuedEventData.Serialization.cs | 9 ++++++++ ...rkerOfferRevokedEventData.Serialization.cs | 9 ++++++++ ...WorkerRegisteredEventData.Serialization.cs | 9 ++++++++ .../AcsRouterWorkerSelector.Serialization.cs | 8 +++++++ ...terWorkerUpdatedEventData.Serialization.cs | 9 ++++++++ ...DeliveryAttemptProperties.Serialization.cs | 8 +++++++ ...ryReportReceivedEventData.Serialization.cs | 9 ++++++++ ...AcsSmsEventBaseProperties.Serialization.cs | 8 +++++++ .../AcsSmsReceivedEventData.Serialization.cs | 9 ++++++++ ...UserDisconnectedEventData.Serialization.cs | 9 ++++++++ ...iDefinitionAddedEventData.Serialization.cs | 9 ++++++++ ...efinitionUpdatedEventData.Serialization.cs | 9 ++++++++ ...ApiCenterApiSpecification.Serialization.cs | 8 +++++++ ...gementApiCreatedEventData.Serialization.cs | 9 ++++++++ ...gementApiDeletedEventData.Serialization.cs | 9 ++++++++ ...piReleaseCreatedEventData.Serialization.cs | 9 ++++++++ ...piReleaseDeletedEventData.Serialization.cs | 9 ++++++++ ...piReleaseUpdatedEventData.Serialization.cs | 9 ++++++++ ...gementApiUpdatedEventData.Serialization.cs | 9 ++++++++ ...tGatewayApiAddedEventData.Serialization.cs | 9 ++++++++ ...atewayApiRemovedEventData.Serialization.cs | 9 ++++++++ ...AuthorityCreatedEventData.Serialization.cs | 9 ++++++++ ...AuthorityDeletedEventData.Serialization.cs | 9 ++++++++ ...AuthorityUpdatedEventData.Serialization.cs | 9 ++++++++ ...ntGatewayCreatedEventData.Serialization.cs | 9 ++++++++ ...ntGatewayDeletedEventData.Serialization.cs | 9 ++++++++ ...igurationCreatedEventData.Serialization.cs | 9 ++++++++ ...igurationDeletedEventData.Serialization.cs | 9 ++++++++ ...igurationUpdatedEventData.Serialization.cs | 9 ++++++++ ...ntGatewayUpdatedEventData.Serialization.cs | 9 ++++++++ ...ntProductCreatedEventData.Serialization.cs | 9 ++++++++ ...ntProductDeletedEventData.Serialization.cs | 9 ++++++++ ...ntProductUpdatedEventData.Serialization.cs | 9 ++++++++ ...scriptionCreatedEventData.Serialization.cs | 9 ++++++++ ...scriptionDeletedEventData.Serialization.cs | 9 ++++++++ ...scriptionUpdatedEventData.Serialization.cs | 9 ++++++++ ...ementUserCreatedEventData.Serialization.cs | 9 ++++++++ ...ementUserDeletedEventData.Serialization.cs | 9 ++++++++ ...ementUserUpdatedEventData.Serialization.cs | 9 ++++++++ ...nKeyValueDeletedEventData.Serialization.cs | 9 ++++++++ ...KeyValueModifiedEventData.Serialization.cs | 9 ++++++++ ...nSnapshotCreatedEventData.Serialization.cs | 9 ++++++++ ...gurationSnapshotEventData.Serialization.cs | 9 ++++++++ ...SnapshotModifiedEventData.Serialization.cs | 9 ++++++++ .../AppEventTypeDetail.Serialization.cs | 8 +++++++ ...ervicePlanEventTypeDetail.Serialization.cs | 8 +++++++ ...vsClusterCreatedEventData.Serialization.cs | 9 ++++++++ ...vsClusterDeletedEventData.Serialization.cs | 9 ++++++++ .../AvsClusterEventData.Serialization.cs | 9 ++++++++ ...AvsClusterFailedEventData.Serialization.cs | 9 ++++++++ ...vsClusterUpdatedEventData.Serialization.cs | 9 ++++++++ ...sClusterUpdatingEventData.Serialization.cs | 9 ++++++++ .../AvsPrivateCloudEventData.Serialization.cs | 9 ++++++++ ...ivateCloudFailedEventData.Serialization.cs | 9 ++++++++ ...vateCloudUpdatedEventData.Serialization.cs | 9 ++++++++ ...ateCloudUpdatingEventData.Serialization.cs | 9 ++++++++ ...ecutionCancelledEventData.Serialization.cs | 9 ++++++++ ...sScriptExecutionEventData.Serialization.cs | 9 ++++++++ ...tExecutionFailedEventData.Serialization.cs | 9 ++++++++ ...xecutionFinishedEventData.Serialization.cs | 9 ++++++++ ...ExecutionStartedEventData.Serialization.cs | 9 ++++++++ .../CloudEventInternal.Serialization.cs | 8 +++++++ ...municationIdentifierModel.Serialization.cs | 8 +++++++ ...cationUserIdentifierModel.Serialization.cs | 8 +++++++ ...RegistryArtifactEventData.Serialization.cs | 9 ++++++++ ...gistryArtifactEventTarget.Serialization.cs | 8 +++++++ ...stryChartDeletedEventData.Serialization.cs | 9 ++++++++ ...istryChartPushedEventData.Serialization.cs | 9 ++++++++ ...ntainerRegistryEventActor.Serialization.cs | 8 +++++++ ...tryEventConnectedRegistry.Serialization.cs | 8 +++++++ ...ontainerRegistryEventData.Serialization.cs | 9 ++++++++ ...ainerRegistryEventRequest.Serialization.cs | 8 +++++++ ...tainerRegistryEventSource.Serialization.cs | 8 +++++++ ...tainerRegistryEventTarget.Serialization.cs | 8 +++++++ ...stryImageDeletedEventData.Serialization.cs | 9 ++++++++ ...istryImagePushedEventData.Serialization.cs | 9 ++++++++ ...sterSupportEndedEventData.Serialization.cs | 9 ++++++++ ...terSupportEndingEventData.Serialization.cs | 9 ++++++++ ...ceClusterSupportEventData.Serialization.cs | 9 ++++++++ ...VersionAvailableEventData.Serialization.cs | 9 ++++++++ ...eNodePoolRollingEventData.Serialization.cs | 9 ++++++++ ...oolRollingFailedEventData.Serialization.cs | 9 ++++++++ ...olRollingStartedEventData.Serialization.cs | 9 ++++++++ ...RollingSucceededEventData.Serialization.cs | 9 ++++++++ ...BoxCopyCompletedEventData.Serialization.cs | 9 ++++++++ ...taBoxCopyStartedEventData.Serialization.cs | 9 ++++++++ ...oxOrderCompletedEventData.Serialization.cs | 9 ++++++++ ...eConnectionStateEventInfo.Serialization.cs | 8 +++++++ ...ctionStateEventProperties.Serialization.cs | 8 +++++++ ...eLifeCycleEventProperties.Serialization.cs | 8 +++++++ ...eTelemetryEventProperties.Serialization.cs | 8 +++++++ .../Models/DeviceTwinInfo.Serialization.cs | 8 +++++++ .../DeviceTwinInfoProperties.Serialization.cs | 8 +++++++ ...iceTwinInfoX509Thumbprint.Serialization.cs | 8 +++++++ .../DeviceTwinMetadata.Serialization.cs | 8 +++++++ .../DeviceTwinProperties.Serialization.cs | 8 +++++++ .../EventGridEventInternal.Serialization.cs | 17 ++++++++++++++ ...CreatedOrUpdatedEventData.Serialization.cs | 9 ++++++++ ...qttClientDeletedEventData.Serialization.cs | 9 ++++++++ ...ntGridMqttClientEventData.Serialization.cs | 9 ++++++++ ...SessionConnectedEventData.Serialization.cs | 9 ++++++++ ...sionDisconnectedEventData.Serialization.cs | 9 ++++++++ ...ptureFileCreatedEventData.Serialization.cs | 9 ++++++++ ...icomImageCreatedEventData.Serialization.cs | 9 ++++++++ ...icomImageDeletedEventData.Serialization.cs | 9 ++++++++ ...icomImageUpdatedEventData.Serialization.cs | 9 ++++++++ ...rResourceCreatedEventData.Serialization.cs | 9 ++++++++ ...rResourceDeletedEventData.Serialization.cs | 9 ++++++++ ...rResourceUpdatedEventData.Serialization.cs | 9 ++++++++ ...bDeviceConnectedEventData.Serialization.cs | 9 ++++++++ ...HubDeviceCreatedEventData.Serialization.cs | 9 ++++++++ ...HubDeviceDeletedEventData.Serialization.cs | 9 ++++++++ ...viceDisconnectedEventData.Serialization.cs | 9 ++++++++ ...bDeviceTelemetryEventData.Serialization.cs | 9 ++++++++ ...essPolicyChangedEventData.Serialization.cs | 9 ++++++++ ...rtificateExpiredEventData.Serialization.cs | 9 ++++++++ ...ficateNearExpiryEventData.Serialization.cs | 9 ++++++++ ...ewVersionCreatedEventData.Serialization.cs | 9 ++++++++ ...yVaultKeyExpiredEventData.Serialization.cs | 9 ++++++++ ...ultKeyNearExpiryEventData.Serialization.cs | 9 ++++++++ ...ewVersionCreatedEventData.Serialization.cs | 9 ++++++++ ...ultSecretExpiredEventData.Serialization.cs | 9 ++++++++ ...SecretNearExpiryEventData.Serialization.cs | 9 ++++++++ ...ewVersionCreatedEventData.Serialization.cs | 9 ++++++++ ...setDriftDetectedEventData.Serialization.cs | 9 ++++++++ ...cesModelDeployedEventData.Serialization.cs | 9 ++++++++ ...sModelRegisteredEventData.Serialization.cs | 9 ++++++++ ...icesRunCompletedEventData.Serialization.cs | 9 ++++++++ ...RunStatusChangedEventData.Serialization.cs | 9 ++++++++ ...sGeofenceEnteredEventData.Serialization.cs | 9 ++++++++ ...psGeofenceEventProperties.Serialization.cs | 8 +++++++ ...psGeofenceExitedEventData.Serialization.cs | 9 ++++++++ .../MapsGeofenceGeometry.Serialization.cs | 8 +++++++ ...psGeofenceResultEventData.Serialization.cs | 9 ++++++++ ...MediaJobCanceledEventData.Serialization.cs | 9 ++++++++ ...ediaJobCancelingEventData.Serialization.cs | 9 ++++++++ .../Models/MediaJobError.Serialization.cs | 8 +++++++ .../MediaJobErrorDetail.Serialization.cs | 8 +++++++ .../MediaJobErroredEventData.Serialization.cs | 9 ++++++++ ...MediaJobFinishedEventData.Serialization.cs | 9 ++++++++ .../Models/MediaJobOutput.Serialization.cs | 8 +++++++ .../MediaJobOutputAsset.Serialization.cs | 8 +++++++ ...obOutputCanceledEventData.Serialization.cs | 9 ++++++++ ...bOutputCancelingEventData.Serialization.cs | 9 ++++++++ ...JobOutputErroredEventData.Serialization.cs | 9 ++++++++ ...obOutputFinishedEventData.Serialization.cs | 9 ++++++++ ...OutputProcessingEventData.Serialization.cs | 9 ++++++++ ...obOutputProgressEventData.Serialization.cs | 9 ++++++++ ...bOutputScheduledEventData.Serialization.cs | 9 ++++++++ ...utputStateChangeEventData.Serialization.cs | 9 ++++++++ ...diaJobProcessingEventData.Serialization.cs | 9 ++++++++ ...ediaJobScheduledEventData.Serialization.cs | 9 ++++++++ ...iaJobStateChangeEventData.Serialization.cs | 9 ++++++++ ...ArchiveHeartbeatEventData.Serialization.cs | 9 ++++++++ ...nnectionRejectedEventData.Serialization.cs | 9 ++++++++ ...EncoderConnectedEventData.Serialization.cs | 9 ++++++++ ...oderDisconnectedEventData.Serialization.cs | 9 ++++++++ ...DataChunkDroppedEventData.Serialization.cs | 9 ++++++++ ...ngStreamReceivedEventData.Serialization.cs | 9 ++++++++ ...StreamsOutOfSyncEventData.Serialization.cs | 9 ++++++++ ...StreamsOutOfSyncEventData.Serialization.cs | 9 ++++++++ ...tIngestHeartbeatEventData.Serialization.cs | 9 ++++++++ ...ntinuityDetectedEventData.Serialization.cs | 9 ++++++++ ...crosoftTeamsAppIdentifier.Serialization.cs | 8 +++++++ ...tTeamsUserIdentifierModel.Serialization.cs | 8 +++++++ ...honeNumberIdentifierModel.Serialization.cs | 8 +++++++ ...licyStateChangedEventData.Serialization.cs | 9 ++++++++ ...licyStateCreatedEventData.Serialization.cs | 9 ++++++++ ...licyStateDeletedEventData.Serialization.cs | 9 ++++++++ ...portRdbCompletedEventData.Serialization.cs | 9 ++++++++ ...portRdbCompletedEventData.Serialization.cs | 9 ++++++++ ...atchingCompletedEventData.Serialization.cs | 9 ++++++++ ...ScalingCompletedEventData.Serialization.cs | 9 ++++++++ ...urceActionCancelEventData.Serialization.cs | 9 ++++++++ ...rceActionFailureEventData.Serialization.cs | 9 ++++++++ ...rceActionSuccessEventData.Serialization.cs | 9 ++++++++ .../ResourceAuthorization.Serialization.cs | 8 +++++++ ...urceDeleteCancelEventData.Serialization.cs | 9 ++++++++ ...rceDeleteFailureEventData.Serialization.cs | 9 ++++++++ ...rceDeleteSuccessEventData.Serialization.cs | 9 ++++++++ .../ResourceHttpRequest.Serialization.cs | 8 +++++++ ...sourcesAnnotatedEventData.Serialization.cs | 9 ++++++++ ...ityStatusChangedEventData.Serialization.cs | 9 ++++++++ ...cationsOperationalDetails.Serialization.cs | 8 +++++++ ...onsResourceDeletedDetails.Serialization.cs | 8 +++++++ ...sResourceDeletedEventData.Serialization.cs | 9 ++++++++ ...CreatedOrUpdatedEventData.Serialization.cs | 9 ++++++++ ...anagementDeletedEventData.Serialization.cs | 9 ++++++++ ...onsResourceUpdatedDetails.Serialization.cs | 8 +++++++ ...sResourceUpdatedEventData.Serialization.cs | 9 ++++++++ ...ourceWriteCancelEventData.Serialization.cs | 9 ++++++++ ...urceWriteFailureEventData.Serialization.cs | 9 ++++++++ ...urceWriteSuccessEventData.Serialization.cs | 9 ++++++++ ...dicNotificationsEventData.Serialization.cs | 9 ++++++++ ...eWithNoListenersEventData.Serialization.cs | 9 ++++++++ ...dicNotificationsEventData.Serialization.cs | 9 ++++++++ ...eWithNoListenersEventData.Serialization.cs | 9 ++++++++ ...nectionConnectedEventData.Serialization.cs | 9 ++++++++ ...tionDisconnectedEventData.Serialization.cs | 9 ++++++++ ...erationInitiatedEventData.Serialization.cs | 9 ++++++++ ...orageBlobCreatedEventData.Serialization.cs | 9 ++++++++ ...orageBlobDeletedEventData.Serialization.cs | 9 ++++++++ ...yPolicyCompletedEventData.Serialization.cs | 9 ++++++++ ...orageBlobRenamedEventData.Serialization.cs | 9 ++++++++ ...eBlobTierChangedEventData.Serialization.cs | 9 ++++++++ ...DirectoryCreatedEventData.Serialization.cs | 9 ++++++++ ...DirectoryDeletedEventData.Serialization.cs | 9 ++++++++ ...DirectoryRenamedEventData.Serialization.cs | 9 ++++++++ ...PolicyActionSummaryDetail.Serialization.cs | 8 +++++++ ...ePolicyCompletedEventData.Serialization.cs | 9 ++++++++ ...ignmentCompletedEventData.Serialization.cs | 9 ++++++++ ...AssignmentQueuedEventData.Serialization.cs | 9 ++++++++ ...ageTaskCompletedEventData.Serialization.cs | 9 ++++++++ ...torageTaskQueuedEventData.Serialization.cs | 9 ++++++++ ...scriptionDeletedEventData.Serialization.cs | 9 ++++++++ ...iptionValidationEventData.Serialization.cs | 9 ++++++++ ...riptionValidationResponse.Serialization.cs | 17 ++++++++++++++ .../UnknownMediaJobOutput.Serialization.cs | 8 +++++++ ...rvicePlanUpdatedEventData.Serialization.cs | 9 ++++++++ ...cePlanUpdatedEventDataSku.Serialization.cs | 8 +++++++ .../WebAppUpdatedEventData.Serialization.cs | 9 ++++++++ ...erationCompletedEventData.Serialization.cs | 9 ++++++++ ...pOperationFailedEventData.Serialization.cs | 9 ++++++++ ...OperationStartedEventData.Serialization.cs | 9 ++++++++ ...erationCompletedEventData.Serialization.cs | 9 ++++++++ ...eOperationFailedEventData.Serialization.cs | 9 ++++++++ ...OperationStartedEventData.Serialization.cs | 9 ++++++++ ...lotSwapCompletedEventData.Serialization.cs | 9 ++++++++ ...ebSlotSwapFailedEventData.Serialization.cs | 9 ++++++++ ...bSlotSwapStartedEventData.Serialization.cs | 9 ++++++++ ...PreviewCancelledEventData.Serialization.cs | 9 ++++++++ ...thPreviewStartedEventData.Serialization.cs | 9 ++++++++ .../Models/AddressValue.Serialization.cs | 8 +++++++ .../AnalyzeDocumentRequest.Serialization.cs | 8 +++++++ .../AnalyzeOperationResult.Serialization.cs | 8 +++++++ .../Models/AnalyzeResult.Serialization.cs | 8 +++++++ .../AnalyzeResultOperation.Serialization.cs | 8 +++++++ .../Models/AnalyzedDocument.Serialization.cs | 8 +++++++ .../AuthorizeCopyRequest.Serialization.cs | 8 +++++++ .../Models/BlobContentSource.Serialization.cs | 16 ++++++++++++++ ...BlobFileListContentSource.Serialization.cs | 16 ++++++++++++++ .../Models/BoundingRegion.Serialization.cs | 8 +++++++ ...DocumentClassifierRequest.Serialization.cs | 8 +++++++ ...BuildDocumentModelRequest.Serialization.cs | 8 +++++++ ...sifierDocumentTypeDetails.Serialization.cs | 16 ++++++++++++++ .../ClassifyDocumentRequest.Serialization.cs | 8 +++++++ ...onentDocumentModelDetails.Serialization.cs | 8 +++++++ ...mposeDocumentModelRequest.Serialization.cs | 8 +++++++ .../Models/ComposeRequest.Serialization.cs | 8 +++++++ .../CopyAuthorizationResult.Serialization.cs | 16 ++++++++++++++ .../CopyOperationResult.Serialization.cs | 8 +++++++ .../Models/CopyRequest.Serialization.cs | 8 +++++++ .../Models/CopyResult.Serialization.cs | 8 +++++++ .../Models/CurrencyValue.Serialization.cs | 8 +++++++ ...stomDocumentModelsDetails.Serialization.cs | 8 +++++++ .../CustomFormModelField.Serialization.cs | 8 +++++++ .../CustomFormModelInfo.Serialization.cs | 8 +++++++ ...CustomFormModelProperties.Serialization.cs | 8 +++++++ .../Models/DataTable.Serialization.cs | 8 +++++++ .../Models/DataTableCell.Serialization.cs | 9 ++++++++ .../Models/DocumentBarcode.Serialization.cs | 8 +++++++ ...fierBuildOperationDetails.Serialization.cs | 8 +++++++ ...DocumentClassifierDetails.Serialization.cs | 8 +++++++ .../DocumentErrorResponse.Serialization.cs | 8 +++++++ .../Models/DocumentField.Serialization.cs | 8 +++++++ .../DocumentFieldSchema.Serialization.cs | 8 +++++++ .../Models/DocumentFormula.Serialization.cs | 8 +++++++ .../DocumentKeyValueElement.Serialization.cs | 8 +++++++ .../DocumentKeyValuePair.Serialization.cs | 8 +++++++ .../Models/DocumentLanguage.Serialization.cs | 8 +++++++ .../Models/DocumentLine.Serialization.cs | 8 +++++++ ...odelBuildOperationDetails.Serialization.cs | 8 +++++++ ...elComposeOperationDetails.Serialization.cs | 8 +++++++ ...entModelCopyAuthorization.Serialization.cs | 16 ++++++++++++++ ...delCopyToOperationDetails.Serialization.cs | 8 +++++++ .../DocumentModelDetails.Serialization.cs | 8 +++++++ .../DocumentModelSummary.Serialization.cs | 8 +++++++ .../Models/DocumentPage.Serialization.cs | 8 +++++++ .../Models/DocumentParagraph.Serialization.cs | 8 +++++++ .../Models/DocumentResult.Serialization.cs | 8 +++++++ .../DocumentSelectionMark.Serialization.cs | 8 +++++++ .../Models/DocumentSpan.Serialization.cs | 8 +++++++ .../Models/DocumentStyle.Serialization.cs | 8 +++++++ .../Models/DocumentTable.Serialization.cs | 8 +++++++ .../Models/DocumentTableCell.Serialization.cs | 8 +++++++ .../DocumentTypeDetails.Serialization.cs | 8 +++++++ .../Models/DocumentWord.Serialization.cs | 8 +++++++ .../Generated/Models/Error.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../FieldValue_internal.Serialization.cs | 8 +++++++ .../FormRecognizerError.Serialization.cs | 8 +++++++ ...cumentClassifiersResponse.Serialization.cs | 8 +++++++ ...GetDocumentModelsResponse.Serialization.cs | 8 +++++++ .../GetOperationsResponse.Serialization.cs | 8 +++++++ .../Models/InnerError.Serialization.cs | 8 +++++++ .../Models/KeyValueElement.Serialization.cs | 8 +++++++ .../Models/KeyValuePair.Serialization.cs | 8 +++++++ .../Models/KeysResult.Serialization.cs | 8 +++++++ .../Generated/Models/Model.Serialization.cs | 8 +++++++ .../Generated/Models/Models.Serialization.cs | 8 +++++++ .../Models/ModelsSummary.Serialization.cs | 8 +++++++ .../Models/OperationDetails.Serialization.cs | 8 +++++++ .../Models/OperationSummary.Serialization.cs | 8 +++++++ .../Models/PageResult.Serialization.cs | 8 +++++++ .../Models/ReadResult.Serialization.cs | 8 +++++++ .../ResourceQuotaDetails.Serialization.cs | 8 +++++++ .../Models/SelectionMark.Serialization.cs | 8 +++++++ .../ServiceResourceDetails.Serialization.cs | 8 +++++++ .../Models/SourcePath.Serialization.cs | 8 +++++++ .../Generated/Models/Style.Serialization.cs | 8 +++++++ .../Models/TextAppearance.Serialization.cs | 8 +++++++ .../Models/TextLine.Serialization.cs | 8 +++++++ .../Models/TextWord.Serialization.cs | 8 +++++++ .../Models/TrainRequest.Serialization.cs | 8 +++++++ .../Models/TrainResult.Serialization.cs | 8 +++++++ .../TrainingDocumentInfo.Serialization.cs | 8 +++++++ .../TrainingFileFilter.Serialization.cs | 8 +++++++ .../UnknownOperationDetails.Serialization.cs | 8 +++++++ .../Models/V2AnalyzeResult.Serialization.cs | 8 +++++++ .../AuthenticationMechanism.Serialization.cs | 16 ++++++++++++++ ...RegistryOperationResponse.Serialization.cs | 8 +++++++ ...loudToDeviceMethodRequest.Serialization.cs | 16 ++++++++++++++ ...oudToDeviceMethodResponse.Serialization.cs | 8 +++++++ .../ConfigurationContent.Serialization.cs | 16 ++++++++++++++ .../ConfigurationMetrics.Serialization.cs | 16 ++++++++++++++ ...igurationQueriesTestInput.Serialization.cs | 8 +++++++ ...rationQueriesTestResponse.Serialization.cs | 8 +++++++ .../DeviceCapabilities.Serialization.cs | 16 ++++++++++++++ .../Models/DeviceIdentity.Serialization.cs | 16 ++++++++++++++ .../DeviceJobStatistics.Serialization.cs | 8 +++++++ ...iceRegistryOperationError.Serialization.cs | 8 +++++++ ...eRegistryOperationWarning.Serialization.cs | 8 +++++++ .../Models/DevicesStatistics.Serialization.cs | 8 +++++++ .../ExportImportDevice.Serialization.cs | 8 +++++++ .../Models/JobProperties.Serialization.cs | 16 ++++++++++++++ .../Models/JobRequest.Serialization.cs | 8 +++++++ .../Models/JobResponse.Serialization.cs | 8 +++++++ .../Models/ModuleIdentity.Serialization.cs | 16 ++++++++++++++ .../Models/PropertyContainer.Serialization.cs | 8 +++++++ .../PurgeMessageQueueResult.Serialization.cs | 8 +++++++ .../Models/QueryResult.Serialization.cs | 8 +++++++ .../QuerySpecification.Serialization.cs | 8 +++++++ .../Models/ServiceStatistics.Serialization.cs | 8 +++++++ .../Models/SymmetricKey.Serialization.cs | 16 ++++++++++++++ .../Models/TwinConfiguration.Serialization.cs | 16 ++++++++++++++ .../Models/TwinData.Serialization.cs | 16 ++++++++++++++ .../Models/TwinProperties.Serialization.cs | 16 ++++++++++++++ .../Models/X509Thumbprint.Serialization.cs | 16 ++++++++++++++ ...FullBackupDetailsInternal.Serialization.cs | 8 +++++++ .../Models/GetSettingsResult.Serialization.cs | 8 +++++++ .../Models/KeyVaultError.Serialization.cs | 8 +++++++ .../KeyVaultPermission.Serialization.cs | 16 ++++++++++++++ .../KeyVaultRoleAssignment.Serialization.cs | 8 +++++++ ...tRoleAssignmentProperties.Serialization.cs | 8 +++++++ ...ignmentPropertiesInternal.Serialization.cs | 8 +++++++ .../KeyVaultRoleDefinition.Serialization.cs | 16 ++++++++++++++ .../KeyVaultServiceError.Serialization.cs | 8 +++++++ .../Models/KeyVaultSetting.Serialization.cs | 8 +++++++ .../RestoreDetailsInternal.Serialization.cs | 8 +++++++ ...estoreOperationParameters.Serialization.cs | 8 +++++++ ...ssignmentCreateParameters.Serialization.cs | 8 +++++++ .../RoleAssignmentListResult.Serialization.cs | 8 +++++++ ...efinitionCreateParameters.Serialization.cs | 8 +++++++ .../RoleDefinitionListResult.Serialization.cs | 8 +++++++ .../RoleDefinitionProperties.Serialization.cs | 8 +++++++ .../Models/SASTokenParameter.Serialization.cs | 8 +++++++ ...KeyRestoreDetailsInternal.Serialization.cs | 8 +++++++ ...estoreOperationParameters.Serialization.cs | 8 +++++++ .../UpdateSettingRequest.Serialization.cs | 8 +++++++ .../BackupStorageResult.Serialization.cs | 8 +++++++ ...eletedSasDefinitionBundle.Serialization.cs | 8 +++++++ .../DeletedSasDefinitionItem.Serialization.cs | 8 +++++++ ...edSasDefinitionListResult.Serialization.cs | 8 +++++++ ...DeletedStorageAccountItem.Serialization.cs | 8 +++++++ .../DeletedStorageBundle.Serialization.cs | 8 +++++++ .../DeletedStorageListResult.Serialization.cs | 8 +++++++ .../Generated/Models/Error.Serialization.cs | 8 +++++++ .../Models/KeyVaultError.Serialization.cs | 8 +++++++ .../SasDefinitionAttributes.Serialization.cs | 16 ++++++++++++++ .../SasDefinitionBundle.Serialization.cs | 8 +++++++ ...efinitionCreateParameters.Serialization.cs | 8 +++++++ .../Models/SasDefinitionItem.Serialization.cs | 8 +++++++ .../SasDefinitionListResult.Serialization.cs | 8 +++++++ ...efinitionUpdateParameters.Serialization.cs | 8 +++++++ .../StorageAccountAttributes.Serialization.cs | 16 ++++++++++++++ ...geAccountCreateParameters.Serialization.cs | 8 +++++++ .../StorageAccountItem.Serialization.cs | 8 +++++++ ...untRegenerteKeyParameters.Serialization.cs | 8 +++++++ ...geAccountUpdateParameters.Serialization.cs | 8 +++++++ .../Models/StorageBundle.Serialization.cs | 8 +++++++ .../Models/StorageListResult.Serialization.cs | 8 +++++++ .../StorageRestoreParameters.Serialization.cs | 8 +++++++ .../Models/CountryRegion.Serialization.cs | 8 +++++++ .../CountryRegionResult.Serialization.cs | 8 +++++++ .../ErrorAdditionalInfo.Serialization.cs | 8 +++++++ .../Models/ErrorDetail.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../Models/CopyrightCaption.Serialization.cs | 8 +++++++ .../ErrorAdditionalInfo.Serialization.cs | 8 +++++++ .../Models/ErrorDetail.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../Models/MapAttribution.Serialization.cs | 8 +++++++ .../Models/MapTileSet.Serialization.cs | 8 +++++++ .../Models/RegionalCopyright.Serialization.cs | 8 +++++++ .../RegionalCopyrightCountry.Serialization.cs | 8 +++++++ .../Models/RenderCopyright.Serialization.cs | 8 +++++++ .../Models/BatchRequest.Serialization.cs | 8 +++++++ .../Models/BatchRequestItem.Serialization.cs | 8 +++++++ .../Models/BatchResult.Serialization.cs | 8 +++++++ .../Models/BatchResultItem.Serialization.cs | 8 +++++++ .../BatchResultSummary.Serialization.cs | 8 +++++++ .../Models/EffectiveSetting.Serialization.cs | 8 +++++++ .../ErrorAdditionalInfo.Serialization.cs | 8 +++++++ .../Models/ErrorDetail.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../Models/GeoJsonFeature.Serialization.cs | 8 +++++++ .../GeoJsonFeatureCollection.Serialization.cs | 8 +++++++ ...JsonFeatureCollectionData.Serialization.cs | 8 +++++++ .../GeoJsonFeatureData.Serialization.cs | 8 +++++++ .../Models/GeoJsonGeometry.Serialization.cs | 9 ++++++++ ...GeoJsonGeometryCollection.Serialization.cs | 8 +++++++ ...sonGeometryCollectionData.Serialization.cs | 8 +++++++ .../Models/GeoJsonLineString.Serialization.cs | 9 ++++++++ .../GeoJsonLineStringData.Serialization.cs | 9 ++++++++ .../GeoJsonMultiLineString.Serialization.cs | 9 ++++++++ ...eoJsonMultiLineStringData.Serialization.cs | 9 ++++++++ .../Models/GeoJsonMultiPoint.Serialization.cs | 9 ++++++++ .../GeoJsonMultiPointData.Serialization.cs | 9 ++++++++ .../GeoJsonMultiPolygon.Serialization.cs | 9 ++++++++ .../GeoJsonMultiPolygonData.Serialization.cs | 9 ++++++++ .../Models/GeoJsonObject.Serialization.cs | 9 ++++++++ .../Models/GeoJsonPoint.Serialization.cs | 9 ++++++++ .../Models/GeoJsonPointData.Serialization.cs | 9 ++++++++ .../Models/GeoJsonPolygon.Serialization.cs | 9 ++++++++ .../GeoJsonPolygonData.Serialization.cs | 9 ++++++++ .../Models/LatLongPair.Serialization.cs | 8 +++++++ .../Models/RouteData.Serialization.cs | 8 +++++++ .../RouteDirectionParameters.Serialization.cs | 8 +++++++ .../Models/RouteDirections.Serialization.cs | 8 +++++++ .../RouteDirectionsBatchItem.Serialization.cs | 8 +++++++ ...rectionsBatchItemResponse.Serialization.cs | 8 +++++++ ...outeDirectionsBatchResult.Serialization.cs | 8 +++++++ .../Models/RouteGuidance.Serialization.cs | 8 +++++++ .../Models/RouteInstruction.Serialization.cs | 8 +++++++ .../RouteInstructionGroup.Serialization.cs | 8 +++++++ .../Models/RouteLeg.Serialization.cs | 8 +++++++ .../Models/RouteLegSummary.Serialization.cs | 8 +++++++ .../Models/RouteMatrix.Serialization.cs | 8 +++++++ .../Models/RouteMatrixQuery.Serialization.cs | 8 +++++++ .../Models/RouteMatrixResult.Serialization.cs | 8 +++++++ ...RouteMatrixResultResponse.Serialization.cs | 8 +++++++ .../RouteMatrixSummary.Serialization.cs | 8 +++++++ .../RouteOptimizedWaypoint.Serialization.cs | 8 +++++++ .../Models/RouteRange.Serialization.cs | 8 +++++++ .../Models/RouteRangeResult.Serialization.cs | 8 +++++++ .../Models/RouteReport.Serialization.cs | 8 +++++++ .../Models/RouteSection.Serialization.cs | 8 +++++++ .../Models/RouteSectionTec.Serialization.cs | 8 +++++++ .../RouteSectionTecCause.Serialization.cs | 8 +++++++ .../Models/RouteSummary.Serialization.cs | 8 +++++++ .../Models/AddressRanges.Serialization.cs | 8 +++++++ .../BatchRequestInternal.Serialization.cs | 8 +++++++ .../BatchRequestItemInternal.Serialization.cs | 8 +++++++ .../Models/BatchResult.Serialization.cs | 8 +++++++ .../Models/BatchResultItem.Serialization.cs | 8 +++++++ .../BatchResultSummary.Serialization.cs | 8 +++++++ .../Models/BoundingBox.Serialization.cs | 8 +++++++ ...oundingBoxCompassNotation.Serialization.cs | 8 +++++++ .../Models/BrandName.Serialization.cs | 8 +++++++ .../ClassificationName.Serialization.cs | 8 +++++++ .../ErrorAdditionalInfo.Serialization.cs | 8 +++++++ .../Models/ErrorDetail.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../FacilityEntryPoint.Serialization.cs | 8 +++++++ .../Models/GeoJsonFeature.Serialization.cs | 16 ++++++++++++++ .../GeoJsonFeatureCollection.Serialization.cs | 16 ++++++++++++++ ...JsonFeatureCollectionData.Serialization.cs | 16 ++++++++++++++ .../GeoJsonFeatureData.Serialization.cs | 16 ++++++++++++++ .../Models/GeoJsonGeometry.Serialization.cs | 17 ++++++++++++++ ...GeoJsonGeometryCollection.Serialization.cs | 16 ++++++++++++++ ...sonGeometryCollectionData.Serialization.cs | 16 ++++++++++++++ .../Models/GeoJsonLineString.Serialization.cs | 17 ++++++++++++++ .../GeoJsonLineStringData.Serialization.cs | 17 ++++++++++++++ .../GeoJsonMultiLineString.Serialization.cs | 17 ++++++++++++++ ...eoJsonMultiLineStringData.Serialization.cs | 17 ++++++++++++++ .../Models/GeoJsonMultiPoint.Serialization.cs | 17 ++++++++++++++ .../GeoJsonMultiPointData.Serialization.cs | 17 ++++++++++++++ .../GeoJsonMultiPolygon.Serialization.cs | 17 ++++++++++++++ .../GeoJsonMultiPolygonData.Serialization.cs | 17 ++++++++++++++ .../Models/GeoJsonObject.Serialization.cs | 17 ++++++++++++++ .../Models/GeoJsonPoint.Serialization.cs | 17 ++++++++++++++ .../Models/GeoJsonPointData.Serialization.cs | 17 ++++++++++++++ .../Models/GeoJsonPolygon.Serialization.cs | 17 ++++++++++++++ .../GeoJsonPolygonData.Serialization.cs | 17 ++++++++++++++ .../GeometryIdentifier.Serialization.cs | 8 +++++++ .../LatLongPairAbbreviated.Serialization.cs | 8 +++++++ .../Models/MapsAddress.Serialization.cs | 8 +++++++ .../Models/MapsDataSource.Serialization.cs | 8 +++++++ .../Models/OperatingHours.Serialization.cs | 8 +++++++ .../OperatingHoursTime.Serialization.cs | 8 +++++++ .../OperatingHoursTimeRange.Serialization.cs | 8 +++++++ .../Models/PointOfInterest.Serialization.cs | 8 +++++++ .../PointOfInterestCategory.Serialization.cs | 8 +++++++ ...ointOfInterestCategorySet.Serialization.cs | 8 +++++++ ...nterestCategoryTreeResult.Serialization.cs | 8 +++++++ ...tOfInterestClassification.Serialization.cs | 8 +++++++ .../Models/PolygonObject.Serialization.cs | 9 ++++++++ .../Models/PolygonResult.Serialization.cs | 8 +++++++ ...rseSearchAddressBatchItem.Serialization.cs | 8 +++++++ ...hAddressBatchItemResponse.Serialization.cs | 8 +++++++ ...eSearchAddressBatchResult.Serialization.cs | 8 +++++++ .../ReverseSearchAddressItem.Serialization.cs | 8 +++++++ ...everseSearchAddressResult.Serialization.cs | 8 +++++++ ...hCrossStreetAddressResult.Serialization.cs | 8 +++++++ ...ssStreetAddressResultItem.Serialization.cs | 8 +++++++ .../SearchAddressBatchItem.Serialization.cs | 8 +++++++ ...hAddressBatchItemResponse.Serialization.cs | 8 +++++++ .../SearchAddressBatchResult.Serialization.cs | 8 +++++++ .../SearchAddressResult.Serialization.cs | 8 +++++++ .../SearchAddressResultItem.Serialization.cs | 8 +++++++ .../SearchAlongRouteRequest.Serialization.cs | 8 +++++++ ...archInsideGeometryRequest.Serialization.cs | 8 +++++++ .../Models/SearchSummary.Serialization.cs | 8 +++++++ .../UnknownGeoJsonObject.Serialization.cs | 17 ++++++++++++++ .../Models/AlertResultList.Serialization.cs | 8 +++++++ .../AlertingResultQuery.Serialization.cs | 8 +++++++ .../Models/AnomalyAlert.Serialization.cs | 8 +++++++ ...AnomalyAlertConfiguration.Serialization.cs | 16 ++++++++++++++ ...AlertingConfigurationList.Serialization.cs | 8 +++++++ ...lertingConfigurationPatch.Serialization.cs | 7 ++++++ ...alyDetectionConfiguration.Serialization.cs | 16 ++++++++++++++ ...etectionConfigurationList.Serialization.cs | 8 +++++++ ...tectionConfigurationPatch.Serialization.cs | 7 ++++++ .../AnomalyDimensionList.Serialization.cs | 8 +++++++ .../AnomalyDimensionQuery.Serialization.cs | 8 +++++++ .../AnomalyFeedbackValue.Serialization.cs | 16 ++++++++++++++ .../Models/AnomalyIncident.Serialization.cs | 8 +++++++ .../Models/AnomalyProperty.Serialization.cs | 8 +++++++ .../Models/AnomalyResultList.Serialization.cs | 8 +++++++ ...plicationInsightsDataFeed.Serialization.cs | 16 ++++++++++++++ ...tionInsightsDataFeedPatch.Serialization.cs | 7 ++++++ ...licationInsightsParameter.Serialization.cs | 16 ++++++++++++++ ...ionInsightsParameterPatch.Serialization.cs | 7 ++++++ .../Models/AzureBlobDataFeed.Serialization.cs | 16 ++++++++++++++ .../AzureBlobDataFeedPatch.Serialization.cs | 7 ++++++ .../AzureBlobParameter.Serialization.cs | 16 ++++++++++++++ .../AzureBlobParameterPatch.Serialization.cs | 7 ++++++ .../AzureCosmosDBDataFeed.Serialization.cs | 16 ++++++++++++++ ...zureCosmosDBDataFeedPatch.Serialization.cs | 7 ++++++ .../AzureCosmosDBParameter.Serialization.cs | 16 ++++++++++++++ ...ureCosmosDBParameterPatch.Serialization.cs | 7 ++++++ ...AzureDataExplorerDataFeed.Serialization.cs | 16 ++++++++++++++ ...DataExplorerDataFeedPatch.Serialization.cs | 7 ++++++ ...taLakeStorageGen2DataFeed.Serialization.cs | 16 ++++++++++++++ ...eStorageGen2DataFeedPatch.Serialization.cs | 7 ++++++ ...aLakeStorageGen2Parameter.Serialization.cs | 16 ++++++++++++++ ...StorageGen2ParameterPatch.Serialization.cs | 7 ++++++ .../AzureEventHubsDataFeed.Serialization.cs | 16 ++++++++++++++ ...ureEventHubsDataFeedPatch.Serialization.cs | 7 ++++++ .../AzureEventHubsParameter.Serialization.cs | 16 ++++++++++++++ ...reEventHubsParameterPatch.Serialization.cs | 7 ++++++ ...AzureLogAnalyticsDataFeed.Serialization.cs | 16 ++++++++++++++ ...LogAnalyticsDataFeedPatch.Serialization.cs | 7 ++++++ ...zureLogAnalyticsParameter.Serialization.cs | 16 ++++++++++++++ ...ogAnalyticsParameterPatch.Serialization.cs | 7 ++++++ ...tionStringCredentialPatch.Serialization.cs | 7 ++++++ ...eSQLConnectionStringParam.Serialization.cs | 16 ++++++++++++++ ...onnectionStringParamPatch.Serialization.cs | 8 +++++++ .../AzureTableDataFeed.Serialization.cs | 16 ++++++++++++++ .../AzureTableDataFeedPatch.Serialization.cs | 7 ++++++ .../AzureTableParameter.Serialization.cs | 16 ++++++++++++++ .../AzureTableParameterPatch.Serialization.cs | 7 ++++++ .../ChangePointFeedbackValue.Serialization.cs | 16 ++++++++++++++ .../ChangeThresholdCondition.Serialization.cs | 16 ++++++++++++++ ...geThresholdConditionPatch.Serialization.cs | 7 ++++++ .../CommentFeedbackValue.Serialization.cs | 16 ++++++++++++++ .../Models/DataFeedDetail.Serialization.cs | 16 ++++++++++++++ .../DataFeedDetailPatch.Serialization.cs | 7 ++++++ .../Models/DataFeedDimension.Serialization.cs | 16 ++++++++++++++ ...DataFeedIngestionProgress.Serialization.cs | 8 +++++++ .../DataFeedIngestionStatus.Serialization.cs | 8 +++++++ .../Models/DataFeedList.Serialization.cs | 8 +++++++ .../Models/DataFeedMetric.Serialization.cs | 16 ++++++++++++++ ...2SharedKeyCredentialPatch.Serialization.cs | 7 ++++++ ...ataLakeGen2SharedKeyParam.Serialization.cs | 16 ++++++++++++++ ...keGen2SharedKeyParamPatch.Serialization.cs | 8 +++++++ ...SharedKeyCredentialEntity.Serialization.cs | 16 ++++++++++++++ .../Models/DataPointAnomaly.Serialization.cs | 8 +++++++ ...ataSourceCredentialEntity.Serialization.cs | 16 ++++++++++++++ .../DataSourceCredentialList.Serialization.cs | 8 +++++++ ...DataSourceCredentialPatch.Serialization.cs | 7 ++++++ ...ionAnomalyFilterCondition.Serialization.cs | 8 +++++++ ...tectionAnomalyResultQuery.Serialization.cs | 8 +++++++ ...onIncidentFilterCondition.Serialization.cs | 8 +++++++ ...ectionIncidentResultQuery.Serialization.cs | 8 +++++++ .../DetectionSeriesQuery.Serialization.cs | 8 +++++++ .../Models/DimensionKey.Serialization.cs | 16 ++++++++++++++ .../EmailHookInfoPatch.Serialization.cs | 7 ++++++ .../EmailHookParameter.Serialization.cs | 16 ++++++++++++++ .../EmailHookParameterPatch.Serialization.cs | 8 +++++++ .../EmailNotificationHook.Serialization.cs | 16 ++++++++++++++ .../Models/EnrichmentStatus.Serialization.cs | 8 +++++++ .../EnrichmentStatusList.Serialization.cs | 8 +++++++ ...richmentStatusQueryOption.Serialization.cs | 8 +++++++ .../Models/ErrorCode.Serialization.cs | 8 +++++++ .../Models/FeedbackFilter.Serialization.cs | 16 ++++++++++++++ .../HardThresholdCondition.Serialization.cs | 16 ++++++++++++++ ...rdThresholdConditionPatch.Serialization.cs | 7 ++++++ .../Models/HookInfoPatch.Serialization.cs | 7 ++++++ .../Models/HookList.Serialization.cs | 8 +++++++ .../Models/IncidentProperty.Serialization.cs | 8 +++++++ .../IncidentResultList.Serialization.cs | 8 +++++++ .../Models/IncidentRootCause.Serialization.cs | 8 +++++++ .../Models/InfluxDBDataFeed.Serialization.cs | 16 ++++++++++++++ .../InfluxDBDataFeedPatch.Serialization.cs | 7 ++++++ .../Models/InfluxDBParameter.Serialization.cs | 16 ++++++++++++++ .../InfluxDBParameterPatch.Serialization.cs | 7 ++++++ ...stionProgressResetOptions.Serialization.cs | 8 +++++++ .../IngestionStatusList.Serialization.cs | 8 +++++++ ...gestionStatusQueryOptions.Serialization.cs | 8 +++++++ .../MetricAlertConfiguration.Serialization.cs | 16 ++++++++++++++ ...omalyAlertSnoozeCondition.Serialization.cs | 16 ++++++++++++++ .../MetricAnomalyFeedback.Serialization.cs | 16 ++++++++++++++ .../MetricBoundaryCondition.Serialization.cs | 16 ++++++++++++++ ...MetricChangePointFeedback.Serialization.cs | 16 ++++++++++++++ .../MetricCommentFeedback.Serialization.cs | 16 ++++++++++++++ .../Models/MetricDataList.Serialization.cs | 8 +++++++ .../MetricDataQueryOptions.Serialization.cs | 8 +++++++ .../MetricDimensionList.Serialization.cs | 8 +++++++ ...tricDimensionQueryOptions.Serialization.cs | 8 +++++++ .../MetricEnrichedSeriesData.Serialization.cs | 8 +++++++ .../Models/MetricFeedback.Serialization.cs | 16 ++++++++++++++ .../MetricFeedbackFilter.Serialization.cs | 8 +++++++ .../MetricFeedbackList.Serialization.cs | 8 +++++++ .../MetricPeriodFeedback.Serialization.cs | 16 ++++++++++++++ .../Models/MetricSeriesData.Serialization.cs | 8 +++++++ .../MetricSeriesDefinition.Serialization.cs | 8 +++++++ ...esGroupDetectionCondition.Serialization.cs | 16 ++++++++++++++ .../Models/MetricSeriesList.Serialization.cs | 8 +++++++ .../MetricSeriesQueryOptions.Serialization.cs | 8 +++++++ ...eSeriesDetectionCondition.Serialization.cs | 16 ++++++++++++++ ...eSeriesDetectionCondition.Serialization.cs | 16 ++++++++++++++ .../Models/MongoDBDataFeed.Serialization.cs | 16 ++++++++++++++ .../MongoDBDataFeedPatch.Serialization.cs | 7 ++++++ .../Models/MongoDBParameter.Serialization.cs | 16 ++++++++++++++ .../MongoDBParameterPatch.Serialization.cs | 7 ++++++ .../Models/MySqlDataFeed.Serialization.cs | 16 ++++++++++++++ .../MySqlDataFeedPatch.Serialization.cs | 7 ++++++ .../Models/NotificationHook.Serialization.cs | 16 ++++++++++++++ .../PeriodFeedbackValue.Serialization.cs | 16 ++++++++++++++ .../PostgreSqlDataFeed.Serialization.cs | 16 ++++++++++++++ .../PostgreSqlDataFeedPatch.Serialization.cs | 7 ++++++ .../Models/RootCauseList.Serialization.cs | 8 +++++++ .../Models/SQLServerDataFeed.Serialization.cs | 16 ++++++++++++++ .../SQLServerDataFeedPatch.Serialization.cs | 7 ++++++ .../SQLSourceParameterPatch.Serialization.cs | 7 ++++++ .../Models/SeriesIdentity.Serialization.cs | 16 ++++++++++++++ .../Models/SeriesResultList.Serialization.cs | 8 +++++++ ...PrincipalCredentialEntity.Serialization.cs | 16 ++++++++++++++ ...ePrincipalCredentialPatch.Serialization.cs | 7 ++++++ ...ncipalInKVCredentialPatch.Serialization.cs | 7 ++++++ ...ServicePrincipalInKVParam.Serialization.cs | 16 ++++++++++++++ ...cePrincipalInKVParamPatch.Serialization.cs | 7 ++++++ ...nKeyVaultCredentialEntity.Serialization.cs | 16 ++++++++++++++ .../ServicePrincipalParam.Serialization.cs | 16 ++++++++++++++ ...ervicePrincipalParamPatch.Serialization.cs | 7 ++++++ .../Models/SeverityCondition.Serialization.cs | 16 ++++++++++++++ .../SeverityFilterCondition.Serialization.cs | 8 +++++++ .../SmartDetectionCondition.Serialization.cs | 16 ++++++++++++++ ...rtDetectionConditionPatch.Serialization.cs | 7 ++++++ ...ionStringCredentialEntity.Serialization.cs | 16 ++++++++++++++ .../SqlSourceParameter.Serialization.cs | 16 ++++++++++++++ .../Models/SuppressCondition.Serialization.cs | 16 ++++++++++++++ .../SuppressConditionPatch.Serialization.cs | 8 +++++++ .../Models/TopNGroupScope.Serialization.cs | 16 ++++++++++++++ .../UnknownDataFeedDetail.Serialization.cs | 16 ++++++++++++++ ...knownDataSourceCredential.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownHookInfo.Serialization.cs | 16 ++++++++++++++ .../UnknownMetricFeedback.Serialization.cs | 16 ++++++++++++++ .../Models/UsageStats.Serialization.cs | 8 +++++++ .../WebNotificationHook.Serialization.cs | 16 ++++++++++++++ .../WebhookHookInfoPatch.Serialization.cs | 7 ++++++ .../WebhookHookParameter.Serialization.cs | 16 ++++++++++++++ ...WebhookHookParameterPatch.Serialization.cs | 7 ++++++ ...eMetricConfigurationPatch.Serialization.cs | 7 ++++++ .../StsTokenResponseMessage.Serialization.cs | 8 +++++++ .../Models/AvailabilityData.Serialization.cs | 8 +++++++ .../Models/MessageData.Serialization.cs | 8 +++++++ .../Models/MetricDataPoint.Serialization.cs | 8 +++++++ .../Models/MetricsData.Serialization.cs | 8 +++++++ .../Models/MonitorBase.Serialization.cs | 8 +++++++ .../Models/MonitorDomain.Serialization.cs | 8 +++++++ .../Models/PageViewData.Serialization.cs | 8 +++++++ .../Models/PageViewPerfData.Serialization.cs | 8 +++++++ .../RemoteDependencyData.Serialization.cs | 8 +++++++ .../Models/RequestData.Serialization.cs | 8 +++++++ .../Models/StackFrame.Serialization.cs | 8 +++++++ .../TelemetryErrorDetails.Serialization.cs | 8 +++++++ .../TelemetryEventData.Serialization.cs | 8 +++++++ .../TelemetryExceptionData.Serialization.cs | 8 +++++++ ...TelemetryExceptionDetails.Serialization.cs | 8 +++++++ .../Models/TelemetryItem.Serialization.cs | 8 +++++++ .../Models/TrackResponse.Serialization.cs | 8 +++++++ ...lectionConfigurationError.Serialization.cs | 8 +++++++ ...llectionConfigurationInfo.Serialization.cs | 8 +++++++ .../Models/DerivedMetricInfo.Serialization.cs | 8 +++++++ ...ilterConjunctionGroupInfo.Serialization.cs | 8 +++++++ .../Models/DocumentIngress.Serialization.cs | 8 +++++++ .../DocumentStreamInfo.Serialization.cs | 8 +++++++ .../Generated/Models/Event.Serialization.cs | 8 +++++++ .../Models/Exception.Serialization.cs | 8 +++++++ ...ilterConjunctionGroupInfo.Serialization.cs | 8 +++++++ .../Models/FilterInfo.Serialization.cs | 8 +++++++ .../KeyValuePairString.Serialization.cs | 8 +++++++ .../Models/MetricPoint.Serialization.cs | 8 +++++++ .../MonitoringDataPoint.Serialization.cs | 8 +++++++ .../Models/ProcessCpuData.Serialization.cs | 8 +++++++ .../QuotaConfigurationInfo.Serialization.cs | 8 +++++++ .../Models/RemoteDependency.Serialization.cs | 8 +++++++ .../Generated/Models/Request.Serialization.cs | 8 +++++++ .../Models/ServiceError.Serialization.cs | 8 +++++++ .../Generated/Models/Trace.Serialization.cs | 8 +++++++ .../Models/BatchQueryRequest.Serialization.cs | 8 +++++++ .../BatchQueryResponse.Serialization.cs | 8 +++++++ .../Models/BatchRequest.Serialization.cs | 8 +++++++ .../Models/BatchResponse.Serialization.cs | 8 +++++++ .../ErrorAdditionalInfo.Serialization.cs | 8 +++++++ .../Models/ErrorDetail.Serialization.cs | 8 +++++++ .../ErrorDetailAutoGenerated.Serialization.cs | 8 +++++++ .../Models/ErrorInfo.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ ...rrorResponseAutoGenerated.Serialization.cs | 8 +++++++ ...rorResponseAutoGenerated2.Serialization.cs | 8 +++++++ ...rorResponseAutoGenerated3.Serialization.cs | 8 +++++++ .../Models/LocalizableString.Serialization.cs | 8 +++++++ .../LogsBatchQueryResult.Serialization.cs | 9 ++++++++ .../Models/LogsQueryResult.Serialization.cs | 8 +++++++ .../Models/LogsTable.Serialization.cs | 8 +++++++ .../Models/LogsTableColumn.Serialization.cs | 8 +++++++ .../Models/MetadataValue.Serialization.cs | 8 +++++++ .../MetricAvailability.Serialization.cs | 8 +++++++ .../Models/MetricDefinition.Serialization.cs | 8 +++++++ ...etricDefinitionCollection.Serialization.cs | 8 +++++++ .../Models/MetricNamespace.Serialization.cs | 8 +++++++ ...MetricNamespaceCollection.Serialization.cs | 8 +++++++ .../MetricNamespaceName.Serialization.cs | 8 +++++++ .../Models/MetricResult.Serialization.cs | 8 +++++++ .../MetricTimeSeriesElement.Serialization.cs | 8 +++++++ .../Models/MetricValue.Serialization.cs | 8 +++++++ .../MetricsBatchResultValues.Serialization.cs | 8 +++++++ ...tricsQueryResourcesResult.Serialization.cs | 8 +++++++ .../MetricsQueryResult.Serialization.cs | 8 +++++++ .../Models/QueryBody.Serialization.cs | 8 +++++++ .../Models/ResourceIdList.Serialization.cs | 8 +++++++ ...etConversionConfiguration.Serialization.cs | 16 ++++++++++++++ ...AssetConversionProperties.Serialization.cs | 16 ++++++++++++++ .../AssetUploadUriResult.Serialization.cs | 8 +++++++ .../Models/ErrorDetail.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../Models/InnerError.Serialization.cs | 8 +++++++ .../Models/Quaternion.Serialization.cs | 17 ++++++++++++++ .../Models/TrajectoryPose.Serialization.cs | 16 ++++++++++++++ .../Generated/Models/Vector3.Serialization.cs | 17 ++++++++++++++ .../Generated/Models/Vector4.Serialization.cs | 17 ++++++++++++++ .../Models/BlobDetails.Serialization.cs | 8 +++++++ .../Models/CostEstimate.Serialization.cs | 8 +++++++ .../Models/ErrorData.Serialization.cs | 8 +++++++ .../Models/JobDetails.Serialization.cs | 16 ++++++++++++++ .../Models/JobDetailsList.Serialization.cs | 8 +++++++ .../Models/JsonPatchDocument.Serialization.cs | 8 +++++++ .../Models/ProviderStatus.Serialization.cs | 8 +++++++ .../ProviderStatusList.Serialization.cs | 8 +++++++ .../Models/QuantumJobQuota.Serialization.cs | 8 +++++++ .../QuantumJobQuotaList.Serialization.cs | 8 +++++++ .../Models/RestError.Serialization.cs | 8 +++++++ .../Models/SasUriResponse.Serialization.cs | 8 +++++++ .../Models/TargetStatus.Serialization.cs | 8 +++++++ .../Models/UsageEvent.Serialization.cs | 8 +++++++ .../Models/AssetConversion.Serialization.cs | 8 +++++++ ...setConversionInputOptions.Serialization.cs | 16 ++++++++++++++ .../AssetConversionOptions.Serialization.cs | 16 ++++++++++++++ .../AssetConversionOutput.Serialization.cs | 8 +++++++ ...etConversionOutputOptions.Serialization.cs | 16 ++++++++++++++ .../Models/ConversionList.Serialization.cs | 8 +++++++ .../CreateConversionSettings.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ ...moteRenderingServiceError.Serialization.cs | 8 +++++++ .../Models/RenderingSession.Serialization.cs | 8 +++++++ .../RenderingSessionOptions.Serialization.cs | 8 +++++++ .../Models/SessionsList.Serialization.cs | 8 +++++++ .../UpdateSessionOptions.Serialization.cs | 8 +++++++ .../Generated/Models/ArmPlan.Serialization.cs | 1 + .../Generated/Models/ArmSku.Serialization.cs | 1 + .../EncryptionProperties.Serialization.cs | 1 + .../KeyVaultProperties.Serialization.cs | 1 + .../OperationStatusResult.Serialization.cs | 1 + ...emAssignedServiceIdentity.Serialization.cs | 1 + .../Models/SystemData.Serialization.cs | 1 + .../UserAssignedIdentity.Serialization.cs | 1 + .../Models/ExtendedLocation.Serialization.cs | 1 + .../Generated/Models/Error.Serialization.cs | 8 +++++++ .../Models/ErrorDetail.Serialization.cs | 8 +++++++ .../Models/SchemaGroups.Serialization.cs | 8 +++++++ .../Models/SchemaVersions.Serialization.cs | 8 +++++++ .../Models/AnalyzeResult.Serialization.cs | 8 +++++++ .../AnalyzeTextOptions.Serialization.cs | 8 +++++++ .../Models/AnalyzedTokenInfo.Serialization.cs | 8 +++++++ .../AsciiFoldingTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/AutocompleteItem.Serialization.cs | 8 +++++++ .../AutocompleteOptions.Serialization.cs | 8 +++++++ .../AutocompleteResults.Serialization.cs | 8 +++++++ ...oryApplicationCredentials.Serialization.cs | 16 ++++++++++++++ ...AzureMachineLearningSkill.Serialization.cs | 16 ++++++++++++++ ...AzureOpenAIEmbeddingSkill.Serialization.cs | 16 ++++++++++++++ .../AzureOpenAIParameters.Serialization.cs | 16 ++++++++++++++ .../AzureOpenAIVectorizer.Serialization.cs | 16 ++++++++++++++ .../Models/BM25Similarity.Serialization.cs | 16 ++++++++++++++ .../Models/CharFilter.Serialization.cs | 16 ++++++++++++++ .../CjkBigramTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/ClassicSimilarity.Serialization.cs | 16 ++++++++++++++ .../Models/ClassicTokenizer.Serialization.cs | 16 ++++++++++++++ .../CognitiveServicesAccount.Serialization.cs | 16 ++++++++++++++ ...gnitiveServicesAccountKey.Serialization.cs | 16 ++++++++++++++ .../CommonGramTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/ConditionalSkill.Serialization.cs | 16 ++++++++++++++ .../Models/CorsOptions.Serialization.cs | 16 ++++++++++++++ .../Models/CustomAnalyzer.Serialization.cs | 16 ++++++++++++++ .../Models/CustomEntity.Serialization.cs | 16 ++++++++++++++ .../Models/CustomEntityAlias.Serialization.cs | 16 ++++++++++++++ .../CustomEntityLookupSkill.Serialization.cs | 16 ++++++++++++++ .../Models/CustomNormalizer.Serialization.cs | 16 ++++++++++++++ .../Models/CustomVectorizer.Serialization.cs | 16 ++++++++++++++ .../CustomWebApiParameters.Serialization.cs | 16 ++++++++++++++ ...DataChangeDetectionPolicy.Serialization.cs | 16 ++++++++++++++ ...taDeletionDetectionPolicy.Serialization.cs | 16 ++++++++++++++ .../DataSourceCredentials.Serialization.cs | 16 ++++++++++++++ ...tCognitiveServicesAccount.Serialization.cs | 16 ++++++++++++++ ...ryDecompounderTokenFilter.Serialization.cs | 16 ++++++++++++++ .../DistanceScoringFunction.Serialization.cs | 16 ++++++++++++++ ...DistanceScoringParameters.Serialization.cs | 16 ++++++++++++++ .../Models/DocumentDebugInfo.Serialization.cs | 8 +++++++ .../DocumentExtractionSkill.Serialization.cs | 16 ++++++++++++++ .../EdgeNGramTokenFilter.Serialization.cs | 15 +++++++++++++ .../EdgeNGramTokenizer.Serialization.cs | 16 ++++++++++++++ .../ElisionTokenFilter.Serialization.cs | 16 ++++++++++++++ .../EntityLinkingSkill.Serialization.cs | 16 ++++++++++++++ .../EntityRecognitionSkill.Serialization.cs | 16 ++++++++++++++ .../EntityRecognitionSkillV3.Serialization.cs | 16 ++++++++++++++ .../ErrorAdditionalInfo.Serialization.cs | 8 +++++++ .../Models/ErrorDetail.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ ...KnnAlgorithmConfiguration.Serialization.cs | 16 ++++++++++++++ .../ExhaustiveKnnParameters.Serialization.cs | 16 ++++++++++++++ .../Models/FacetResult.Serialization.cs | 8 +++++++ .../Models/FieldMapping.Serialization.cs | 16 ++++++++++++++ .../FieldMappingFunction.Serialization.cs | 16 ++++++++++++++ .../FreshnessScoringFunction.Serialization.cs | 16 ++++++++++++++ ...reshnessScoringParameters.Serialization.cs | 16 ++++++++++++++ ...MarkChangeDetectionPolicy.Serialization.cs | 16 ++++++++++++++ ...nswAlgorithmConfiguration.Serialization.cs | 16 ++++++++++++++ .../Models/HnswParameters.Serialization.cs | 16 ++++++++++++++ .../ImageAnalysisSkill.Serialization.cs | 16 ++++++++++++++ .../Models/IndexAction.Serialization.cs | 8 +++++++ .../Models/IndexBatch.Serialization.cs | 8 +++++++ .../IndexDocumentsResult.Serialization.cs | 8 +++++++ .../IndexerExecutionResult.Serialization.cs | 8 +++++++ .../Models/IndexerState.Serialization.cs | 8 +++++++ .../IndexingParameters.Serialization.cs | 16 ++++++++++++++ ...ngParametersConfiguration.Serialization.cs | 16 ++++++++++++++ .../Models/IndexingResult.Serialization.cs | 8 +++++++ .../Models/IndexingSchedule.Serialization.cs | 16 ++++++++++++++ .../InputFieldMappingEntry.Serialization.cs | 16 ++++++++++++++ .../Models/KeepTokenFilter.Serialization.cs | 16 ++++++++++++++ .../KeyPhraseExtractionSkill.Serialization.cs | 16 ++++++++++++++ .../KeywordMarkerTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/KeywordTokenizer.Serialization.cs | 15 +++++++++++++ .../Models/KnowledgeStore.Serialization.cs | 16 ++++++++++++++ ...oreFileProjectionSelector.Serialization.cs | 16 ++++++++++++++ ...eObjectProjectionSelector.Serialization.cs | 16 ++++++++++++++ .../KnowledgeStoreProjection.Serialization.cs | 16 ++++++++++++++ ...geStoreProjectionSelector.Serialization.cs | 16 ++++++++++++++ ...StorageProjectionSelector.Serialization.cs | 16 ++++++++++++++ ...reTableProjectionSelector.Serialization.cs | 16 ++++++++++++++ .../LanguageDetectionSkill.Serialization.cs | 16 ++++++++++++++ .../Models/LengthTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/LexicalAnalyzer.Serialization.cs | 16 ++++++++++++++ .../Models/LexicalNormalizer.Serialization.cs | 16 ++++++++++++++ .../Models/LexicalTokenizer.Serialization.cs | 16 ++++++++++++++ .../Models/LimitTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/ListAliasesResult.Serialization.cs | 8 +++++++ .../ListDataSourcesResult.Serialization.cs | 8 +++++++ .../ListIndexersResult.Serialization.cs | 8 +++++++ .../Models/ListIndexesResult.Serialization.cs | 8 +++++++ .../ListSkillsetsResult.Serialization.cs | 8 +++++++ .../ListSynonymMapsResult.Serialization.cs | 8 +++++++ .../LuceneStandardAnalyzer.Serialization.cs | 16 ++++++++++++++ .../LuceneStandardTokenizer.Serialization.cs | 15 +++++++++++++ .../MagnitudeScoringFunction.Serialization.cs | 16 ++++++++++++++ ...agnitudeScoringParameters.Serialization.cs | 16 ++++++++++++++ .../Models/MappingCharFilter.Serialization.cs | 16 ++++++++++++++ .../Models/MergeSkill.Serialization.cs | 16 ++++++++++++++ ...LanguageStemmingTokenizer.Serialization.cs | 16 ++++++++++++++ ...icrosoftLanguageTokenizer.Serialization.cs | 16 ++++++++++++++ .../Models/NGramTokenFilter.Serialization.cs | 15 +++++++++++++ .../Models/NGramTokenizer.Serialization.cs | 16 ++++++++++++++ ...teDeletionDetectionPolicy.Serialization.cs | 16 ++++++++++++++ .../Models/OcrSkill.Serialization.cs | 16 ++++++++++++++ .../OutputFieldMappingEntry.Serialization.cs | 16 ++++++++++++++ .../PathHierarchyTokenizer.Serialization.cs | 16 ++++++++++++++ .../Models/PatternAnalyzer.Serialization.cs | 16 ++++++++++++++ ...PatternCaptureTokenFilter.Serialization.cs | 16 ++++++++++++++ .../PatternReplaceCharFilter.Serialization.cs | 16 ++++++++++++++ ...PatternReplaceTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/PatternTokenizer.Serialization.cs | 16 ++++++++++++++ .../PhoneticTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/PiiDetectionSkill.Serialization.cs | 16 ++++++++++++++ .../Models/QueryAnswerResult.Serialization.cs | 8 +++++++ .../QueryCaptionResult.Serialization.cs | 8 +++++++ ...sultDocumentRerankerInput.Serialization.cs | 8 +++++++ ...sultDocumentSemanticField.Serialization.cs | 8 +++++++ .../ResetDocumentOptions.Serialization.cs | 8 +++++++ .../ResetSkillsOptions.Serialization.cs | 8 +++++++ ...nCompressionConfiguration.Serialization.cs | 16 ++++++++++++++ ...larQuantizationParameters.Serialization.cs | 16 ++++++++++++++ .../Models/ScoringFunction.Serialization.cs | 16 ++++++++++++++ .../Models/ScoringProfile.Serialization.cs | 16 ++++++++++++++ .../Models/SearchAlias.Serialization.cs | 16 ++++++++++++++ .../SearchDocumentsResult.Serialization.cs | 8 +++++++ .../Models/SearchField.Serialization.cs | 16 ++++++++++++++ .../Models/SearchIndex.Serialization.cs | 16 ++++++++++++++ .../SearchIndexStatistics.Serialization.cs | 8 +++++++ .../Models/SearchIndexer.Serialization.cs | 16 ++++++++++++++ .../SearchIndexerCache.Serialization.cs | 16 ++++++++++++++ ...earchIndexerDataContainer.Serialization.cs | 16 ++++++++++++++ ...SearchIndexerDataIdentity.Serialization.cs | 16 ++++++++++++++ ...chIndexerDataNoneIdentity.Serialization.cs | 16 ++++++++++++++ ...dexerDataSourceConnection.Serialization.cs | 16 ++++++++++++++ ...rDataUserAssignedIdentity.Serialization.cs | 16 ++++++++++++++ .../SearchIndexerError.Serialization.cs | 8 +++++++ ...erIndexProjectionSelector.Serialization.cs | 16 ++++++++++++++ ...chIndexerIndexProjections.Serialization.cs | 16 ++++++++++++++ ...ndexProjectionsParameters.Serialization.cs | 16 ++++++++++++++ ...rKnowledgeStoreParameters.Serialization.cs | 16 ++++++++++++++ .../SearchIndexerLimits.Serialization.cs | 8 +++++++ .../SearchIndexerSkill.Serialization.cs | 16 ++++++++++++++ .../SearchIndexerSkillset.Serialization.cs | 16 ++++++++++++++ .../SearchIndexerStatus.Serialization.cs | 8 +++++++ .../SearchIndexerWarning.Serialization.cs | 8 +++++++ .../Models/SearchOptions.Serialization.cs | 16 ++++++++++++++ .../SearchResourceCounter.Serialization.cs | 8 +++++++ ...archResourceEncryptionKey.Serialization.cs | 16 ++++++++++++++ .../Models/SearchResult.Serialization.cs | 8 +++++++ .../SearchServiceCounters.Serialization.cs | 8 +++++++ .../SearchServiceLimits.Serialization.cs | 8 +++++++ .../SearchServiceStatistics.Serialization.cs | 8 +++++++ .../Models/SearchSuggester.Serialization.cs | 16 ++++++++++++++ .../SemanticConfiguration.Serialization.cs | 16 ++++++++++++++ .../Models/SemanticDebugInfo.Serialization.cs | 8 +++++++ .../Models/SemanticField.Serialization.cs | 16 ++++++++++++++ ...SemanticPrioritizedFields.Serialization.cs | 16 ++++++++++++++ .../Models/SemanticSearch.Serialization.cs | 16 ++++++++++++++ .../Models/SentimentSkill.Serialization.cs | 16 ++++++++++++++ .../Models/SentimentSkillV3.Serialization.cs | 16 ++++++++++++++ .../Models/ShaperSkill.Serialization.cs | 16 ++++++++++++++ .../ShingleTokenFilter.Serialization.cs | 16 ++++++++++++++ .../SimilarityAlgorithm.Serialization.cs | 16 ++++++++++++++ .../SnowballTokenFilter.Serialization.cs | 16 ++++++++++++++ ...mnDeletionDetectionPolicy.Serialization.cs | 16 ++++++++++++++ .../Models/SplitSkill.Serialization.cs | 16 ++++++++++++++ ...ratedChangeTrackingPolicy.Serialization.cs | 16 ++++++++++++++ ...temmerOverrideTokenFilter.Serialization.cs | 16 ++++++++++++++ .../StemmerTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/StopAnalyzer.Serialization.cs | 16 ++++++++++++++ .../StopwordsTokenFilter.Serialization.cs | 16 ++++++++++++++ .../SuggestDocumentsResult.Serialization.cs | 8 +++++++ .../Models/SuggestOptions.Serialization.cs | 8 +++++++ .../Models/SuggestResult.Serialization.cs | 8 +++++++ .../Models/SynonymMap.Serialization.cs | 16 ++++++++++++++ .../SynonymTokenFilter.Serialization.cs | 16 ++++++++++++++ .../TagScoringFunction.Serialization.cs | 16 ++++++++++++++ .../TagScoringParameters.Serialization.cs | 16 ++++++++++++++ .../TextTranslationSkill.Serialization.cs | 16 ++++++++++++++ .../Models/TextWeights.Serialization.cs | 16 ++++++++++++++ .../Models/TokenFilter.Serialization.cs | 16 ++++++++++++++ .../TruncateTokenFilter.Serialization.cs | 16 ++++++++++++++ .../UaxUrlEmailTokenizer.Serialization.cs | 16 ++++++++++++++ .../Models/UniqueTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownCharFilter.Serialization.cs | 16 ++++++++++++++ ...nCognitiveServicesAccount.Serialization.cs | 16 ++++++++++++++ ...DataChangeDetectionPolicy.Serialization.cs | 16 ++++++++++++++ ...taDeletionDetectionPolicy.Serialization.cs | 16 ++++++++++++++ .../UnknownLexicalAnalyzer.Serialization.cs | 16 ++++++++++++++ .../UnknownLexicalNormalizer.Serialization.cs | 16 ++++++++++++++ .../UnknownLexicalTokenizer.Serialization.cs | 16 ++++++++++++++ .../UnknownScoringFunction.Serialization.cs | 16 ++++++++++++++ ...SearchIndexerDataIdentity.Serialization.cs | 16 ++++++++++++++ ...UnknownSearchIndexerSkill.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownSimilarity.Serialization.cs | 16 ++++++++++++++ .../UnknownTokenFilter.Serialization.cs | 16 ++++++++++++++ .../UnknownVectorQuery.Serialization.cs | 16 ++++++++++++++ ...rchAlgorithmConfiguration.Serialization.cs | 16 ++++++++++++++ ...hCompressionConfiguration.Serialization.cs | 16 ++++++++++++++ ...ownVectorSearchVectorizer.Serialization.cs | 16 ++++++++++++++ .../Models/VectorQuery.Serialization.cs | 16 ++++++++++++++ .../Models/VectorSearch.Serialization.cs | 16 ++++++++++++++ ...rchAlgorithmConfiguration.Serialization.cs | 16 ++++++++++++++ ...hCompressionConfiguration.Serialization.cs | 16 ++++++++++++++ .../VectorSearchProfile.Serialization.cs | 16 ++++++++++++++ .../VectorSearchVectorizer.Serialization.cs | 16 ++++++++++++++ .../VectorizableTextQuery.Serialization.cs | 16 ++++++++++++++ .../Models/VectorizedQuery.Serialization.cs | 16 ++++++++++++++ .../Models/WebApiSkill.Serialization.cs | 16 ++++++++++++++ .../WordDelimiterTokenFilter.Serialization.cs | 16 ++++++++++++++ .../Models/AclFailedEntry.Serialization.cs | 8 +++++++ .../Models/FileSystem.Serialization.cs | 8 +++++++ .../Models/FileSystemList.Serialization.cs | 8 +++++++ .../Generated/Models/Path.Serialization.cs | 8 +++++++ .../Models/PathList.Serialization.cs | 8 +++++++ ...sControlRecursiveResponse.Serialization.cs | 8 +++++++ .../Models/StorageError.Serialization.cs | 8 +++++++ .../Models/StorageErrorError.Serialization.cs | 8 +++++++ .../Models/SharePermission.Serialization.cs | 17 ++++++++++++++ .../Models/StorageError.Serialization.cs | 8 +++++++ .../Models/Activity.Serialization.cs | 17 ++++++++++++++ .../ActivityDependency.Serialization.cs | 17 ++++++++++++++ .../Models/ActivityPolicy.Serialization.cs | 17 ++++++++++++++ .../Models/ActivityRun.Serialization.cs | 9 ++++++++ ...ActivityRunsQueryResponse.Serialization.cs | 9 ++++++++ ...lowToDebugSessionResponse.Serialization.cs | 9 ++++++++ .../AmazonMWSLinkedService.Serialization.cs | 17 ++++++++++++++ .../AmazonMWSObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/AmazonMWSSource.Serialization.cs | 17 ++++++++++++++ ...RdsForOracleLinkedService.Serialization.cs | 17 ++++++++++++++ ...orOraclePartitionSettings.Serialization.cs | 17 ++++++++++++++ .../AmazonRdsForOracleSource.Serialization.cs | 17 ++++++++++++++ ...nRdsForOracleTableDataset.Serialization.cs | 17 ++++++++++++++ ...ForSqlServerLinkedService.Serialization.cs | 17 ++++++++++++++ ...azonRdsForSqlServerSource.Serialization.cs | 17 ++++++++++++++ ...sForSqlServerTableDataset.Serialization.cs | 17 ++++++++++++++ ...azonRedshiftLinkedService.Serialization.cs | 17 ++++++++++++++ .../AmazonRedshiftSource.Serialization.cs | 17 ++++++++++++++ ...mazonRedshiftTableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/AmazonS3Dataset.Serialization.cs | 17 ++++++++++++++ .../AmazonS3LinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/AmazonS3Location.Serialization.cs | 17 ++++++++++++++ .../AmazonS3ReadSettings.Serialization.cs | 17 ++++++++++++++ .../AppFiguresLinkedService.Serialization.cs | 17 ++++++++++++++ .../AppendVariableActivity.Serialization.cs | 17 ++++++++++++++ .../ArtifactRenameRequest.Serialization.cs | 9 ++++++++ .../AsanaLinkedService.Serialization.cs | 17 ++++++++++++++ .../AutoPauseProperties.Serialization.cs | 17 ++++++++++++++ .../AutoScaleProperties.Serialization.cs | 17 ++++++++++++++ .../Models/AvroDataset.Serialization.cs | 17 ++++++++++++++ .../Models/AvroFormat.Serialization.cs | 17 ++++++++++++++ .../Models/AvroSink.Serialization.cs | 17 ++++++++++++++ .../Models/AvroSource.Serialization.cs | 17 ++++++++++++++ .../Models/AvroWriteSettings.Serialization.cs | 17 ++++++++++++++ .../AzureBatchLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/AzureBlobDataset.Serialization.cs | 17 ++++++++++++++ .../AzureBlobFSDataset.Serialization.cs | 17 ++++++++++++++ .../AzureBlobFSLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureBlobFSLocation.Serialization.cs | 17 ++++++++++++++ .../AzureBlobFSReadSettings.Serialization.cs | 17 ++++++++++++++ .../Models/AzureBlobFSSink.Serialization.cs | 17 ++++++++++++++ .../Models/AzureBlobFSSource.Serialization.cs | 17 ++++++++++++++ .../AzureBlobFSWriteSettings.Serialization.cs | 17 ++++++++++++++ ...eBlobStorageLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureBlobStorageLocation.Serialization.cs | 17 ++++++++++++++ ...reBlobStorageReadSettings.Serialization.cs | 17 ++++++++++++++ ...eBlobStorageWriteSettings.Serialization.cs | 17 ++++++++++++++ ...taExplorerCommandActivity.Serialization.cs | 17 ++++++++++++++ ...DataExplorerLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureDataExplorerSink.Serialization.cs | 17 ++++++++++++++ .../AzureDataExplorerSource.Serialization.cs | 17 ++++++++++++++ ...eDataExplorerTableDataset.Serialization.cs | 17 ++++++++++++++ ...akeAnalyticsLinkedService.Serialization.cs | 17 ++++++++++++++ ...AzureDataLakeStoreDataset.Serialization.cs | 17 ++++++++++++++ ...ataLakeStoreLinkedService.Serialization.cs | 17 ++++++++++++++ ...zureDataLakeStoreLocation.Serialization.cs | 17 ++++++++++++++ ...DataLakeStoreReadSettings.Serialization.cs | 17 ++++++++++++++ .../AzureDataLakeStoreSink.Serialization.cs | 17 ++++++++++++++ .../AzureDataLakeStoreSource.Serialization.cs | 17 ++++++++++++++ ...ataLakeStoreWriteSettings.Serialization.cs | 17 ++++++++++++++ ...atabricksDeltaLakeDataset.Serialization.cs | 17 ++++++++++++++ ...cksDeltaLakeExportCommand.Serialization.cs | 17 ++++++++++++++ ...cksDeltaLakeImportCommand.Serialization.cs | 17 ++++++++++++++ ...cksDeltaLakeLinkedService.Serialization.cs | 17 ++++++++++++++ ...reDatabricksDeltaLakeSink.Serialization.cs | 17 ++++++++++++++ ...DatabricksDeltaLakeSource.Serialization.cs | 17 ++++++++++++++ ...reDatabricksLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureEntityResource.Serialization.cs | 17 ++++++++++++++ ...eFileStorageLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureFileStorageLocation.Serialization.cs | 17 ++++++++++++++ ...reFileStorageReadSettings.Serialization.cs | 17 ++++++++++++++ ...eFileStorageWriteSettings.Serialization.cs | 17 ++++++++++++++ .../AzureFunctionActivity.Serialization.cs | 17 ++++++++++++++ ...zureFunctionLinkedService.Serialization.cs | 17 ++++++++++++++ ...zureKeyVaultLinkedService.Serialization.cs | 17 ++++++++++++++ ...reKeyVaultSecretReference.Serialization.cs | 17 ++++++++++++++ ...eMLBatchExecutionActivity.Serialization.cs | 17 ++++++++++++++ ...MLExecutePipelineActivity.Serialization.cs | 17 ++++++++++++++ .../AzureMLLinkedService.Serialization.cs | 17 ++++++++++++++ ...ureMLServiceLinkedService.Serialization.cs | 17 ++++++++++++++ ...eMLUpdateResourceActivity.Serialization.cs | 17 ++++++++++++++ .../AzureMLWebServiceFile.Serialization.cs | 17 ++++++++++++++ ...AzureMariaDBLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureMariaDBSource.Serialization.cs | 17 ++++++++++++++ .../AzureMariaDBTableDataset.Serialization.cs | 17 ++++++++++++++ .../AzureMySqlLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/AzureMySqlSink.Serialization.cs | 17 ++++++++++++++ .../Models/AzureMySqlSource.Serialization.cs | 17 ++++++++++++++ .../AzureMySqlTableDataset.Serialization.cs | 17 ++++++++++++++ ...rePostgreSqlLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzurePostgreSqlSink.Serialization.cs | 17 ++++++++++++++ .../AzurePostgreSqlSource.Serialization.cs | 17 ++++++++++++++ ...urePostgreSqlTableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/AzureQueueSink.Serialization.cs | 17 ++++++++++++++ .../AzureSearchIndexDataset.Serialization.cs | 17 ++++++++++++++ .../AzureSearchIndexSink.Serialization.cs | 17 ++++++++++++++ .../AzureSearchLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureSqlDWLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureSqlDWTableDataset.Serialization.cs | 17 ++++++++++++++ ...eSqlDatabaseLinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureSqlMILinkedService.Serialization.cs | 17 ++++++++++++++ .../AzureSqlMITableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/AzureSqlSink.Serialization.cs | 17 ++++++++++++++ .../Models/AzureSqlSource.Serialization.cs | 17 ++++++++++++++ .../AzureSqlTableDataset.Serialization.cs | 17 ++++++++++++++ ...AzureStorageLinkedService.Serialization.cs | 17 ++++++++++++++ ...pseArtifactsLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/AzureTableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/AzureTableSink.Serialization.cs | 17 ++++++++++++++ .../Models/AzureTableSource.Serialization.cs | 17 ++++++++++++++ ...TableStorageLinkedService.Serialization.cs | 17 ++++++++++++++ ...lParametrizationReference.Serialization.cs | 17 ++++++++++++++ .../BigDataPoolReference.Serialization.cs | 17 ++++++++++++++ .../BigDataPoolResourceInfo.Serialization.cs | 17 ++++++++++++++ ...oolResourceInfoListResult.Serialization.cs | 9 ++++++++ .../Models/BinaryDataset.Serialization.cs | 17 ++++++++++++++ .../BinaryReadSettings.Serialization.cs | 17 ++++++++++++++ .../Models/BinarySink.Serialization.cs | 17 ++++++++++++++ .../Models/BinarySource.Serialization.cs | 17 ++++++++++++++ .../Models/BlobEventsTrigger.Serialization.cs | 17 ++++++++++++++ .../Models/BlobSink.Serialization.cs | 17 ++++++++++++++ .../Models/BlobSource.Serialization.cs | 17 ++++++++++++++ .../Models/BlobTrigger.Serialization.cs | 17 ++++++++++++++ .../CassandraLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/CassandraSource.Serialization.cs | 17 ++++++++++++++ .../CassandraTableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ChainingTrigger.Serialization.cs | 17 ++++++++++++++ .../Models/CloudError.Serialization.cs | 9 ++++++++ ...rviceForAppsEntityDataset.Serialization.cs | 17 ++++++++++++++ ...rviceForAppsLinkedService.Serialization.cs | 17 ++++++++++++++ ...monDataServiceForAppsSink.Serialization.cs | 17 ++++++++++++++ ...nDataServiceForAppsSource.Serialization.cs | 17 ++++++++++++++ .../CompressionReadSettings.Serialization.cs | 17 ++++++++++++++ .../ConcurLinkedService.Serialization.cs | 17 ++++++++++++++ .../ConcurObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ConcurSource.Serialization.cs | 17 ++++++++++++++ .../Models/ControlActivity.Serialization.cs | 17 ++++++++++++++ .../Models/CopyActivity.Serialization.cs | 17 ++++++++++++++ .../CopyActivityLogSettings.Serialization.cs | 17 ++++++++++++++ .../Models/CopySink.Serialization.cs | 17 ++++++++++++++ .../Models/CopySource.Serialization.cs | 17 ++++++++++++++ .../Models/CopyTranslator.Serialization.cs | 17 ++++++++++++++ .../CosmosDbLinkedService.Serialization.cs | 17 ++++++++++++++ ...ngoDbApiCollectionDataset.Serialization.cs | 17 ++++++++++++++ ...DbMongoDbApiLinkedService.Serialization.cs | 17 ++++++++++++++ .../CosmosDbMongoDbApiSink.Serialization.cs | 17 ++++++++++++++ .../CosmosDbMongoDbApiSource.Serialization.cs | 17 ++++++++++++++ ...DbSqlApiCollectionDataset.Serialization.cs | 17 ++++++++++++++ .../CosmosDbSqlApiSink.Serialization.cs | 17 ++++++++++++++ .../CosmosDbSqlApiSource.Serialization.cs | 17 ++++++++++++++ .../CouchbaseLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/CouchbaseSource.Serialization.cs | 17 ++++++++++++++ .../CouchbaseTableDataset.Serialization.cs | 17 ++++++++++++++ ...taFlowDebugSessionRequest.Serialization.cs | 17 ++++++++++++++ ...aFlowDebugSessionResponse.Serialization.cs | 9 ++++++++ .../Models/CreateRunResponse.Serialization.cs | 9 ++++++++ .../CredentialReference.Serialization.cs | 17 ++++++++++++++ .../Models/CustomActivity.Serialization.cs | 17 ++++++++++++++ ...omActivityReferenceObject.Serialization.cs | 17 ++++++++++++++ ...omDataSourceLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/CustomDataset.Serialization.cs | 17 ++++++++++++++ .../CustomEventsTrigger.Serialization.cs | 17 ++++++++++++++ .../Models/CustomSetupBase.Serialization.cs | 17 ++++++++++++++ ...CustomerManagedKeyDetails.Serialization.cs | 17 ++++++++++++++ ...DWCopyCommandDefaultValue.Serialization.cs | 17 ++++++++++++++ .../DWCopyCommandSettings.Serialization.cs | 17 ++++++++++++++ .../Models/DataFlow.Serialization.cs | 17 ++++++++++++++ ...taFlowDebugCommandPayload.Serialization.cs | 9 ++++++++ ...taFlowDebugCommandRequest.Serialization.cs | 9 ++++++++ ...aFlowDebugCommandResponse.Serialization.cs | 9 ++++++++ .../DataFlowDebugPackage.Serialization.cs | 17 ++++++++++++++ ...DebugPackageDebugSettings.Serialization.cs | 16 ++++++++++++++ ...owDebugPreviewDataRequest.Serialization.cs | 17 ++++++++++++++ ...ataFlowDebugQueryResponse.Serialization.cs | 17 ++++++++++++++ .../DataFlowDebugResource.Serialization.cs | 17 ++++++++++++++ ...taFlowDebugResultResponse.Serialization.cs | 17 ++++++++++++++ .../DataFlowDebugSessionInfo.Serialization.cs | 9 ++++++++ ...lowDebugStatisticsRequest.Serialization.cs | 17 ++++++++++++++ .../Models/DataFlowFolder.Serialization.cs | 16 ++++++++++++++ .../DataFlowListResponse.Serialization.cs | 9 ++++++++ .../Models/DataFlowReference.Serialization.cs | 17 ++++++++++++++ .../Models/DataFlowResource.Serialization.cs | 17 ++++++++++++++ .../Models/DataFlowSink.Serialization.cs | 17 ++++++++++++++ .../Models/DataFlowSource.Serialization.cs | 17 ++++++++++++++ .../DataFlowSourceSetting.Serialization.cs | 17 ++++++++++++++ .../DataFlowStagingInfo.Serialization.cs | 17 ++++++++++++++ ...LakeAnalyticsUsqlActivity.Serialization.cs | 17 ++++++++++++++ ...LakeStorageAccountDetails.Serialization.cs | 17 ++++++++++++++ ...atabricksNotebookActivity.Serialization.cs | 17 ++++++++++++++ ...atabricksSparkJarActivity.Serialization.cs | 17 ++++++++++++++ ...bricksSparkPythonActivity.Serialization.cs | 17 ++++++++++++++ .../Generated/Models/Dataset.Serialization.cs | 17 ++++++++++++++ .../DatasetCompression.Serialization.cs | 17 ++++++++++++++ .../DatasetDataElement.Serialization.cs | 17 ++++++++++++++ .../DatasetDebugResource.Serialization.cs | 17 ++++++++++++++ .../Models/DatasetFolder.Serialization.cs | 16 ++++++++++++++ .../DatasetListResponse.Serialization.cs | 9 ++++++++ .../Models/DatasetLocation.Serialization.cs | 17 ++++++++++++++ .../Models/DatasetReference.Serialization.cs | 17 ++++++++++++++ .../Models/DatasetResource.Serialization.cs | 17 ++++++++++++++ .../DatasetSchemaDataElement.Serialization.cs | 17 ++++++++++++++ .../DatasetStorageFormat.Serialization.cs | 17 ++++++++++++++ .../DataworldLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/Db2LinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/Db2Source.Serialization.cs | 17 ++++++++++++++ .../Models/Db2TableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/DeleteActivity.Serialization.cs | 17 ++++++++++++++ ...taFlowDebugSessionRequest.Serialization.cs | 9 ++++++++ .../DelimitedTextDataset.Serialization.cs | 17 ++++++++++++++ ...DelimitedTextReadSettings.Serialization.cs | 17 ++++++++++++++ .../Models/DelimitedTextSink.Serialization.cs | 17 ++++++++++++++ .../DelimitedTextSource.Serialization.cs | 17 ++++++++++++++ ...elimitedTextWriteSettings.Serialization.cs | 17 ++++++++++++++ .../DependencyReference.Serialization.cs | 17 ++++++++++++++ .../Models/DistcpSettings.Serialization.cs | 17 ++++++++++++++ ...cumentDbCollectionDataset.Serialization.cs | 17 ++++++++++++++ .../DocumentDbCollectionSink.Serialization.cs | 17 ++++++++++++++ ...ocumentDbCollectionSource.Serialization.cs | 17 ++++++++++++++ .../DrillLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/DrillSource.Serialization.cs | 17 ++++++++++++++ .../Models/DrillTableDataset.Serialization.cs | 17 ++++++++++++++ ...DynamicExecutorAllocation.Serialization.cs | 17 ++++++++++++++ .../DynamicsAXLinkedService.Serialization.cs | 17 ++++++++++++++ ...DynamicsAXResourceDataset.Serialization.cs | 17 ++++++++++++++ .../Models/DynamicsAXSource.Serialization.cs | 17 ++++++++++++++ .../DynamicsCrmEntityDataset.Serialization.cs | 17 ++++++++++++++ .../DynamicsCrmLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/DynamicsCrmSink.Serialization.cs | 17 ++++++++++++++ .../Models/DynamicsCrmSource.Serialization.cs | 17 ++++++++++++++ .../DynamicsEntityDataset.Serialization.cs | 17 ++++++++++++++ .../DynamicsLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/DynamicsSink.Serialization.cs | 17 ++++++++++++++ .../Models/DynamicsSource.Serialization.cs | 17 ++++++++++++++ .../Models/EditTablesRequest.Serialization.cs | 17 ++++++++++++++ .../EloquaLinkedService.Serialization.cs | 17 ++++++++++++++ .../EloquaObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/EloquaSource.Serialization.cs | 17 ++++++++++++++ .../Models/EncryptionDetails.Serialization.cs | 17 ++++++++++++++ .../Models/EntityReference.Serialization.cs | 17 ++++++++++++++ .../ErrorAdditionalInfo.Serialization.cs | 9 ++++++++ .../Models/ErrorContract.Serialization.cs | 9 ++++++++ .../Models/ErrorResponse.Serialization.cs | 9 ++++++++ ...DataFlowExpressionRequest.Serialization.cs | 17 ++++++++++++++ .../Models/ExcelDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ExcelSource.Serialization.cs | 17 ++++++++++++++ .../ExecuteDataFlowActivity.Serialization.cs | 17 ++++++++++++++ ...vityTypePropertiesCompute.Serialization.cs | 16 ++++++++++++++ .../ExecutePipelineActivity.Serialization.cs | 17 ++++++++++++++ ...xecuteSsisPackageActivity.Serialization.cs | 17 ++++++++++++++ .../Models/ExecutionActivity.Serialization.cs | 17 ++++++++++++++ .../Models/ExportSettings.Serialization.cs | 17 ++++++++++++++ .../ExposureControlRequest.Serialization.cs | 17 ++++++++++++++ .../ExposureControlResponse.Serialization.cs | 17 ++++++++++++++ .../Models/Expression.Serialization.cs | 17 ++++++++++++++ .../Models/FailActivity.Serialization.cs | 17 ++++++++++++++ .../FileServerLinkedService.Serialization.cs | 17 ++++++++++++++ .../FileServerLocation.Serialization.cs | 17 ++++++++++++++ .../FileServerReadSettings.Serialization.cs | 17 ++++++++++++++ .../FileServerWriteSettings.Serialization.cs | 17 ++++++++++++++ .../Models/FileShareDataset.Serialization.cs | 17 ++++++++++++++ .../Models/FileSystemSink.Serialization.cs | 17 ++++++++++++++ .../Models/FileSystemSource.Serialization.cs | 17 ++++++++++++++ .../Models/FilterActivity.Serialization.cs | 17 ++++++++++++++ .../Generated/Models/Flowlet.Serialization.cs | 17 ++++++++++++++ .../Models/ForEachActivity.Serialization.cs | 17 ++++++++++++++ .../FormatReadSettings.Serialization.cs | 17 ++++++++++++++ .../FormatWriteSettings.Serialization.cs | 17 ++++++++++++++ .../Models/FtpReadSettings.Serialization.cs | 17 ++++++++++++++ .../FtpServerLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/FtpServerLocation.Serialization.cs | 17 ++++++++++++++ .../GetMetadataActivity.Serialization.cs | 17 ++++++++++++++ ...SsisObjectMetadataRequest.Serialization.cs | 17 ++++++++++++++ .../GitHubAccessTokenRequest.Serialization.cs | 9 ++++++++ ...GitHubAccessTokenResponse.Serialization.cs | 9 ++++++++ .../GitHubClientSecret.Serialization.cs | 17 ++++++++++++++ ...oogleAdWordsLinkedService.Serialization.cs | 17 ++++++++++++++ ...oogleAdWordsObjectDataset.Serialization.cs | 17 ++++++++++++++ .../GoogleAdWordsSource.Serialization.cs | 17 ++++++++++++++ ...ogleBigQueryLinkedService.Serialization.cs | 17 ++++++++++++++ ...ogleBigQueryObjectDataset.Serialization.cs | 17 ++++++++++++++ .../GoogleBigQuerySource.Serialization.cs | 17 ++++++++++++++ ...CloudStorageLinkedService.Serialization.cs | 17 ++++++++++++++ ...oogleCloudStorageLocation.Serialization.cs | 17 ++++++++++++++ ...eCloudStorageReadSettings.Serialization.cs | 17 ++++++++++++++ ...GoogleSheetsLinkedService.Serialization.cs | 17 ++++++++++++++ .../GreenplumLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/GreenplumSource.Serialization.cs | 17 ++++++++++++++ .../GreenplumTableDataset.Serialization.cs | 17 ++++++++++++++ .../HBaseLinkedService.Serialization.cs | 17 ++++++++++++++ .../HBaseObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/HBaseSource.Serialization.cs | 17 ++++++++++++++ .../HDInsightHiveActivity.Serialization.cs | 17 ++++++++++++++ .../HDInsightLinkedService.Serialization.cs | 17 ++++++++++++++ ...DInsightMapReduceActivity.Serialization.cs | 17 ++++++++++++++ ...ightOnDemandLinkedService.Serialization.cs | 17 ++++++++++++++ .../HDInsightPigActivity.Serialization.cs | 17 ++++++++++++++ .../HDInsightSparkActivity.Serialization.cs | 17 ++++++++++++++ ...DInsightStreamingActivity.Serialization.cs | 17 ++++++++++++++ .../Models/HdfsLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/HdfsLocation.Serialization.cs | 17 ++++++++++++++ .../Models/HdfsReadSettings.Serialization.cs | 17 ++++++++++++++ .../Models/HdfsSource.Serialization.cs | 17 ++++++++++++++ .../Models/HiveLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/HiveObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/HiveSource.Serialization.cs | 17 ++++++++++++++ .../Models/HttpDataset.Serialization.cs | 17 ++++++++++++++ .../Models/HttpLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/HttpReadSettings.Serialization.cs | 17 ++++++++++++++ .../HttpServerLocation.Serialization.cs | 17 ++++++++++++++ .../Models/HttpSource.Serialization.cs | 17 ++++++++++++++ .../HubspotLinkedService.Serialization.cs | 17 ++++++++++++++ .../HubspotObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/HubspotSource.Serialization.cs | 17 ++++++++++++++ .../IfConditionActivity.Serialization.cs | 17 ++++++++++++++ .../ImpalaLinkedService.Serialization.cs | 17 ++++++++++++++ .../ImpalaObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ImpalaSource.Serialization.cs | 17 ++++++++++++++ .../Models/ImportSettings.Serialization.cs | 17 ++++++++++++++ .../InformixLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/InformixSink.Serialization.cs | 17 ++++++++++++++ .../Models/InformixSource.Serialization.cs | 17 ++++++++++++++ .../InformixTableDataset.Serialization.cs | 17 ++++++++++++++ .../IntegrationRuntime.Serialization.cs | 17 ++++++++++++++ ...nRuntimeComputeProperties.Serialization.cs | 17 ++++++++++++++ ...stomSetupScriptProperties.Serialization.cs | 17 ++++++++++++++ ...RuntimeDataFlowProperties.Serialization.cs | 17 ++++++++++++++ ...untimeDataProxyProperties.Serialization.cs | 17 ++++++++++++++ ...ationRuntimeDebugResource.Serialization.cs | 17 ++++++++++++++ ...rationRuntimeListResponse.Serialization.cs | 9 ++++++++ ...tegrationRuntimeReference.Serialization.cs | 17 ++++++++++++++ ...ntegrationRuntimeResource.Serialization.cs | 17 ++++++++++++++ ...ionRuntimeSsisCatalogInfo.Serialization.cs | 17 ++++++++++++++ ...tionRuntimeSsisProperties.Serialization.cs | 17 ++++++++++++++ ...tionRuntimeVNetProperties.Serialization.cs | 17 ++++++++++++++ .../Models/JiraLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/JiraObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/JiraSource.Serialization.cs | 17 ++++++++++++++ .../Models/JsonDataset.Serialization.cs | 17 ++++++++++++++ .../Models/JsonFormat.Serialization.cs | 17 ++++++++++++++ .../Models/JsonReadSettings.Serialization.cs | 17 ++++++++++++++ .../Models/JsonSink.Serialization.cs | 17 ++++++++++++++ .../Models/JsonSource.Serialization.cs | 17 ++++++++++++++ .../Models/JsonWriteSettings.Serialization.cs | 17 ++++++++++++++ .../Models/KqlScript.Serialization.cs | 17 ++++++++++++++ .../Models/KqlScriptContent.Serialization.cs | 16 ++++++++++++++ ...tContentCurrentConnection.Serialization.cs | 16 ++++++++++++++ .../KqlScriptContentMetadata.Serialization.cs | 16 ++++++++++++++ .../Models/KqlScriptResource.Serialization.cs | 17 ++++++++++++++ ...esourceCollectionResponse.Serialization.cs | 9 ++++++++ .../Models/LibraryInfo.Serialization.cs | 17 ++++++++++++++ .../LibraryListResponse.Serialization.cs | 9 ++++++++ .../LibraryRequirements.Serialization.cs | 17 ++++++++++++++ .../Models/LibraryResource.Serialization.cs | 17 ++++++++++++++ .../LibraryResourceInfo.Serialization.cs | 9 ++++++++ ...LibraryResourceProperties.Serialization.cs | 17 ++++++++++++++ .../Models/LinkConnection.Serialization.cs | 17 ++++++++++++++ .../LinkConnectionCompute.Serialization.cs | 17 ++++++++++++++ ...kConnectionDetailedStatus.Serialization.cs | 9 ++++++++ ...LinkConnectionLandingZone.Serialization.cs | 17 ++++++++++++++ ...inkConnectionListResponse.Serialization.cs | 9 ++++++++ ...onnectionQueryTableStatus.Serialization.cs | 9 ++++++++ ...nkConnectionRefreshStatus.Serialization.cs | 9 ++++++++ .../LinkConnectionResource.Serialization.cs | 17 ++++++++++++++ ...kConnectionSourceDatabase.Serialization.cs | 17 ++++++++++++++ ...rceDatabaseTypeProperties.Serialization.cs | 17 ++++++++++++++ ...kConnectionTargetDatabase.Serialization.cs | 17 ++++++++++++++ ...getDatabaseTypeProperties.Serialization.cs | 17 ++++++++++++++ .../LinkTableListResponse.Serialization.cs | 9 ++++++++ .../Models/LinkTableRequest.Serialization.cs | 17 ++++++++++++++ .../LinkTableRequestSource.Serialization.cs | 17 ++++++++++++++ .../LinkTableRequestTarget.Serialization.cs | 17 ++++++++++++++ ...TargetDistributionOptions.Serialization.cs | 17 ++++++++++++++ ...estTargetStructureOptions.Serialization.cs | 17 ++++++++++++++ .../Models/LinkTableResource.Serialization.cs | 9 ++++++++ .../Models/LinkTableStatus.Serialization.cs | 9 ++++++++ ...onRuntimeKeyAuthorization.Serialization.cs | 17 ++++++++++++++ ...nRuntimeRbacAuthorization.Serialization.cs | 17 ++++++++++++++ ...kedIntegrationRuntimeType.Serialization.cs | 17 ++++++++++++++ .../Models/LinkedService.Serialization.cs | 17 ++++++++++++++ ...inkedServiceDebugResource.Serialization.cs | 17 ++++++++++++++ ...LinkedServiceListResponse.Serialization.cs | 9 ++++++++ .../LinkedServiceReference.Serialization.cs | 17 ++++++++++++++ .../LinkedServiceResource.Serialization.cs | 17 ++++++++++++++ .../LogLocationSettings.Serialization.cs | 17 ++++++++++++++ .../Models/LogSettings.Serialization.cs | 17 ++++++++++++++ .../LogStorageSettings.Serialization.cs | 17 ++++++++++++++ .../Models/LookupActivity.Serialization.cs | 17 ++++++++++++++ .../MagentoLinkedService.Serialization.cs | 17 ++++++++++++++ .../MagentoObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/MagentoSource.Serialization.cs | 17 ++++++++++++++ .../Models/ManagedIdentity.Serialization.cs | 17 ++++++++++++++ ...ManagedIntegrationRuntime.Serialization.cs | 17 ++++++++++++++ ...edVirtualNetworkReference.Serialization.cs | 17 ++++++++++++++ ...gedVirtualNetworkSettings.Serialization.cs | 17 ++++++++++++++ .../Models/MappingDataFlow.Serialization.cs | 17 ++++++++++++++ .../MariaDBLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/MariaDBSource.Serialization.cs | 17 ++++++++++++++ .../MariaDBTableDataset.Serialization.cs | 17 ++++++++++++++ .../MarketoLinkedService.Serialization.cs | 17 ++++++++++++++ .../MarketoObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/MarketoSource.Serialization.cs | 17 ++++++++++++++ .../MetastoreRegisterObject.Serialization.cs | 9 ++++++++ ...storeRegistrationResponse.Serialization.cs | 9 ++++++++ ...oreRequestSuccessResponse.Serialization.cs | 9 ++++++++ .../MetastoreUpdateObject.Serialization.cs | 9 ++++++++ ...MetastoreUpdationResponse.Serialization.cs | 9 ++++++++ ...rosoftAccessLinkedService.Serialization.cs | 17 ++++++++++++++ .../MicrosoftAccessSink.Serialization.cs | 17 ++++++++++++++ .../MicrosoftAccessSource.Serialization.cs | 17 ++++++++++++++ ...crosoftAccessTableDataset.Serialization.cs | 17 ++++++++++++++ ...oDbAtlasCollectionDataset.Serialization.cs | 17 ++++++++++++++ ...MongoDbAtlasLinkedService.Serialization.cs | 17 ++++++++++++++ .../MongoDbAtlasSource.Serialization.cs | 17 ++++++++++++++ .../MongoDbCollectionDataset.Serialization.cs | 17 ++++++++++++++ ...DbCursorMethodsProperties.Serialization.cs | 17 ++++++++++++++ .../MongoDbLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/MongoDbSource.Serialization.cs | 17 ++++++++++++++ ...ongoDbV2CollectionDataset.Serialization.cs | 17 ++++++++++++++ .../MongoDbV2LinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/MongoDbV2Source.Serialization.cs | 17 ++++++++++++++ .../MultiplePipelineTrigger.Serialization.cs | 17 ++++++++++++++ .../MySqlLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/MySqlSource.Serialization.cs | 17 ++++++++++++++ .../Models/MySqlTableDataset.Serialization.cs | 17 ++++++++++++++ .../NetezzaLinkedService.Serialization.cs | 17 ++++++++++++++ .../NetezzaPartitionSettings.Serialization.cs | 17 ++++++++++++++ .../Models/NetezzaSource.Serialization.cs | 17 ++++++++++++++ .../NetezzaTableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/Notebook.Serialization.cs | 17 ++++++++++++++ .../Models/NotebookCell.Serialization.cs | 17 ++++++++++++++ .../NotebookCellOutputItem.Serialization.cs | 17 ++++++++++++++ .../Models/NotebookFolder.Serialization.cs | 16 ++++++++++++++ .../NotebookKernelSpec.Serialization.cs | 17 ++++++++++++++ .../NotebookLanguageInfo.Serialization.cs | 17 ++++++++++++++ .../NotebookListResponse.Serialization.cs | 9 ++++++++ .../Models/NotebookMetadata.Serialization.cs | 17 ++++++++++++++ .../Models/NotebookParameter.Serialization.cs | 17 ++++++++++++++ .../Models/NotebookResource.Serialization.cs | 17 ++++++++++++++ ...NotebookSessionProperties.Serialization.cs | 17 ++++++++++++++ .../ODataLinkedService.Serialization.cs | 17 ++++++++++++++ .../ODataResourceDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ODataSource.Serialization.cs | 17 ++++++++++++++ .../Models/OdbcLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/OdbcSink.Serialization.cs | 17 ++++++++++++++ .../Models/OdbcSource.Serialization.cs | 17 ++++++++++++++ .../Models/OdbcTableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/Office365Dataset.Serialization.cs | 17 ++++++++++++++ .../Office365LinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/Office365Source.Serialization.cs | 17 ++++++++++++++ .../Models/OperationResult.Serialization.cs | 9 ++++++++ .../OracleLinkedService.Serialization.cs | 17 ++++++++++++++ .../OraclePartitionSettings.Serialization.cs | 17 ++++++++++++++ ...ServiceCloudLinkedService.Serialization.cs | 17 ++++++++++++++ ...ServiceCloudObjectDataset.Serialization.cs | 17 ++++++++++++++ .../OracleServiceCloudSource.Serialization.cs | 17 ++++++++++++++ .../Models/OracleSink.Serialization.cs | 17 ++++++++++++++ .../Models/OracleSource.Serialization.cs | 17 ++++++++++++++ .../OracleTableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/OrcDataset.Serialization.cs | 17 ++++++++++++++ .../Models/OrcFormat.Serialization.cs | 17 ++++++++++++++ .../Generated/Models/OrcSink.Serialization.cs | 17 ++++++++++++++ .../Models/OrcSource.Serialization.cs | 17 ++++++++++++++ .../Models/OrcWriteSettings.Serialization.cs | 17 ++++++++++++++ .../ParameterSpecification.Serialization.cs | 17 ++++++++++++++ .../Models/ParquetDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ParquetFormat.Serialization.cs | 17 ++++++++++++++ .../Models/ParquetSink.Serialization.cs | 17 ++++++++++++++ .../Models/ParquetSource.Serialization.cs | 17 ++++++++++++++ .../ParquetWriteSettings.Serialization.cs | 17 ++++++++++++++ .../PaypalLinkedService.Serialization.cs | 17 ++++++++++++++ .../PaypalObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/PaypalSource.Serialization.cs | 17 ++++++++++++++ .../PhoenixLinkedService.Serialization.cs | 17 ++++++++++++++ .../PhoenixObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/PhoenixSource.Serialization.cs | 17 ++++++++++++++ .../Models/PipelineFolder.Serialization.cs | 16 ++++++++++++++ .../PipelineListResponse.Serialization.cs | 9 ++++++++ .../Models/PipelineReference.Serialization.cs | 17 ++++++++++++++ .../Models/PipelineResource.Serialization.cs | 17 ++++++++++++++ .../Models/PipelineRun.Serialization.cs | 9 ++++++++ .../PipelineRunInvokedBy.Serialization.cs | 9 ++++++++ ...PipelineRunsQueryResponse.Serialization.cs | 9 ++++++++ .../Models/PolybaseSettings.Serialization.cs | 17 ++++++++++++++ .../PostgreSqlLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/PostgreSqlSource.Serialization.cs | 17 ++++++++++++++ .../PostgreSqlTableDataset.Serialization.cs | 17 ++++++++++++++ ...rBIWorkspaceLinkedService.Serialization.cs | 17 ++++++++++++++ .../PrestoLinkedService.Serialization.cs | 17 ++++++++++++++ .../PrestoObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/PrestoSource.Serialization.cs | 17 ++++++++++++++ .../Models/PrivateEndpoint.Serialization.cs | 17 ++++++++++++++ ...PrivateEndpointConnection.Serialization.cs | 17 ++++++++++++++ ...inkServiceConnectionState.Serialization.cs | 17 ++++++++++++++ .../Models/ProxyResource.Serialization.cs | 17 ++++++++++++++ .../PurviewConfiguration.Serialization.cs | 17 ++++++++++++++ ...FlowDebugSessionsResponse.Serialization.cs | 9 ++++++++ .../QueryTableStatusRequest.Serialization.cs | 9 ++++++++ .../QuickBooksLinkedService.Serialization.cs | 17 ++++++++++++++ .../QuickBooksObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/QuickBooksSource.Serialization.cs | 17 ++++++++++++++ .../QuickbaseLinkedService.Serialization.cs | 17 ++++++++++++++ .../RecurrenceSchedule.Serialization.cs | 17 ++++++++++++++ ...urrenceScheduleOccurrence.Serialization.cs | 17 ++++++++++++++ ...ctIncompatibleRowSettings.Serialization.cs | 17 ++++++++++++++ .../RedshiftUnloadSettings.Serialization.cs | 17 ++++++++++++++ .../Models/RelationalSource.Serialization.cs | 17 ++++++++++++++ .../RelationalTableDataset.Serialization.cs | 17 ++++++++++++++ .../RerunTriggerListResponse.Serialization.cs | 17 ++++++++++++++ .../RerunTriggerResource.Serialization.cs | 17 ++++++++++++++ ...erunTumblingWindowTrigger.Serialization.cs | 17 ++++++++++++++ .../Models/Resource.Serialization.cs | 17 ++++++++++++++ .../ResponsysLinkedService.Serialization.cs | 17 ++++++++++++++ .../ResponsysObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ResponsysSource.Serialization.cs | 17 ++++++++++++++ .../RestResourceDataset.Serialization.cs | 17 ++++++++++++++ .../RestServiceLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/RestSink.Serialization.cs | 17 ++++++++++++++ .../Models/RestSource.Serialization.cs | 17 ++++++++++++++ .../Models/RetryPolicy.Serialization.cs | 17 ++++++++++++++ .../RunFilterParameters.Serialization.cs | 9 ++++++++ .../Models/RunNotebookError.Serialization.cs | 9 ++++++++ .../RunNotebookParameter.Serialization.cs | 17 ++++++++++++++ .../RunNotebookRequest.Serialization.cs | 9 ++++++++ .../RunNotebookResponse.Serialization.cs | 9 ++++++++ .../Models/RunNotebookResult.Serialization.cs | 9 ++++++++ .../RunNotebookSnapshot.Serialization.cs | 9 ++++++++ ...nNotebookSnapshotResponse.Serialization.cs | 9 ++++++++ ...RunNotebookSnapshotResult.Serialization.cs | 9 ++++++++ ...tebookSparkSessionOptions.Serialization.cs | 17 ++++++++++++++ .../Models/RunQueryFilter.Serialization.cs | 9 ++++++++ .../Models/RunQueryOrderBy.Serialization.cs | 9 ++++++++ .../SalesforceLinkedService.Serialization.cs | 17 ++++++++++++++ ...rketingCloudLinkedService.Serialization.cs | 17 ++++++++++++++ ...rketingCloudObjectDataset.Serialization.cs | 17 ++++++++++++++ ...forceMarketingCloudSource.Serialization.cs | 17 ++++++++++++++ .../SalesforceObjectDataset.Serialization.cs | 17 ++++++++++++++ ...ServiceCloudLinkedService.Serialization.cs | 17 ++++++++++++++ ...ServiceCloudObjectDataset.Serialization.cs | 17 ++++++++++++++ ...alesforceServiceCloudSink.Serialization.cs | 17 ++++++++++++++ ...esforceServiceCloudSource.Serialization.cs | 17 ++++++++++++++ .../Models/SalesforceSink.Serialization.cs | 17 ++++++++++++++ .../Models/SalesforceSource.Serialization.cs | 17 ++++++++++++++ .../SapBWLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/SapBwCubeDataset.Serialization.cs | 17 ++++++++++++++ .../Models/SapBwSource.Serialization.cs | 17 ++++++++++++++ ...dForCustomerLinkedService.Serialization.cs | 17 ++++++++++++++ ...orCustomerResourceDataset.Serialization.cs | 17 ++++++++++++++ .../SapCloudForCustomerSink.Serialization.cs | 17 ++++++++++++++ ...SapCloudForCustomerSource.Serialization.cs | 17 ++++++++++++++ .../SapEccLinkedService.Serialization.cs | 17 ++++++++++++++ .../SapEccResourceDataset.Serialization.cs | 17 ++++++++++++++ .../Models/SapEccSource.Serialization.cs | 17 ++++++++++++++ .../SapHanaLinkedService.Serialization.cs | 17 ++++++++++++++ .../SapHanaPartitionSettings.Serialization.cs | 17 ++++++++++++++ .../Models/SapHanaSource.Serialization.cs | 17 ++++++++++++++ .../SapHanaTableDataset.Serialization.cs | 17 ++++++++++++++ .../SapOdpLinkedService.Serialization.cs | 17 ++++++++++++++ .../SapOdpResourceDataset.Serialization.cs | 17 ++++++++++++++ .../Models/SapOdpSource.Serialization.cs | 17 ++++++++++++++ .../SapOpenHubLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/SapOpenHubSource.Serialization.cs | 17 ++++++++++++++ .../SapOpenHubTableDataset.Serialization.cs | 17 ++++++++++++++ .../SapTableLinkedService.Serialization.cs | 17 ++++++++++++++ ...SapTablePartitionSettings.Serialization.cs | 17 ++++++++++++++ .../SapTableResourceDataset.Serialization.cs | 17 ++++++++++++++ .../Models/SapTableSource.Serialization.cs | 17 ++++++++++++++ .../Models/ScheduleTrigger.Serialization.cs | 17 ++++++++++++++ ...ScheduleTriggerRecurrence.Serialization.cs | 17 ++++++++++++++ .../Models/ScriptAction.Serialization.cs | 17 ++++++++++++++ .../Models/ScriptActivity.Serialization.cs | 17 ++++++++++++++ .../ScriptActivityParameter.Serialization.cs | 17 ++++++++++++++ ...ScriptActivityScriptBlock.Serialization.cs | 17 ++++++++++++++ ...TypePropertiesLogSettings.Serialization.cs | 16 ++++++++++++++ .../Models/SecretBase.Serialization.cs | 17 ++++++++++++++ .../SecureInputOutputPolicy.Serialization.cs | 17 ++++++++++++++ .../Models/SecureString.Serialization.cs | 17 ++++++++++++++ ...ingWindowTriggerReference.Serialization.cs | 17 ++++++++++++++ ...fHostedIntegrationRuntime.Serialization.cs | 17 ++++++++++++++ .../ServiceNowLinkedService.Serialization.cs | 17 ++++++++++++++ .../ServiceNowObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ServiceNowSource.Serialization.cs | 17 ++++++++++++++ .../SetVariableActivity.Serialization.cs | 17 ++++++++++++++ .../Models/SftpLocation.Serialization.cs | 17 ++++++++++++++ .../Models/SftpReadSettings.Serialization.cs | 17 ++++++++++++++ .../SftpServerLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/SftpWriteSettings.Serialization.cs | 17 ++++++++++++++ ...ntOnlineListLinkedService.Serialization.cs | 17 ++++++++++++++ ...OnlineListResourceDataset.Serialization.cs | 17 ++++++++++++++ ...harePointOnlineListSource.Serialization.cs | 17 ++++++++++++++ .../ShopifyLinkedService.Serialization.cs | 17 ++++++++++++++ .../ShopifyObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ShopifySource.Serialization.cs | 17 ++++++++++++++ .../Models/SkipErrorFile.Serialization.cs | 17 ++++++++++++++ .../src/Generated/Models/Sku.Serialization.cs | 17 ++++++++++++++ .../SmartsheetLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/SnowflakeDataset.Serialization.cs | 17 ++++++++++++++ ...nowflakeExportCopyCommand.Serialization.cs | 17 ++++++++++++++ ...nowflakeImportCopyCommand.Serialization.cs | 17 ++++++++++++++ .../SnowflakeLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/SnowflakeSink.Serialization.cs | 17 ++++++++++++++ .../Models/SnowflakeSource.Serialization.cs | 17 ++++++++++++++ .../Models/SparkBatchJob.Serialization.cs | 9 ++++++++ .../SparkBatchJobState.Serialization.cs | 9 ++++++++ .../SparkConfiguration.Serialization.cs | 17 ++++++++++++++ ...ConfigurationListResponse.Serialization.cs | 9 ++++++++ ...nParametrizationReference.Serialization.cs | 17 ++++++++++++++ ...arkConfigurationReference.Serialization.cs | 17 ++++++++++++++ ...parkConfigurationResource.Serialization.cs | 17 ++++++++++++++ .../SparkJobDefinition.Serialization.cs | 17 ++++++++++++++ .../SparkJobDefinitionFolder.Serialization.cs | 16 ++++++++++++++ ...parkJobDefinitionResource.Serialization.cs | 17 ++++++++++++++ ...obDefinitionsListResponse.Serialization.cs | 9 ++++++++ .../SparkJobProperties.Serialization.cs | 17 ++++++++++++++ .../SparkLinkedService.Serialization.cs | 17 ++++++++++++++ .../SparkObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/SparkRequest.Serialization.cs | 9 ++++++++ .../Models/SparkScheduler.Serialization.cs | 9 ++++++++ .../Models/SparkServiceError.Serialization.cs | 9 ++++++++ .../SparkServicePlugin.Serialization.cs | 9 ++++++++ .../Models/SparkSource.Serialization.cs | 17 ++++++++++++++ ...AlwaysEncryptedProperties.Serialization.cs | 17 ++++++++++++++ .../Models/SqlConnection.Serialization.cs | 17 ++++++++++++++ .../Models/SqlDWSink.Serialization.cs | 17 ++++++++++++++ .../Models/SqlDWSource.Serialization.cs | 17 ++++++++++++++ .../Models/SqlMISink.Serialization.cs | 17 ++++++++++++++ .../Models/SqlMISource.Serialization.cs | 17 ++++++++++++++ .../SqlPartitionSettings.Serialization.cs | 17 ++++++++++++++ .../Generated/Models/SqlPool.Serialization.cs | 17 ++++++++++++++ .../SqlPoolInfoListResult.Serialization.cs | 9 ++++++++ .../Models/SqlPoolReference.Serialization.cs | 17 ++++++++++++++ ...olStoredProcedureActivity.Serialization.cs | 17 ++++++++++++++ .../Models/SqlScript.Serialization.cs | 17 ++++++++++++++ .../Models/SqlScriptContent.Serialization.cs | 17 ++++++++++++++ .../Models/SqlScriptFolder.Serialization.cs | 16 ++++++++++++++ .../Models/SqlScriptMetadata.Serialization.cs | 17 ++++++++++++++ .../Models/SqlScriptResource.Serialization.cs | 17 ++++++++++++++ .../SqlScriptsListResponse.Serialization.cs | 9 ++++++++ .../SqlServerLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/SqlServerSink.Serialization.cs | 17 ++++++++++++++ .../Models/SqlServerSource.Serialization.cs | 17 ++++++++++++++ ...erStoredProcedureActivity.Serialization.cs | 17 ++++++++++++++ .../SqlServerTableDataset.Serialization.cs | 17 ++++++++++++++ .../Generated/Models/SqlSink.Serialization.cs | 17 ++++++++++++++ .../Models/SqlSource.Serialization.cs | 17 ++++++++++++++ .../SquareLinkedService.Serialization.cs | 17 ++++++++++++++ .../SquareObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/SquareSource.Serialization.cs | 17 ++++++++++++++ .../SsisAccessCredential.Serialization.cs | 17 ++++++++++++++ .../Models/SsisChildPackage.Serialization.cs | 17 ++++++++++++++ .../SsisExecutionCredential.Serialization.cs | 17 ++++++++++++++ .../SsisExecutionParameter.Serialization.cs | 17 ++++++++++++++ .../Models/SsisLogLocation.Serialization.cs | 17 ++++++++++++++ ...ectMetadataStatusResponse.Serialization.cs | 17 ++++++++++++++ .../SsisPackageLocation.Serialization.cs | 17 ++++++++++++++ .../SsisPropertyOverride.Serialization.cs | 17 ++++++++++++++ .../Models/StagingSettings.Serialization.cs | 17 ++++++++++++++ ...taFlowDebugSessionRequest.Serialization.cs | 17 ++++++++++++++ ...aFlowDebugSessionResponse.Serialization.cs | 17 ++++++++++++++ .../Models/StoreReadSettings.Serialization.cs | 17 ++++++++++++++ .../StoreWriteSettings.Serialization.cs | 17 ++++++++++++++ .../Models/SubResource.Serialization.cs | 17 ++++++++++++++ .../SubResourceDebugResource.Serialization.cs | 17 ++++++++++++++ .../Models/SwitchActivity.Serialization.cs | 17 ++++++++++++++ .../Models/SwitchCase.Serialization.cs | 17 ++++++++++++++ .../SybaseLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/SybaseSource.Serialization.cs | 17 ++++++++++++++ .../SybaseTableDataset.Serialization.cs | 17 ++++++++++++++ .../SynapseNotebookActivity.Serialization.cs | 17 ++++++++++++++ .../SynapseNotebookReference.Serialization.cs | 17 ++++++++++++++ ...parkJobDefinitionActivity.Serialization.cs | 17 ++++++++++++++ .../SynapseSparkJobReference.Serialization.cs | 17 ++++++++++++++ .../Models/TabularSource.Serialization.cs | 17 ++++++++++++++ .../Models/TabularTranslator.Serialization.cs | 17 ++++++++++++++ .../TarGZipReadSettings.Serialization.cs | 17 ++++++++++++++ .../Models/TarReadSettings.Serialization.cs | 17 ++++++++++++++ .../TeamDeskLinkedService.Serialization.cs | 17 ++++++++++++++ .../TeradataLinkedService.Serialization.cs | 17 ++++++++++++++ ...TeradataPartitionSettings.Serialization.cs | 17 ++++++++++++++ .../Models/TeradataSource.Serialization.cs | 17 ++++++++++++++ .../TeradataTableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/TextFormat.Serialization.cs | 17 ++++++++++++++ .../Models/TrackedResource.Serialization.cs | 17 ++++++++++++++ .../Models/Transformation.Serialization.cs | 17 ++++++++++++++ .../Generated/Models/Trigger.Serialization.cs | 17 ++++++++++++++ ...endencyProvisioningStatus.Serialization.cs | 17 ++++++++++++++ ...riggerDependencyReference.Serialization.cs | 17 ++++++++++++++ .../TriggerListResponse.Serialization.cs | 9 ++++++++ .../TriggerPipelineReference.Serialization.cs | 17 ++++++++++++++ .../Models/TriggerReference.Serialization.cs | 17 ++++++++++++++ .../Models/TriggerResource.Serialization.cs | 17 ++++++++++++++ .../Models/TriggerRun.Serialization.cs | 9 ++++++++ .../TriggerRunsQueryResponse.Serialization.cs | 9 ++++++++ ...bscriptionOperationStatus.Serialization.cs | 9 ++++++++ .../TumblingWindowTrigger.Serialization.cs | 17 ++++++++++++++ ...riggerDependencyReference.Serialization.cs | 17 ++++++++++++++ .../TwilioLinkedService.Serialization.cs | 17 ++++++++++++++ .../TypeConversionSettings.Serialization.cs | 17 ++++++++++++++ .../Models/UnknownActivity.Serialization.cs | 16 ++++++++++++++ ...wnCompressionReadSettings.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownCopySink.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownCopySource.Serialization.cs | 16 ++++++++++++++ .../UnknownCopyTranslator.Serialization.cs | 16 ++++++++++++++ .../UnknownCustomSetupBase.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownDataFlow.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownDataset.Serialization.cs | 16 ++++++++++++++ .../UnknownDatasetLocation.Serialization.cs | 16 ++++++++++++++ ...knownDatasetStorageFormat.Serialization.cs | 16 ++++++++++++++ ...nknownDependencyReference.Serialization.cs | 16 ++++++++++++++ .../UnknownExportSettings.Serialization.cs | 16 ++++++++++++++ ...UnknownFormatReadSettings.Serialization.cs | 16 ++++++++++++++ ...nknownFormatWriteSettings.Serialization.cs | 16 ++++++++++++++ .../UnknownImportSettings.Serialization.cs | 16 ++++++++++++++ ...UnknownIntegrationRuntime.Serialization.cs | 16 ++++++++++++++ ...kedIntegrationRuntimeType.Serialization.cs | 16 ++++++++++++++ .../UnknownLinkedService.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownSecretBase.Serialization.cs | 16 ++++++++++++++ .../UnknownStoreReadSettings.Serialization.cs | 16 ++++++++++++++ ...UnknownStoreWriteSettings.Serialization.cs | 16 ++++++++++++++ .../Models/UnknownTrigger.Serialization.cs | 16 ++++++++++++++ ...nkedServiceTypeProperties.Serialization.cs | 16 ++++++++++++++ .../Models/UntilActivity.Serialization.cs | 17 ++++++++++++++ ...dateLandingZoneCredential.Serialization.cs | 9 ++++++++ .../Models/UserProperty.Serialization.cs | 17 ++++++++++++++ .../ValidationActivity.Serialization.cs | 17 ++++++++++++++ .../VariableSpecification.Serialization.cs | 17 ++++++++++++++ .../VerticaLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/VerticaSource.Serialization.cs | 17 ++++++++++++++ .../VerticaTableDataset.Serialization.cs | 17 ++++++++++++++ .../VirtualNetworkProfile.Serialization.cs | 17 ++++++++++++++ .../Models/WaitActivity.Serialization.cs | 17 ++++++++++++++ .../Models/WebActivity.Serialization.cs | 17 ++++++++++++++ ...WebActivityAuthentication.Serialization.cs | 17 ++++++++++++++ ...ebAnonymousAuthentication.Serialization.cs | 17 ++++++++++++++ .../WebBasicAuthentication.Serialization.cs | 17 ++++++++++++++ ...CertificateAuthentication.Serialization.cs | 17 ++++++++++++++ .../Models/WebHookActivity.Serialization.cs | 17 ++++++++++++++ .../Models/WebLinkedService.Serialization.cs | 17 ++++++++++++++ ...nkedServiceTypeProperties.Serialization.cs | 17 ++++++++++++++ .../Models/WebSource.Serialization.cs | 17 ++++++++++++++ .../Models/WebTableDataset.Serialization.cs | 17 ++++++++++++++ .../Models/Workspace.Serialization.cs | 17 ++++++++++++++ .../Models/WorkspaceIdentity.Serialization.cs | 17 ++++++++++++++ .../WorkspaceKeyDetails.Serialization.cs | 17 ++++++++++++++ ...ceRepositoryConfiguration.Serialization.cs | 17 ++++++++++++++ ...WorkspaceUpdateParameters.Serialization.cs | 17 ++++++++++++++ .../Models/XeroLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/XeroObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/XeroSource.Serialization.cs | 17 ++++++++++++++ .../Models/XmlDataset.Serialization.cs | 17 ++++++++++++++ .../Models/XmlReadSettings.Serialization.cs | 17 ++++++++++++++ .../Models/XmlSource.Serialization.cs | 17 ++++++++++++++ .../ZendeskLinkedService.Serialization.cs | 17 ++++++++++++++ .../ZipDeflateReadSettings.Serialization.cs | 17 ++++++++++++++ .../Models/ZohoLinkedService.Serialization.cs | 17 ++++++++++++++ .../Models/ZohoObjectDataset.Serialization.cs | 17 ++++++++++++++ .../Models/ZohoSource.Serialization.cs | 17 ++++++++++++++ .../ManagedPrivateEndpoint.Serialization.cs | 16 ++++++++++++++ ...teEndpointConnectionState.Serialization.cs | 16 ++++++++++++++ ...ivateEndpointListResponse.Serialization.cs | 8 +++++++ ...PrivateEndpointProperties.Serialization.cs | 16 ++++++++++++++ .../Models/SparkJob.Serialization.cs | 8 +++++++ .../SparkJobListViewResponse.Serialization.cs | 8 +++++++ .../SqlQueryStringDataModel.Serialization.cs | 8 +++++++ .../Models/SparkBatchJob.Serialization.cs | 8 +++++++ .../SparkBatchJobCollection.Serialization.cs | 8 +++++++ .../SparkBatchJobOptions.Serialization.cs | 8 +++++++ .../SparkBatchJobState.Serialization.cs | 8 +++++++ .../Models/SparkRequest.Serialization.cs | 8 +++++++ .../Models/SparkScheduler.Serialization.cs | 8 +++++++ .../Models/SparkServiceError.Serialization.cs | 8 +++++++ .../SparkServicePlugin.Serialization.cs | 8 +++++++ .../Models/SparkSession.Serialization.cs | 8 +++++++ .../SparkSessionCollection.Serialization.cs | 8 +++++++ .../SparkSessionOptions.Serialization.cs | 8 +++++++ .../Models/SparkSessionState.Serialization.cs | 8 +++++++ .../Models/SparkStatement.Serialization.cs | 8 +++++++ ...atementCancellationResult.Serialization.cs | 8 +++++++ .../SparkStatementCollection.Serialization.cs | 8 +++++++ .../SparkStatementOptions.Serialization.cs | 8 +++++++ .../SparkStatementOutput.Serialization.cs | 8 +++++++ .../TableEntityQueryResponse.Serialization.cs | 8 +++++++ .../Models/TableItem.Serialization.cs | 8 +++++++ .../Models/TableProperties.Serialization.cs | 8 +++++++ .../TableQueryResponse.Serialization.cs | 8 +++++++ .../Models/TableResponse.Serialization.cs | 8 +++++++ .../Models/TableServiceError.Serialization.cs | 8 +++++++ .../Models/AnalysisInput.Serialization.cs | 8 +++++++ .../Models/AnalyzeBatchInput.Serialization.cs | 8 +++++++ .../AnalyzeJobDisplayName.Serialization.cs | 8 +++++++ ...yzeJobErrorsAndStatistics.Serialization.cs | 8 +++++++ .../AnalyzeJobMetadata.Serialization.cs | 8 +++++++ .../Models/AnalyzeJobState.Serialization.cs | 8 +++++++ .../Models/DetectedLanguage.Serialization.cs | 8 +++++++ .../Models/DocumentEntities.Serialization.cs | 8 +++++++ .../Models/DocumentError.Serialization.cs | 8 +++++++ ...ocumentHealthcareEntities.Serialization.cs | 8 +++++++ .../DocumentKeyPhrases.Serialization.cs | 8 +++++++ .../Models/DocumentLanguage.Serialization.cs | 8 +++++++ .../DocumentLinkedEntities.Serialization.cs | 8 +++++++ .../Models/DocumentSentiment.Serialization.cs | 8 +++++++ .../DocumentStatistics.Serialization.cs | 8 +++++++ .../Models/EntitiesResult.Serialization.cs | 8 +++++++ .../Models/EntitiesTask.Serialization.cs | 8 +++++++ .../EntitiesTaskParameters.Serialization.cs | 8 +++++++ .../EntitiesTaskResult.Serialization.cs | 8 +++++++ .../Generated/Models/Entity.Serialization.cs | 8 +++++++ .../EntityLinkingResult.Serialization.cs | 8 +++++++ .../Models/EntityLinkingTask.Serialization.cs | 8 +++++++ ...tityLinkingTaskParameters.Serialization.cs | 8 +++++++ .../EntityLinkingTaskResult.Serialization.cs | 8 +++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ .../HealthcareAssertion.Serialization.cs | 8 +++++++ .../Models/HealthcareEntity.Serialization.cs | 8 +++++++ .../HealthcareEntityLink.Serialization.cs | 8 +++++++ ...ealthcareEntityProperties.Serialization.cs | 8 +++++++ .../HealthcareJobState.Serialization.cs | 8 +++++++ ...althcareLinkingProperties.Serialization.cs | 8 +++++++ .../HealthcareRelation.Serialization.cs | 8 +++++++ .../HealthcareRelationEntity.Serialization.cs | 8 +++++++ .../Models/HealthcareResult.Serialization.cs | 8 +++++++ .../HealthcareTaskResult.Serialization.cs | 8 +++++++ .../Models/InnerError.Serialization.cs | 8 +++++++ .../Models/JobDescriptor.Serialization.cs | 8 +++++++ .../Models/JobManifest.Serialization.cs | 8 +++++++ .../Models/JobManifestTasks.Serialization.cs | 8 +++++++ .../Models/JobMetadata.Serialization.cs | 8 +++++++ .../Models/KeyPhraseResult.Serialization.cs | 8 +++++++ .../KeyPhraseTaskResult.Serialization.cs | 8 +++++++ .../Models/KeyPhrasesTask.Serialization.cs | 8 +++++++ .../KeyPhrasesTaskParameters.Serialization.cs | 8 +++++++ .../LanguageBatchInput.Serialization.cs | 8 +++++++ .../Models/LanguageInput.Serialization.cs | 8 +++++++ .../Models/LanguageResult.Serialization.cs | 8 +++++++ .../Models/LinkedEntity.Serialization.cs | 8 +++++++ .../Generated/Models/Match.Serialization.cs | 8 +++++++ .../MultiLanguageBatchInput.Serialization.cs | 8 +++++++ .../MultiLanguageInput.Serialization.cs | 8 +++++++ .../Models/Pagination.Serialization.cs | 8 +++++++ .../PiiDocumentEntities.Serialization.cs | 8 +++++++ .../Models/PiiResult.Serialization.cs | 8 +++++++ .../Generated/Models/PiiTask.Serialization.cs | 8 +++++++ .../Models/PiiTaskParameters.Serialization.cs | 8 +++++++ .../Models/PiiTaskResult.Serialization.cs | 8 +++++++ .../Models/RequestStatistics.Serialization.cs | 8 +++++++ .../SentenceAssessment.Serialization.cs | 8 +++++++ .../Models/SentenceSentiment.Serialization.cs | 8 +++++++ .../Models/SentenceTarget.Serialization.cs | 8 +++++++ .../SentimentAnalysisTask.Serialization.cs | 8 +++++++ ...entAnalysisTaskParameters.Serialization.cs | 8 +++++++ ...ntConfidenceScorePerLabel.Serialization.cs | 8 +++++++ .../Models/SentimentResponse.Serialization.cs | 8 +++++++ .../SentimentTaskResult.Serialization.cs | 8 +++++++ ...argetConfidenceScoreLabel.Serialization.cs | 8 +++++++ .../Models/TargetRelation.Serialization.cs | 8 +++++++ .../Models/TaskState.Serialization.cs | 8 +++++++ .../Models/TasksState.Serialization.cs | 8 +++++++ .../Models/TasksStateTasks.Serialization.cs | 8 +++++++ ...sksEntityLinkingTasksItem.Serialization.cs | 8 +++++++ ...tyRecognitionPiiTasksItem.Serialization.cs | 8 +++++++ ...ntityRecognitionTasksItem.Serialization.cs | 8 +++++++ ...PhraseExtractionTasksItem.Serialization.cs | 8 +++++++ ...entimentAnalysisTasksItem.Serialization.cs | 8 +++++++ .../TextAnalyticsError.Serialization.cs | 8 +++++++ .../TextAnalyticsWarning.Serialization.cs | 8 +++++++ ...iveSummarizationLROResult.Serialization.cs | 16 ++++++++++++++ ...ctiveSummarizationLROTask.Serialization.cs | 16 ++++++++++++++ ...activeSummarizationResult.Serialization.cs | 16 ++++++++++++++ ...veSummarizationResultBase.Serialization.cs | 16 ++++++++++++++ ...mmarizationTaskParameters.Serialization.cs | 16 ++++++++++++++ ...izationTaskParametersBase.Serialization.cs | 16 ++++++++++++++ ...tiveSummaryDocumentResult.Serialization.cs | 16 ++++++++++++++ ...bstractiveSummaryInternal.Serialization.cs | 16 ++++++++++++++ .../Models/AnalyzeTasks.Serialization.cs | 8 +++++++ ...yzeTextEntityLinkingInput.Serialization.cs | 8 +++++++ ...extEntityRecognitionInput.Serialization.cs | 8 +++++++ .../AnalyzeTextJobState.Serialization.cs | 8 +++++++ .../AnalyzeTextJobStatistics.Serialization.cs | 8 +++++++ .../AnalyzeTextJobsInput.Serialization.cs | 8 +++++++ ...tKeyPhraseExtractionInput.Serialization.cs | 8 +++++++ .../AnalyzeTextLROResult.Serialization.cs | 16 ++++++++++++++ .../AnalyzeTextLROTask.Serialization.cs | 16 ++++++++++++++ ...extLanguageDetectionInput.Serialization.cs | 8 +++++++ ...iEntitiesRecognitionInput.Serialization.cs | 8 +++++++ ...extSentimentAnalysisInput.Serialization.cs | 8 +++++++ .../Models/AnalyzeTextTask.Serialization.cs | 8 +++++++ .../AnalyzeTextTaskResult.Serialization.cs | 8 +++++++ ...ssificationDocumentResult.Serialization.cs | 16 ++++++++++++++ .../ClassificationResult.Serialization.cs | 16 ++++++++++++++ .../CustomEntitiesLROTask.Serialization.cs | 16 ++++++++++++++ .../CustomEntitiesResult.Serialization.cs | 16 ++++++++++++++ ...titiesResultDocumentsItem.Serialization.cs | 16 ++++++++++++++ ...tomEntitiesTaskParameters.Serialization.cs | 16 ++++++++++++++ ...ntityRecognitionLROResult.Serialization.cs | 16 ++++++++++++++ ...LabelClassificationResult.Serialization.cs | 16 ++++++++++++++ ...cationResultDocumentsItem.Serialization.cs | 16 ++++++++++++++ ...elClassificationLROResult.Serialization.cs | 16 ++++++++++++++ ...abelClassificationLROTask.Serialization.cs | 16 ++++++++++++++ ...ssificationTaskParameters.Serialization.cs | 16 ++++++++++++++ .../Models/CustomResult.Serialization.cs | 16 ++++++++++++++ ...elClassificationLROResult.Serialization.cs | 16 ++++++++++++++ ...abelClassificationLROTask.Serialization.cs | 16 ++++++++++++++ ...ssificationTaskParameters.Serialization.cs | 16 ++++++++++++++ .../CustomTaskParameters.Serialization.cs | 16 ++++++++++++++ .../DetectedLanguageInternal.Serialization.cs | 16 ++++++++++++++ .../Models/DocumentError.Serialization.cs | 16 ++++++++++++++ .../Models/DocumentResult.Serialization.cs | 16 ++++++++++++++ .../Models/DocumentWarning.Serialization.cs | 16 ++++++++++++++ .../EntitiesDocumentResult.Serialization.cs | 16 ++++++++++++++ .../Models/EntitiesLROTask.Serialization.cs | 16 ++++++++++++++ .../Models/EntitiesResult.Serialization.cs | 16 ++++++++++++++ ...titiesResultDocumentsItem.Serialization.cs | 16 ++++++++++++++ .../EntitiesTaskParameters.Serialization.cs | 16 ++++++++++++++ .../EntitiesTaskResult.Serialization.cs | 8 +++++++ .../Generated/Models/Entity.Serialization.cs | 16 ++++++++++++++ .../Models/EntityDataSource.Serialization.cs | 16 ++++++++++++++ .../EntityLinkingLROResult.Serialization.cs | 16 ++++++++++++++ .../EntityLinkingLROTask.Serialization.cs | 16 ++++++++++++++ .../EntityLinkingResult.Serialization.cs | 16 ++++++++++++++ ...inkingResultDocumentsItem.Serialization.cs | 16 ++++++++++++++ ...tityLinkingTaskParameters.Serialization.cs | 16 ++++++++++++++ .../EntityLinkingTaskResult.Serialization.cs | 8 +++++++ ...ntityRecognitionLROResult.Serialization.cs | 16 ++++++++++++++ .../Generated/Models/Error.Serialization.cs | 16 ++++++++++++++ .../Models/ErrorResponse.Serialization.cs | 8 +++++++ ...ctedSummaryDocumentResult.Serialization.cs | 16 ++++++++++++++ .../ExtractedSummarySentence.Serialization.cs | 16 ++++++++++++++ ...iveSummarizationLROResult.Serialization.cs | 16 ++++++++++++++ ...ctiveSummarizationLROTask.Serialization.cs | 16 ++++++++++++++ ...activeSummarizationResult.Serialization.cs | 16 ++++++++++++++ ...mmarizationTaskParameters.Serialization.cs | 16 ++++++++++++++ ...areEntitiesDocumentResult.Serialization.cs | 16 ++++++++++++++ ...HealthcareEntityAssertion.Serialization.cs | 16 ++++++++++++++ .../HealthcareEntityInternal.Serialization.cs | 16 ++++++++++++++ .../HealthcareLROResult.Serialization.cs | 16 ++++++++++++++ .../Models/HealthcareLROTask.Serialization.cs | 16 ++++++++++++++ .../HealthcareRelationEntity.Serialization.cs | 16 ++++++++++++++ ...ealthcareRelationInternal.Serialization.cs | 16 ++++++++++++++ .../Models/HealthcareResult.Serialization.cs | 16 ++++++++++++++ ...thcareResultDocumentsItem.Serialization.cs | 16 ++++++++++++++ .../HealthcareTaskParameters.Serialization.cs | 16 ++++++++++++++ .../Models/InnerErrorModel.Serialization.cs | 16 ++++++++++++++ .../Models/JobState.Serialization.cs | 8 +++++++ ...PhraseExtractionLROResult.Serialization.cs | 16 ++++++++++++++ .../Models/KeyPhraseLROTask.Serialization.cs | 16 ++++++++++++++ .../Models/KeyPhraseResult.Serialization.cs | 16 ++++++++++++++ ...PhraseResultDocumentsItem.Serialization.cs | 16 ++++++++++++++ .../KeyPhraseTaskParameters.Serialization.cs | 16 ++++++++++++++ .../KeyPhraseTaskResult.Serialization.cs | 8 +++++++ .../KeyPhrasesDocumentResult.Serialization.cs | 16 ++++++++++++++ ...ageDetectionAnalysisInput.Serialization.cs | 8 +++++++ ...geDetectionDocumentResult.Serialization.cs | 16 ++++++++++++++ .../LanguageDetectionResult.Serialization.cs | 16 ++++++++++++++ ...geDetectionTaskParameters.Serialization.cs | 16 ++++++++++++++ ...nguageDetectionTaskResult.Serialization.cs | 8 +++++++ .../Models/LanguageInput.Serialization.cs | 8 +++++++ ...kedEntitiesDocumentResult.Serialization.cs | 16 ++++++++++++++ .../Models/LinkedEntity.Serialization.cs | 16 ++++++++++++++ .../Models/LinkedEntityMatch.Serialization.cs | 16 ++++++++++++++ ...ultiLanguageAnalysisInput.Serialization.cs | 8 +++++++ .../MultiLanguageInput.Serialization.cs | 8 +++++++ ...PiiEntitiesDocumentResult.Serialization.cs | 16 ++++++++++++++ .../Models/PiiEntitiesResult.Serialization.cs | 16 ++++++++++++++ ...ntityRecognitionLROResult.Serialization.cs | 16 ++++++++++++++ .../Models/PiiLROTask.Serialization.cs | 16 ++++++++++++++ .../PiiResultDocumentsItem.Serialization.cs | 16 ++++++++++++++ .../Models/PiiTaskParameters.Serialization.cs | 16 ++++++++++++++ .../Models/PiiTaskResult.Serialization.cs | 8 +++++++ .../Models/PreBuiltResult.Serialization.cs | 16 ++++++++++++++ .../PreBuiltTaskParameters.Serialization.cs | 16 ++++++++++++++ .../SentenceAssessment.Serialization.cs | 16 ++++++++++++++ ...SentenceSentimentInternal.Serialization.cs | 16 ++++++++++++++ .../Models/SentenceTarget.Serialization.cs | 16 ++++++++++++++ .../SentimentAnalysisLROTask.Serialization.cs | 16 ++++++++++++++ ...entAnalysisTaskParameters.Serialization.cs | 16 ++++++++++++++ ...SentimentConfidenceScores.Serialization.cs | 16 ++++++++++++++ .../SentimentDocumentResult.Serialization.cs | 16 ++++++++++++++ .../SentimentLROResult.Serialization.cs | 16 ++++++++++++++ .../Models/SentimentResponse.Serialization.cs | 16 ++++++++++++++ ...mentResponseDocumentsItem.Serialization.cs | 16 ++++++++++++++ .../SentimentTaskResult.Serialization.cs | 8 +++++++ .../SummaryContextInternal.Serialization.cs | 16 ++++++++++++++ ...argetConfidenceScoreLabel.Serialization.cs | 16 ++++++++++++++ .../Models/TargetRelation.Serialization.cs | 16 ++++++++++++++ .../Models/TaskIdentifier.Serialization.cs | 16 ++++++++++++++ .../Models/TaskParameters.Serialization.cs | 16 ++++++++++++++ .../Models/TaskState.Serialization.cs | 16 ++++++++++++++ .../Models/TasksState.Serialization.cs | 8 +++++++ ...xtDocumentBatchStatistics.Serialization.cs | 16 ++++++++++++++ .../TextDocumentStatistics.Serialization.cs | 16 ++++++++++++++ ...knownAnalyzeTextLROResult.Serialization.cs | 16 ++++++++++++++ ...UnknownAnalyzeTextLROTask.Serialization.cs | 16 ++++++++++++++ ...nownAnalyzeTextTaskResult.Serialization.cs | 8 +++++++ .../Models/AggregateSeries.Serialization.cs | 7 ++++++ .../Models/AggregateVariable.Serialization.cs | 16 ++++++++++++++ .../Models/Availability.Serialization.cs | 8 +++++++ .../AvailabilityResponse.Serialization.cs | 8 +++++++ .../CategoricalVariable.Serialization.cs | 16 ++++++++++++++ .../Models/DateTimeRange.Serialization.cs | 16 ++++++++++++++ .../Models/EventSchema.Serialization.cs | 8 +++++++ .../GetEventSchemaRequest.Serialization.cs | 8 +++++++ .../Models/GetEvents.Serialization.cs | 7 ++++++ .../GetHierarchiesPage.Serialization.cs | 8 +++++++ .../Models/GetInstancesPage.Serialization.cs | 8 +++++++ .../Models/GetSeries.Serialization.cs | 7 ++++++ .../Models/GetTypesPage.Serialization.cs | 8 +++++++ .../HierarchiesBatchRequest.Serialization.cs | 8 +++++++ .../HierarchiesBatchResponse.Serialization.cs | 9 ++++++++ ...ierarchiesExpandParameter.Serialization.cs | 8 +++++++ ...hiesRequestBatchGetDelete.Serialization.cs | 8 +++++++ .../HierarchiesSortParameter.Serialization.cs | 8 +++++++ .../Models/HierarchyHit.Serialization.cs | 8 +++++++ .../Models/InstanceHit.Serialization.cs | 8 +++++++ .../InstanceHitHighlights.Serialization.cs | 8 +++++++ .../InstancesBatchRequest.Serialization.cs | 8 +++++++ .../InstancesBatchResponse.Serialization.cs | 9 ++++++++ .../InstancesOperationResult.Serialization.cs | 8 +++++++ ...esRequestBatchGetOrDelete.Serialization.cs | 7 ++++++ ...cesSearchStringSuggestion.Serialization.cs | 8 +++++++ .../InstancesSortParameter.Serialization.cs | 8 +++++++ .../InstancesSuggestRequest.Serialization.cs | 8 +++++++ .../InstancesSuggestResponse.Serialization.cs | 8 +++++++ .../InterpolationBoundary.Serialization.cs | 16 ++++++++++++++ .../ModelSettingsResponse.Serialization.cs | 8 +++++++ .../Models/NumericVariable.Serialization.cs | 16 ++++++++++++++ .../Models/PagedResponse.Serialization.cs | 8 +++++++ .../Models/PropertyValues.Serialization.cs | 16 ++++++++++++++ .../Models/QueryRequest.Serialization.cs | 8 +++++++ .../Models/QueryResultPage.Serialization.cs | 8 +++++++ ...rchHierarchyNodesResponse.Serialization.cs | 8 +++++++ ...ncesHierarchiesParameters.Serialization.cs | 8 +++++++ ...SearchInstancesParameters.Serialization.cs | 8 +++++++ .../SearchInstancesRequest.Serialization.cs | 8 +++++++ .../SearchInstancesResponse.Serialization.cs | 8 +++++++ ...archInstancesResponsePage.Serialization.cs | 8 +++++++ ...meSeriesAggregateCategory.Serialization.cs | 16 ++++++++++++++ ...TimeSeriesDefaultCategory.Serialization.cs | 16 ++++++++++++++ .../TimeSeriesExpression.Serialization.cs | 16 ++++++++++++++ .../TimeSeriesHierarchy.Serialization.cs | 16 ++++++++++++++ ...sHierarchyOperationResult.Serialization.cs | 8 +++++++ ...TimeSeriesHierarchySource.Serialization.cs | 16 ++++++++++++++ .../TimeSeriesIdProperty.Serialization.cs | 8 +++++++ ...riesInsightsEventProperty.Serialization.cs | 16 ++++++++++++++ .../TimeSeriesInstance.Serialization.cs | 15 +++++++++++++ .../TimeSeriesInterpolation.Serialization.cs | 16 ++++++++++++++ .../TimeSeriesModelSettings.Serialization.cs | 8 +++++++ .../TimeSeriesOperationError.Serialization.cs | 8 +++++++ ...riesOperationErrorDetails.Serialization.cs | 8 +++++++ .../Models/TimeSeriesType.Serialization.cs | 16 ++++++++++++++ ...SeriesTypeOperationResult.Serialization.cs | 8 +++++++ .../TimeSeriesVariable.Serialization.cs | 16 ++++++++++++++ .../Models/TsiError.Serialization.cs | 8 +++++++ .../Models/TypesBatchRequest.Serialization.cs | 8 +++++++ .../TypesBatchResponse.Serialization.cs | 9 ++++++++ ...esRequestBatchGetOrDelete.Serialization.cs | 8 +++++++ .../Models/UnknownVariable.Serialization.cs | 16 ++++++++++++++ ...pdateModelSettingsRequest.Serialization.cs | 8 +++++++ .../Models/DocumentFilter.Serialization.cs | 8 +++++++ .../DocumentStatusResult.Serialization.cs | 8 +++++++ ...mentTranslationFileFormat.Serialization.cs | 8 +++++++ .../DocumentTranslationInput.Serialization.cs | 8 +++++++ .../Models/DocumentsStatus.Serialization.cs | 8 +++++++ .../InnerTranslationError.Serialization.cs | 8 +++++++ .../StartTranslationDetails.Serialization.cs | 8 +++++++ .../Models/StatusSummary.Serialization.cs | 8 +++++++ .../SupportedFileFormats.Serialization.cs | 8 +++++++ .../SupportedStorageSources.Serialization.cs | 8 +++++++ .../Models/TranslationError.Serialization.cs | 8 +++++++ .../TranslationErrorResponse.Serialization.cs | 8 +++++++ .../TranslationGlossary.Serialization.cs | 8 +++++++ .../Models/TranslationSource.Serialization.cs | 8 +++++++ .../TranslationStatusResult.Serialization.cs | 8 +++++++ .../Models/TranslationTarget.Serialization.cs | 8 +++++++ .../TranslationsStatus.Serialization.cs | 8 +++++++ .../Models/CertificateSource.Serialization.cs | 16 ++++++++++++++ ...veServicesVisionProcessor.Serialization.cs | 16 ++++++++++++++ .../Models/CredentialsBase.Serialization.cs | 16 ++++++++++++++ .../DiscoveredOnvifDevice.Serialization.cs | 16 ++++++++++++++ ...eredOnvifDeviceCollection.Serialization.cs | 16 ++++++++++++++ .../Models/EndpointBase.Serialization.cs | 16 ++++++++++++++ .../ExtensionProcessorBase.Serialization.cs | 16 ++++++++++++++ .../Models/FileSink.Serialization.cs | 16 ++++++++++++++ .../Models/GrpcExtension.Serialization.cs | 16 ++++++++++++++ ...GrpcExtensionDataTransfer.Serialization.cs | 16 ++++++++++++++ .../Models/H264Configuration.Serialization.cs | 16 ++++++++++++++ .../Models/HttpExtension.Serialization.cs | 16 ++++++++++++++ .../HttpHeaderCredentials.Serialization.cs | 16 ++++++++++++++ .../Models/ImageFormatBmp.Serialization.cs | 16 ++++++++++++++ .../Models/ImageFormatJpeg.Serialization.cs | 16 ++++++++++++++ .../Models/ImageFormatPng.Serialization.cs | 16 ++++++++++++++ .../ImageFormatProperties.Serialization.cs | 16 ++++++++++++++ .../Models/ImageFormatRaw.Serialization.cs | 16 ++++++++++++++ .../Models/ImageProperties.Serialization.cs | 16 ++++++++++++++ .../Models/ImageScale.Serialization.cs | 16 ++++++++++++++ .../IotHubDeviceConnection.Serialization.cs | 16 ++++++++++++++ .../Models/IotHubMessageSink.Serialization.cs | 16 ++++++++++++++ .../IotHubMessageSource.Serialization.cs | 16 ++++++++++++++ .../LineCrossingProcessor.Serialization.cs | 16 ++++++++++++++ .../Models/LivePipeline.Serialization.cs | 16 ++++++++++++++ ...vePipelineActivateRequest.Serialization.cs | 16 ++++++++++++++ .../LivePipelineCollection.Serialization.cs | 16 ++++++++++++++ ...PipelineDeactivateRequest.Serialization.cs | 16 ++++++++++++++ ...LivePipelineDeleteRequest.Serialization.cs | 16 ++++++++++++++ .../LivePipelineGetRequest.Serialization.cs | 16 ++++++++++++++ .../LivePipelineListRequest.Serialization.cs | 16 ++++++++++++++ .../LivePipelineProperties.Serialization.cs | 16 ++++++++++++++ .../LivePipelineSetRequest.Serialization.cs | 16 ++++++++++++++ ...ivePipelineSetRequestBody.Serialization.cs | 16 ++++++++++++++ .../Models/MediaProfile.Serialization.cs | 16 ++++++++++++++ .../Models/MediaUri.Serialization.cs | 16 ++++++++++++++ .../Models/MethodRequest.Serialization.cs | 16 ++++++++++++++ ...ethodRequestEmptyBodyBase.Serialization.cs | 16 ++++++++++++++ .../MotionDetectionProcessor.Serialization.cs | 16 ++++++++++++++ .../Mpeg4Configuration.Serialization.cs | 16 ++++++++++++++ .../Models/NamedLineBase.Serialization.cs | 16 ++++++++++++++ .../Models/NamedLineString.Serialization.cs | 16 ++++++++++++++ .../Models/NamedPolygonBase.Serialization.cs | 16 ++++++++++++++ .../NamedPolygonString.Serialization.cs | 16 ++++++++++++++ .../Models/NodeInput.Serialization.cs | 16 ++++++++++++++ .../ObjectTrackingProcessor.Serialization.cs | 16 ++++++++++++++ .../Models/OnvifDevice.Serialization.cs | 16 ++++++++++++++ ...nvifDeviceDiscoverRequest.Serialization.cs | 16 ++++++++++++++ .../OnvifDeviceGetRequest.Serialization.cs | 16 ++++++++++++++ .../Models/OnvifDns.Serialization.cs | 16 ++++++++++++++ .../Models/OnvifHostName.Serialization.cs | 16 ++++++++++++++ .../OnvifSystemDateTime.Serialization.cs | 16 ++++++++++++++ .../Models/OutputSelector.Serialization.cs | 16 ++++++++++++++ .../ParameterDeclaration.Serialization.cs | 16 ++++++++++++++ .../ParameterDefinition.Serialization.cs | 16 ++++++++++++++ .../PemCertificateList.Serialization.cs | 16 ++++++++++++++ .../Models/PipelineTopology.Serialization.cs | 16 ++++++++++++++ ...ipelineTopologyCollection.Serialization.cs | 16 ++++++++++++++ ...lineTopologyDeleteRequest.Serialization.cs | 16 ++++++++++++++ ...ipelineTopologyGetRequest.Serialization.cs | 16 ++++++++++++++ ...pelineTopologyListRequest.Serialization.cs | 16 ++++++++++++++ ...ipelineTopologyProperties.Serialization.cs | 16 ++++++++++++++ ...ipelineTopologySetRequest.Serialization.cs | 16 ++++++++++++++ ...ineTopologySetRequestBody.Serialization.cs | 16 ++++++++++++++ .../Models/ProcessorNodeBase.Serialization.cs | 16 ++++++++++++++ .../Models/RateControl.Serialization.cs | 16 ++++++++++++++ .../RemoteDeviceAdapter.Serialization.cs | 16 ++++++++++++++ ...teDeviceAdapterCollection.Serialization.cs | 16 ++++++++++++++ ...eviceAdapterDeleteRequest.Serialization.cs | 16 ++++++++++++++ ...teDeviceAdapterGetRequest.Serialization.cs | 16 ++++++++++++++ ...eDeviceAdapterListRequest.Serialization.cs | 16 ++++++++++++++ ...teDeviceAdapterProperties.Serialization.cs | 16 ++++++++++++++ ...teDeviceAdapterSetRequest.Serialization.cs | 16 ++++++++++++++ ...viceAdapterSetRequestBody.Serialization.cs | 16 ++++++++++++++ ...RemoteDeviceAdapterTarget.Serialization.cs | 16 ++++++++++++++ .../Models/RtspSource.Serialization.cs | 16 ++++++++++++++ .../Models/SamplingOptions.Serialization.cs | 16 ++++++++++++++ .../SignalGateProcessor.Serialization.cs | 16 ++++++++++++++ .../Models/SinkNodeBase.Serialization.cs | 16 ++++++++++++++ .../Models/SourceNodeBase.Serialization.cs | 16 ++++++++++++++ ...alAnalysisCustomOperation.Serialization.cs | 16 ++++++++++++++ ...tialAnalysisOperationBase.Serialization.cs | 16 ++++++++++++++ ...nalysisOperationEventBase.Serialization.cs | 16 ++++++++++++++ ...lAnalysisPersonCountEvent.Serialization.cs | 16 ++++++++++++++ ...lysisPersonCountOperation.Serialization.cs | 16 ++++++++++++++ ...ysisPersonCountZoneEvents.Serialization.cs | 16 ++++++++++++++ ...alysisPersonDistanceEvent.Serialization.cs | 16 ++++++++++++++ ...isPersonDistanceOperation.Serialization.cs | 16 ++++++++++++++ ...sPersonDistanceZoneEvents.Serialization.cs | 16 ++++++++++++++ ...isPersonLineCrossingEvent.Serialization.cs | 16 ++++++++++++++ ...sonLineCrossingLineEvents.Serialization.cs | 16 ++++++++++++++ ...rsonLineCrossingOperation.Serialization.cs | 16 ++++++++++++++ ...isPersonZoneCrossingEvent.Serialization.cs | 16 ++++++++++++++ ...rsonZoneCrossingOperation.Serialization.cs | 16 ++++++++++++++ ...sonZoneCrossingZoneEvents.Serialization.cs | 16 ++++++++++++++ ...nalysisTypedOperationBase.Serialization.cs | 16 ++++++++++++++ .../SymmetricKeyCredentials.Serialization.cs | 16 ++++++++++++++ .../Models/SystemData.Serialization.cs | 16 ++++++++++++++ .../Models/TlsEndpoint.Serialization.cs | 16 ++++++++++++++ .../TlsValidationOptions.Serialization.cs | 16 ++++++++++++++ .../UnknownCertificateSource.Serialization.cs | 16 ++++++++++++++ .../UnknownCredentialsBase.Serialization.cs | 16 ++++++++++++++ .../UnknownEndpointBase.Serialization.cs | 16 ++++++++++++++ ...nownImageFormatProperties.Serialization.cs | 16 ++++++++++++++ .../UnknownMethodRequest.Serialization.cs | 16 ++++++++++++++ .../UnknownNamedLineBase.Serialization.cs | 16 ++++++++++++++ .../UnknownNamedPolygonBase.Serialization.cs | 16 ++++++++++++++ .../UnknownProcessorNodeBase.Serialization.cs | 16 ++++++++++++++ .../UnknownSinkNodeBase.Serialization.cs | 16 ++++++++++++++ .../UnknownSourceNodeBase.Serialization.cs | 16 ++++++++++++++ ...tialAnalysisOperationBase.Serialization.cs | 16 ++++++++++++++ .../Models/UnsecuredEndpoint.Serialization.cs | 16 ++++++++++++++ ...ernamePasswordCredentials.Serialization.cs | 16 ++++++++++++++ .../VideoCreationProperties.Serialization.cs | 16 ++++++++++++++ ...VideoEncoderConfiguration.Serialization.cs | 16 ++++++++++++++ .../VideoPublishingOptions.Serialization.cs | 16 ++++++++++++++ .../Models/VideoResolution.Serialization.cs | 16 ++++++++++++++ .../Models/VideoSink.Serialization.cs | 16 ++++++++++++++ 2679 files changed, 32664 insertions(+), 32 deletions(-) delete mode 100644 sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/RelationshipCollection.Serialization.cs diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 8e19478e02383..6dfbd826ed874 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -223,7 +223,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index 87c800fcd3c21..41cf1603be5f7 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240402.3" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240404.1" }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.40.0", @@ -18,9 +18,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20240402.3", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240402.3.tgz", - "integrity": "sha512-a78zBpNcqhwUi5gyAzVTlu9XpGyvP7hG7jzidfTT1cRfCzlZ5UbWiT0DjRRsoDWf1x2uk8/sZSRK+gBIJIf0qw==" + "version": "3.0.0-beta.20240404.1", + "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240404.1.tgz", + "integrity": "sha512-tvkjua5FOx9wgZZWfr+GlkQ+D9jxtho237IvzeG3/lyc4XNNWTQU6kNHvybAkitFyC9DbKBWa5h4cx5CW+EKqA==" }, "node_modules/@azure-tools/typespec-azure-core": { "version": "0.40.0", @@ -56,11 +56,11 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20240402.3", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240402.3.tgz", - "integrity": "sha512-WQHml0h5JPZvVuLocxZgxjofcKNi17pv/JbaEIKLwb5pUxea/j8HmgtqpjOHaez7qnzlAiB80o9Eq26ns/YBNA==", + "version": "0.2.0-beta.20240404.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240404.1.tgz", + "integrity": "sha512-bxOvSm4LJwPItr8IHRydJ+MmTN8sIWOCYpIHYM36nCkUl0cMpff2EIZ0UGLPK8Ytypll2R2xKUT7mvsXf3Hkyw==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20240402.3", + "@autorest/csharp": "3.0.0-beta.20240404.1", "json-serialize-refs": "0.1.0-0", "winston": "^3.8.2" }, @@ -328,9 +328,9 @@ } }, "node_modules/change-case": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.3.tgz", - "integrity": "sha512-4cdyvorTy/lViZlVzw2O8/hHCLUuHqp4KpSSP3DlauhFCf3LdnfF+p5s0EAhjKsU7bqrMzu7iQArYfoPiHO2nw==", + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", "dev": true }, "node_modules/cliui": { diff --git a/eng/emitter-package.json b/eng/emitter-package.json index c174e3f968e98..495b021120ae7 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,15 +1,15 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240402.3" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240404.1" }, "devDependencies": { - "@azure-tools/typespec-client-generator-core": "0.40.0", + "@typespec/rest": "0.54.0", + "@azure-tools/typespec-azure-core": "0.40.0", "@typespec/versioning": "0.54.0", - "@typespec/compiler": "0.54.0", "@typespec/openapi": "0.54.0", - "@azure-tools/typespec-azure-core": "0.40.0", - "@typespec/http": "0.54.0", - "@typespec/rest": "0.54.0" + "@azure-tools/typespec-client-generator-core": "0.40.0", + "@typespec/compiler": "0.54.0", + "@typespec/http": "0.54.0" } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestOpenEnclaveRequest.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestOpenEnclaveRequest.Serialization.cs index 1dcb16f50e309..1493780fed017 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestOpenEnclaveRequest.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestOpenEnclaveRequest.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestSgxEnclaveRequest.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestSgxEnclaveRequest.Serialization.cs index 6ffed2907e24a..66e45202ee279 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestSgxEnclaveRequest.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestSgxEnclaveRequest.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestationResponse.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestationResponse.Serialization.cs index 99f4b149b7cd2..ec9fc1d7d24b8 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestationResponse.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestationResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static AttestationResponse DeserializeAttestationResponse(JsonElement e } return new AttestationResponse(token); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AttestationResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAttestationResponse(document.RootElement); + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestationResult.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestationResult.Serialization.cs index 4010da62af844..a966a6d1708a9 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestationResult.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/AttestationResult.Serialization.cs @@ -332,12 +332,21 @@ internal static AttestationResult DeserializeAttestationResult(JsonElement eleme rpData); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AttestationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAttestationResult(document.RootElement); + } + internal partial class AttestationResultConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AttestationResult model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AttestationResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/CloudError.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/CloudError.Serialization.cs index 1715075676f90..c4047a8e8557d 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/CloudError.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/CloudError.Serialization.cs @@ -32,5 +32,13 @@ internal static CloudError DeserializeCloudError(JsonElement element) } return new CloudError(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CloudError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCloudError(document.RootElement); + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/CloudErrorBody.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/CloudErrorBody.Serialization.cs index ed43603beaee5..cad00c0c13d51 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/CloudErrorBody.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/CloudErrorBody.Serialization.cs @@ -34,5 +34,13 @@ internal static CloudErrorBody DeserializeCloudErrorBody(JsonElement element) } return new CloudErrorBody(code, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CloudErrorBody FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCloudErrorBody(document.RootElement); + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/InitTimeData.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/InitTimeData.Serialization.cs index 1c146bd7dfab9..177bee3e7ad2e 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/InitTimeData.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/InitTimeData.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKey.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKey.Serialization.cs index b3424a9446bf6..24021346fdd1e 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKey.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKey.Serialization.cs @@ -245,5 +245,21 @@ internal static JsonWebKey DeserializeJsonWebKey(JsonElement element) x5c ?? new ChangeTrackingList(), y); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JsonWebKey FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJsonWebKey(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.Serialization.cs index c170420c14cbb..4b4b6df70b4cf 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/JsonWebKeySet.Serialization.cs @@ -38,5 +38,13 @@ internal static JsonWebKeySet DeserializeJsonWebKeySet(JsonElement element) } return new JsonWebKeySet(keys ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JsonWebKeySet FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJsonWebKeySet(document.RootElement); + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificateModification.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificateModification.Serialization.cs index d190daa203621..8b0ab10d4bb5c 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificateModification.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificateModification.Serialization.cs @@ -48,12 +48,29 @@ internal static PolicyCertificateModification DeserializePolicyCertificateModifi return new PolicyCertificateModification(policyCertificate); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyCertificateModification FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyCertificateModification(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PolicyCertificateModificationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PolicyCertificateModification model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PolicyCertificateModification Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesModificationResult.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesModificationResult.Serialization.cs index c2cfcbed93a98..04ec74aff3f49 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesModificationResult.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesModificationResult.Serialization.cs @@ -59,12 +59,29 @@ internal static PolicyCertificatesModificationResult DeserializePolicyCertificat return new PolicyCertificatesModificationResult(xMsCertificateThumbprint, xMsPolicycertificatesResult); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyCertificatesModificationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyCertificatesModificationResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PolicyCertificatesModificationResultConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PolicyCertificatesModificationResult model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PolicyCertificatesModificationResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesModifyResponse.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesModifyResponse.Serialization.cs index dc2ff19434133..4610ab06245cd 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesModifyResponse.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesModifyResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static PolicyCertificatesModifyResponse DeserializePolicyCertificatesMo } return new PolicyCertificatesModifyResponse(token); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyCertificatesModifyResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyCertificatesModifyResponse(document.RootElement); + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesResponse.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesResponse.Serialization.cs index 0c06d4de34924..846ad588ea203 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesResponse.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static PolicyCertificatesResponse DeserializePolicyCertificatesResponse } return new PolicyCertificatesResponse(token); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyCertificatesResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyCertificatesResponse(document.RootElement); + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesResult.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesResult.Serialization.cs index c4810194eea9d..f441691ab6185 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesResult.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyCertificatesResult.Serialization.cs @@ -36,12 +36,21 @@ internal static PolicyCertificatesResult DeserializePolicyCertificatesResult(Jso return new PolicyCertificatesResult(xMsPolicyCertificates); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyCertificatesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyCertificatesResult(document.RootElement); + } + internal partial class PolicyCertificatesResultConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PolicyCertificatesResult model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override PolicyCertificatesResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyModificationResult.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyModificationResult.Serialization.cs index b185f3bd440a2..387c0757d47ae 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyModificationResult.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyModificationResult.Serialization.cs @@ -58,12 +58,21 @@ internal static PolicyModificationResult DeserializePolicyModificationResult(Jso return new PolicyModificationResult(xMsPolicyResult, xMsPolicyTokenHash, xMsPolicySigner, xMsPolicy); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyModificationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyModificationResult(document.RootElement); + } + internal partial class PolicyModificationResultConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PolicyModificationResult model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override PolicyModificationResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyResponse.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyResponse.Serialization.cs index e42945ea67b7f..cdf075ccb9555 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyResponse.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/PolicyResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static PolicyResponse DeserializePolicyResponse(JsonElement element) } return new PolicyResponse(token); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyResponse(document.RootElement); + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/RuntimeData.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/RuntimeData.Serialization.cs index d2fdfaa0bbfd3..02d56ffe1f25c 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/RuntimeData.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/RuntimeData.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/TpmAttestationRequest.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/TpmAttestationRequest.Serialization.cs index 9d83ad95ebbaa..6338c00ab774f 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/TpmAttestationRequest.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/TpmAttestationRequest.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/TpmAttestationResponse.Serialization.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/TpmAttestationResponse.Serialization.cs index c4e3b33d40cb4..0ce799807c33d 100644 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/TpmAttestationResponse.Serialization.cs +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/Models/TpmAttestationResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static TpmAttestationResponse DeserializeTpmAttestationResponse(JsonEle } return new TpmAttestationResponse(data); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TpmAttestationResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTpmAttestationResponse(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswerSpan.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswerSpan.Serialization.cs index d8edfd5b57705..ac6466f806be9 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswerSpan.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswerSpan.Serialization.cs @@ -58,5 +58,13 @@ internal static AnswerSpan DeserializeAnswerSpan(JsonElement element) } return new AnswerSpan(text, confidenceScore, offset, length); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnswerSpan FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnswerSpan(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextOptions.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextOptions.Serialization.cs index 54944ba312663..4343213e0d94b 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextOptions.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextOptions.Serialization.cs @@ -36,5 +36,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.Serialization.cs index 1e9a2ce734b7e..2828fa2fa870e 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersFromTextResult.Serialization.cs @@ -38,5 +38,13 @@ internal static AnswersFromTextResult DeserializeAnswersFromTextResult(JsonEleme } return new AnswersFromTextResult(answers ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnswersFromTextResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnswersFromTextResult(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersOptions.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersOptions.Serialization.cs index c8f415aba1c26..09fc04438810a 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersOptions.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersOptions.Serialization.cs @@ -67,5 +67,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.Serialization.cs index 9bd2689880623..f1a06067669ba 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/AnswersResult.Serialization.cs @@ -38,5 +38,13 @@ internal static AnswersResult DeserializeAnswersResult(JsonElement element) } return new AnswersResult(answers ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnswersResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnswersResult(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.Serialization.cs index ec08d02fedba2..70147779303e3 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/Error.Serialization.cs @@ -66,5 +66,13 @@ internal static Error DeserializeError(JsonElement element) } return new Error(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Error FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeError(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/ErrorResponse.Serialization.cs index 37c46487959f6..8298e99acaf57 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/ErrorResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/InnerErrorModel.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/InnerErrorModel.Serialization.cs index 01a9d5224eaa5..cbc580edf803c 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/InnerErrorModel.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/InnerErrorModel.Serialization.cs @@ -66,5 +66,13 @@ internal static InnerErrorModel DeserializeInnerErrorModel(JsonElement element) } return new InnerErrorModel(code, message, details ?? new ChangeTrackingDictionary(), target, innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InnerErrorModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInnerErrorModel(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswer.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswer.Serialization.cs index 6281e01747d6d..2c7d73e6038b9 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswer.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswer.Serialization.cs @@ -113,5 +113,13 @@ internal static KnowledgeBaseAnswer DeserializeKnowledgeBaseAnswer(JsonElement e dialog, answerSpan); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeBaseAnswer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeBaseAnswer(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerContext.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerContext.Serialization.cs index b1a75130e0a7e..854379e4c20b9 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerContext.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerContext.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.Serialization.cs index 0ac0a02fe04d6..242ab71e4a97b 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerDialog.Serialization.cs @@ -48,5 +48,13 @@ internal static KnowledgeBaseAnswerDialog DeserializeKnowledgeBaseAnswerDialog(J } return new KnowledgeBaseAnswerDialog(isContextOnly, prompts ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeBaseAnswerDialog FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeBaseAnswerDialog(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerPrompt.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerPrompt.Serialization.cs index f1ded9a715ddd..9978e01576ecc 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerPrompt.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/KnowledgeBaseAnswerPrompt.Serialization.cs @@ -48,5 +48,13 @@ internal static KnowledgeBaseAnswerPrompt DeserializeKnowledgeBaseAnswerPrompt(J } return new KnowledgeBaseAnswerPrompt(displayOrder, qnaId, displayText); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeBaseAnswerPrompt FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeBaseAnswerPrompt(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataFilter.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataFilter.Serialization.cs index 3bebfbd9d1293..a800b94b0c43d 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataFilter.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataFilter.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataRecord.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataRecord.Serialization.cs index 766a32113876e..4df2fe32b9503 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataRecord.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/MetadataRecord.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Value); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/QueryFilters.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/QueryFilters.Serialization.cs index 674775b437543..da5cf54d1b562 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/QueryFilters.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/QueryFilters.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/ShortAnswerOptions.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/ShortAnswerOptions.Serialization.cs index 119b28cf41c28..6f51d7be0b1ff 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/ShortAnswerOptions.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/ShortAnswerOptions.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/TextAnswer.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/TextAnswer.Serialization.cs index b6da03ee455bf..4e2f14641d66e 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/TextAnswer.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/TextAnswer.Serialization.cs @@ -80,5 +80,13 @@ internal static TextAnswer DeserializeTextAnswer(JsonElement element) offset, length); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TextAnswer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextAnswer(document.RootElement); + } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/TextDocument.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/TextDocument.Serialization.cs index 9bdae6edf3b13..a060520855341 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/TextDocument.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Models/TextDocument.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Text); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/AlphaIdConfiguration.Serialization.cs b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/AlphaIdConfiguration.Serialization.cs index 148ef8b4cb92e..7b5216a3ef220 100644 --- a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/AlphaIdConfiguration.Serialization.cs +++ b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/AlphaIdConfiguration.Serialization.cs @@ -37,5 +37,21 @@ internal static AlphaIdConfiguration DeserializeAlphaIdConfiguration(JsonElement } return new AlphaIdConfiguration(enabled); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AlphaIdConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAlphaIdConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.Serialization.cs index f881495fdebe8..8273f8c799844 100644 --- a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationError.Serialization.cs @@ -66,5 +66,13 @@ internal static CommunicationError DeserializeCommunicationError(JsonElement ele } return new CommunicationError(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationError(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationErrorResponse.Serialization.cs index 899a265dfc160..83bbb22ee1ada 100644 --- a/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationErrorResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.AlphaIds/src/Generated/Models/CommunicationErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static CommunicationErrorResponse DeserializeCommunicationErrorResponse } return new CommunicationErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationErrorResponse(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantFailedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantFailedInternal.Serialization.cs index 1d94126fa1a0f..35a664dea611c 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantFailedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantFailedInternal.Serialization.cs @@ -72,5 +72,13 @@ internal static AddParticipantFailedInternal DeserializeAddParticipantFailedInte serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddParticipantFailedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddParticipantFailedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.Serialization.cs index 6f4180cff6818..44a8df08f7ad5 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.Serialization.cs @@ -49,5 +49,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantResponseInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantResponseInternal.Serialization.cs index 6d4ea80deb181..8eec4ae31e7a3 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantResponseInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantResponseInternal.Serialization.cs @@ -44,5 +44,13 @@ internal static AddParticipantResponseInternal DeserializeAddParticipantResponse } return new AddParticipantResponseInternal(participant, operationContext, invitationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddParticipantResponseInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddParticipantResponseInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantSucceededInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantSucceededInternal.Serialization.cs index ae7978aa8ce43..6009c35f1067e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantSucceededInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantSucceededInternal.Serialization.cs @@ -72,5 +72,13 @@ internal static AddParticipantSucceededInternal DeserializeAddParticipantSucceed serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddParticipantSucceededInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddParticipantSucceededInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AnswerCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AnswerCallRequestInternal.Serialization.cs index a56be129937fa..e329f7d15704a 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AnswerCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AnswerCallRequestInternal.Serialization.cs @@ -46,5 +46,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AnswerFailedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AnswerFailedInternal.Serialization.cs index a2ea66e11c257..ed845b420be87 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AnswerFailedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AnswerFailedInternal.Serialization.cs @@ -56,5 +56,13 @@ internal static AnswerFailedInternal DeserializeAnswerFailedInternal(JsonElement } return new AnswerFailedInternal(operationContext, resultInformation, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnswerFailedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnswerFailedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AzureOpenAIDialog.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AzureOpenAIDialog.Serialization.cs index 994d67ffe391b..49a1f394f4dc1 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AzureOpenAIDialog.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AzureOpenAIDialog.Serialization.cs @@ -69,5 +69,21 @@ internal static AzureOpenAIDialog DeserializeAzureOpenAIDialog(JsonElement eleme } return new AzureOpenAIDialog(kind, context); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureOpenAIDialog FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureOpenAIDialog(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AzureOpenAIDialogUpdate.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AzureOpenAIDialogUpdate.Serialization.cs index 7bd8f85417b63..87db504e5d13e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AzureOpenAIDialogUpdate.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AzureOpenAIDialogUpdate.Serialization.cs @@ -35,5 +35,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/BaseDialog.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/BaseDialog.Serialization.cs index e9a453fe76d8d..deada8045ad55 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/BaseDialog.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/BaseDialog.Serialization.cs @@ -49,5 +49,21 @@ internal static BaseDialog DeserializeBaseDialog(JsonElement element) } return UnknownDialog.DeserializeUnknownDialog(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BaseDialog FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBaseDialog(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/BlobStorageInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/BlobStorageInternal.Serialization.cs index ebe44d96f6029..421b9ce5b8284 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/BlobStorageInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/BlobStorageInternal.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(ContainerUri); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnected.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnected.Serialization.cs index d5b539cc37a04..468f7580818d8 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnected.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnected.Serialization.cs @@ -46,5 +46,13 @@ internal static CallConnected DeserializeCallConnected(JsonElement element) } return new CallConnected(operationContext, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallConnected FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallConnected(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs index 97316badd1879..7b08a181f5757 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs @@ -143,5 +143,13 @@ internal static CallConnectionPropertiesInternal DeserializeCallConnectionProper answeredBy, answeredFor); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallConnectionPropertiesInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallConnectionPropertiesInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallDisconnected.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallDisconnected.Serialization.cs index e42252e4aefd1..f79b61d8a9744 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallDisconnected.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallDisconnected.Serialization.cs @@ -46,5 +46,13 @@ internal static CallDisconnected DeserializeCallDisconnected(JsonElement element } return new CallDisconnected(operationContext, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallDisconnected FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallDisconnected(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallIntelligenceOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallIntelligenceOptionsInternal.Serialization.cs index 41120c043b98f..82d2356cf96c5 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallIntelligenceOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallIntelligenceOptionsInternal.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallLocatorInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallLocatorInternal.Serialization.cs index 555a9924eb6b9..6bf6361508d93 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallLocatorInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallLocatorInternal.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallParticipantInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallParticipantInternal.Serialization.cs index 45a5342776339..332291a9b26c5 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallParticipantInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallParticipantInternal.Serialization.cs @@ -52,5 +52,13 @@ internal static CallParticipantInternal DeserializeCallParticipantInternal(JsonE } return new CallParticipantInternal(identifier, isMuted, isOnHold); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallParticipantInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallParticipantInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallTransferAcceptedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallTransferAcceptedInternal.Serialization.cs index 6eb123a6825ea..f1c56fab4859f 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallTransferAcceptedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallTransferAcceptedInternal.Serialization.cs @@ -83,5 +83,13 @@ internal static CallTransferAcceptedInternal DeserializeCallTransferAcceptedInte serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallTransferAcceptedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallTransferAcceptedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallTransferFailed.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallTransferFailed.Serialization.cs index 3a84b9b5a9621..fc5b28081751b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallTransferFailed.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CallTransferFailed.Serialization.cs @@ -56,5 +56,13 @@ internal static CallTransferFailed DeserializeCallTransferFailed(JsonElement ele } return new CallTransferFailed(operationContext, resultInformation, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallTransferFailed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallTransferFailed(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantFailedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantFailedInternal.Serialization.cs index 8f377abd1bdb4..c2118ff8c0a48 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantFailedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantFailedInternal.Serialization.cs @@ -68,5 +68,13 @@ internal static CancelAddParticipantFailedInternal DeserializeCancelAddParticipa serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CancelAddParticipantFailedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCancelAddParticipantFailedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantRequestInternal.Serialization.cs index 3574009021be8..b74600ee864f7 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantRequestInternal.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantResponseInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantResponseInternal.Serialization.cs index a09ca2ef357e0..795bd5a8d044a 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantResponseInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantResponseInternal.Serialization.cs @@ -34,5 +34,13 @@ internal static CancelAddParticipantResponseInternal DeserializeCancelAddPartici } return new CancelAddParticipantResponseInternal(invitationId, operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CancelAddParticipantResponseInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCancelAddParticipantResponseInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantSucceededInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantSucceededInternal.Serialization.cs index 7d8c6b7cf32de..e2aeffccc363d 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantSucceededInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CancelAddParticipantSucceededInternal.Serialization.cs @@ -68,5 +68,13 @@ internal static CancelAddParticipantSucceededInternal DeserializeCancelAddPartic serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CancelAddParticipantSucceededInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCancelAddParticipantSucceededInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ChannelAffinityInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ChannelAffinityInternal.Serialization.cs index 31feafac1cb94..d64dab46cb6cf 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ChannelAffinityInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ChannelAffinityInternal.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(Participant); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ChoiceResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ChoiceResult.Serialization.cs index 691120336605e..e4c5154e67313 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ChoiceResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ChoiceResult.Serialization.cs @@ -34,5 +34,13 @@ internal static ChoiceResult DeserializeChoiceResult(JsonElement element) } return new ChoiceResult(label, recognizedPhrase); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChoiceResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChoiceResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.Serialization.cs index b5363c8449da3..cd923ce53c1bc 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CollectTonesResult.Serialization.cs @@ -38,5 +38,13 @@ internal static CollectTonesResult DeserializeCollectTonesResult(JsonElement ele } return new CollectTonesResult(tones ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CollectTonesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCollectTonesResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.Serialization.cs index 3f41c90e2234a..2081421ae0928 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationError.Serialization.cs @@ -66,5 +66,13 @@ internal static CommunicationError DeserializeCommunicationError(JsonElement ele } return new CommunicationError(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationError(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationErrorResponse.Serialization.cs index fdcf7f31ffb06..d71c036e95431 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationErrorResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static CommunicationErrorResponse DeserializeCommunicationErrorResponse } return new CommunicationErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationErrorResponse(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs index be505f847897a..3d1327bca0974 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs @@ -122,5 +122,21 @@ internal static CommunicationIdentifierModel DeserializeCommunicationIdentifierM microsoftTeamsUser, microsoftTeamsApp); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new CallAutomation.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs index 606b9637a4ea9..888d22100e975 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System.Text.Json; +using Azure.Communication.CallAutomation; using Azure.Core; namespace Azure.Communication @@ -37,5 +38,21 @@ internal static CommunicationUserIdentifierModel DeserializeCommunicationUserIde } return new CommunicationUserIdentifierModel(id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationUserIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new CallAutomation.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionRequestInternal.Serialization.cs index bdfb52cd00b0c..22b197e405410 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionRequestInternal.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionStopped.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionStopped.Serialization.cs index b1159e93641c8..10a0595e9d7b3 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionStopped.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionStopped.Serialization.cs @@ -56,5 +56,13 @@ internal static ContinuousDtmfRecognitionStopped DeserializeContinuousDtmfRecogn } return new ContinuousDtmfRecognitionStopped(operationContext, resultInformation, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContinuousDtmfRecognitionStopped FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContinuousDtmfRecognitionStopped(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionToneFailed.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionToneFailed.Serialization.cs index 0b38cb54dbb4d..edec4a4a7f6c6 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionToneFailed.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionToneFailed.Serialization.cs @@ -56,5 +56,13 @@ internal static ContinuousDtmfRecognitionToneFailed DeserializeContinuousDtmfRec } return new ContinuousDtmfRecognitionToneFailed(resultInformation, operationContext, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContinuousDtmfRecognitionToneFailed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContinuousDtmfRecognitionToneFailed(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionToneReceived.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionToneReceived.Serialization.cs index 243954e0b4932..80a8c099081e3 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionToneReceived.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ContinuousDtmfRecognitionToneReceived.Serialization.cs @@ -83,5 +83,13 @@ internal static ContinuousDtmfRecognitionToneReceived DeserializeContinuousDtmfR serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContinuousDtmfRecognitionToneReceived FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContinuousDtmfRecognitionToneReceived(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CreateCallFailedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CreateCallFailedInternal.Serialization.cs index aa33561f996b4..5296def00ba32 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CreateCallFailedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CreateCallFailedInternal.Serialization.cs @@ -56,5 +56,13 @@ internal static CreateCallFailedInternal DeserializeCreateCallFailedInternal(Jso } return new CreateCallFailedInternal(operationContext, resultInformation, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CreateCallFailedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCreateCallFailedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CreateCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CreateCallRequestInternal.Serialization.cs index 0362f6794b8b9..16f2a0157268b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CreateCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CreateCallRequestInternal.Serialization.cs @@ -66,5 +66,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CustomCallingContextInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CustomCallingContextInternal.Serialization.cs index d5ccd4df5ad78..cf58408d99ed4 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CustomCallingContextInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/CustomCallingContextInternal.Serialization.cs @@ -39,5 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogCompletedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogCompletedInternal.Serialization.cs index 5466bf666bdc7..2aaca86f2123f 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogCompletedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogCompletedInternal.Serialization.cs @@ -79,5 +79,13 @@ internal static DialogCompletedInternal DeserializeDialogCompletedInternal(JsonE serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogCompletedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogCompletedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogConsentInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogConsentInternal.Serialization.cs index f4e608181b433..67fe255cc684d 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogConsentInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogConsentInternal.Serialization.cs @@ -90,5 +90,13 @@ internal static DialogConsentInternal DeserializeDialogConsentInternal(JsonEleme serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogConsentInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogConsentInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogFailedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogFailedInternal.Serialization.cs index 1d35a5165b51e..718a892c26b86 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogFailedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogFailedInternal.Serialization.cs @@ -79,5 +79,13 @@ internal static DialogFailedInternal DeserializeDialogFailedInternal(JsonElement serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogFailedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogFailedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogHangupInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogHangupInternal.Serialization.cs index 484d0c556f0cf..5c810932a84b9 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogHangupInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogHangupInternal.Serialization.cs @@ -90,5 +90,13 @@ internal static DialogHangupInternal DeserializeDialogHangupInternal(JsonElement serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogHangupInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogHangupInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogLanguageChangeInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogLanguageChangeInternal.Serialization.cs index df9755cb230ec..b06fc7a80d6c1 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogLanguageChangeInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogLanguageChangeInternal.Serialization.cs @@ -97,5 +97,13 @@ internal static DialogLanguageChangeInternal DeserializeDialogLanguageChangeInte serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogLanguageChangeInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogLanguageChangeInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogSensitivityUpdateInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogSensitivityUpdateInternal.Serialization.cs index 1ad6b36a33aac..b2a77fd4fae4f 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogSensitivityUpdateInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogSensitivityUpdateInternal.Serialization.cs @@ -90,5 +90,13 @@ internal static DialogSensitivityUpdateInternal DeserializeDialogSensitivityUpda serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogSensitivityUpdateInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogSensitivityUpdateInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogStartedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogStartedInternal.Serialization.cs index 0c31c832f3bff..406b22ebc90c2 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogStartedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogStartedInternal.Serialization.cs @@ -79,5 +79,13 @@ internal static DialogStartedInternal DeserializeDialogStartedInternal(JsonEleme serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogStartedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogStartedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogStateResponseInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogStateResponseInternal.Serialization.cs index 552b2e53b0bb0..ec8371183f313 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogStateResponseInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogStateResponseInternal.Serialization.cs @@ -44,5 +44,13 @@ internal static DialogStateResponseInternal DeserializeDialogStateResponseIntern } return new DialogStateResponseInternal(dialogId, dialog, operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogStateResponseInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogStateResponseInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogTransferInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogTransferInternal.Serialization.cs index 556440c7beb48..3a6cc205e4e21 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogTransferInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogTransferInternal.Serialization.cs @@ -104,5 +104,13 @@ internal static DialogTransferInternal DeserializeDialogTransferInternal(JsonEle serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogTransferInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogTransferInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogUpdateBase.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogUpdateBase.Serialization.cs index 8accd21295231..8e11529b9ca82 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogUpdateBase.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogUpdateBase.Serialization.cs @@ -35,5 +35,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogUpdatedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogUpdatedInternal.Serialization.cs index 45770c38d23fb..9df41fbcf0dd8 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogUpdatedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DialogUpdatedInternal.Serialization.cs @@ -90,5 +90,13 @@ internal static DialogUpdatedInternal DeserializeDialogUpdatedInternal(JsonEleme serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DialogUpdatedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDialogUpdatedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfOptionsInternal.Serialization.cs index 514fd851bfd3b..5636be5d29d4e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfOptionsInternal.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.Serialization.cs index b859708920d0b..3bb5b8638e1ae 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/DtmfResult.Serialization.cs @@ -38,5 +38,13 @@ internal static DtmfResult DeserializeDtmfResult(JsonElement element) } return new DtmfResult(tones ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DtmfResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDtmfResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ExternalStorageInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ExternalStorageInternal.Serialization.cs index c40adc8baff5e..cda4ff13150ac 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ExternalStorageInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ExternalStorageInternal.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/FileSourceInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/FileSourceInternal.Serialization.cs index 28c71d33c0f59..6cd9fb111784f 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/FileSourceInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/FileSourceInternal.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Uri); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs index fd835cfea319c..4ccda41bed5dd 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs @@ -40,5 +40,13 @@ internal static GetParticipantsResponseInternal DeserializeGetParticipantsRespon } return new GetParticipantsResponseInternal(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GetParticipantsResponseInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetParticipantsResponseInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/HoldFailed.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/HoldFailed.Serialization.cs index b4d847a33e733..c8ba69d4ac3ee 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/HoldFailed.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/HoldFailed.Serialization.cs @@ -56,5 +56,13 @@ internal static HoldFailed DeserializeHoldFailed(JsonElement element) } return new HoldFailed(operationContext, resultInformation, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HoldFailed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHoldFailed(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/HoldRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/HoldRequestInternal.Serialization.cs index bee44f0dcaabf..ddeb09642f21e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/HoldRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/HoldRequestInternal.Serialization.cs @@ -34,5 +34,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MediaStreamingOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MediaStreamingOptionsInternal.Serialization.cs index 424812f03b4cf..f59cd919da9d7 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MediaStreamingOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MediaStreamingOptionsInternal.Serialization.cs @@ -25,5 +25,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(AudioChannelType.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MicrosoftTeamsAppIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MicrosoftTeamsAppIdentifierModel.Serialization.cs index 37c2f8a31ed6f..fbeb1f681fcc4 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MicrosoftTeamsAppIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MicrosoftTeamsAppIdentifierModel.Serialization.cs @@ -53,5 +53,21 @@ internal static MicrosoftTeamsAppIdentifierModel DeserializeMicrosoftTeamsAppIde } return new MicrosoftTeamsAppIdentifierModel(appId, cloud); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MicrosoftTeamsAppIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftTeamsAppIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new CallAutomation.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs index a282672f1e0aa..eb6699473e885 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs @@ -68,5 +68,21 @@ internal static MicrosoftTeamsUserIdentifierModel DeserializeMicrosoftTeamsUserI } return new MicrosoftTeamsUserIdentifierModel(userId, isAnonymous, cloud); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MicrosoftTeamsUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftTeamsUserIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new CallAutomation.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MuteParticipantResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MuteParticipantResult.Serialization.cs index b27a87b6469f2..910e4a145b006 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MuteParticipantResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MuteParticipantResult.Serialization.cs @@ -28,5 +28,13 @@ internal static MuteParticipantResult DeserializeMuteParticipantResult(JsonEleme } return new MuteParticipantResult(operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MuteParticipantResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMuteParticipantResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MuteParticipantsRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MuteParticipantsRequestInternal.Serialization.cs index e8fe0fce496ca..269757717dd66 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MuteParticipantsRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/MuteParticipantsRequestInternal.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs index 6b2d34cf052fb..d6d27dfd76c0c 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs @@ -66,5 +66,13 @@ internal static ParticipantsUpdatedInternal DeserializeParticipantsUpdatedIntern } return new ParticipantsUpdatedInternal(participants ?? new ChangeTrackingList(), sequenceNumber, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ParticipantsUpdatedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParticipantsUpdatedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs index dce7185be6bd8..088ecdf054aff 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System.Text.Json; +using Azure.Communication.CallAutomation; using Azure.Core; namespace Azure.Communication @@ -37,5 +38,21 @@ internal static PhoneNumberIdentifierModel DeserializePhoneNumberIdentifierModel } return new PhoneNumberIdentifierModel(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new CallAutomation.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayCanceled.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayCanceled.Serialization.cs index 4ec02d85a3d1f..a67e5b9d60b45 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayCanceled.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayCanceled.Serialization.cs @@ -46,5 +46,13 @@ internal static PlayCanceled DeserializePlayCanceled(JsonElement element) } return new PlayCanceled(operationContext, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PlayCanceled FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePlayCanceled(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayCompleted.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayCompleted.Serialization.cs index 1e2c0456428b1..ac17c8928d48e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayCompleted.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayCompleted.Serialization.cs @@ -56,5 +56,13 @@ internal static PlayCompleted DeserializePlayCompleted(JsonElement element) } return new PlayCompleted(resultInformation, operationContext, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PlayCompleted FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePlayCompleted(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayFailed.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayFailed.Serialization.cs index 100632e817c49..dff4b4738aa2a 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayFailed.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayFailed.Serialization.cs @@ -56,5 +56,13 @@ internal static PlayFailed DeserializePlayFailed(JsonElement element) } return new PlayFailed(operationContext, resultInformation, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PlayFailed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePlayFailed(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayOptionsInternal.Serialization.cs index a4e276fb12d5d..f6984e8049b42 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayOptionsInternal.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayRequestInternal.Serialization.cs index 9379bfe8b3091..bf3db675be3b6 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlayRequestInternal.Serialization.cs @@ -49,5 +49,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlaySourceInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlaySourceInternal.Serialization.cs index 2763839298bb6..c3bfcba4cadbd 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlaySourceInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PlaySourceInternal.Serialization.cs @@ -39,5 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PowerVirtualAgentsDialog.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PowerVirtualAgentsDialog.Serialization.cs index 34fa004daaa5b..1591381693595 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PowerVirtualAgentsDialog.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/PowerVirtualAgentsDialog.Serialization.cs @@ -88,5 +88,21 @@ internal static PowerVirtualAgentsDialog DeserializePowerVirtualAgentsDialog(Jso } return new PowerVirtualAgentsDialog(kind, context, botAppId, language); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PowerVirtualAgentsDialog FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePowerVirtualAgentsDialog(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognitionChoice.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognitionChoice.Serialization.cs index 92353fab4bdd4..8c5432ba1c7ee 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognitionChoice.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognitionChoice.Serialization.cs @@ -71,5 +71,21 @@ internal static RecognitionChoice DeserializeRecognitionChoice(JsonElement eleme } return new RecognitionChoice(label, phrases, tone); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecognitionChoice FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecognitionChoice(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeCanceled.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeCanceled.Serialization.cs index 85b462fe1a540..51d91445cea88 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeCanceled.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeCanceled.Serialization.cs @@ -46,5 +46,13 @@ internal static RecognizeCanceled DeserializeRecognizeCanceled(JsonElement eleme } return new RecognizeCanceled(operationContext, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecognizeCanceled FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecognizeCanceled(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeCompletedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeCompletedInternal.Serialization.cs index 398fe62a0b916..aee590596d802 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeCompletedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeCompletedInternal.Serialization.cs @@ -116,5 +116,13 @@ internal static RecognizeCompletedInternal DeserializeRecognizeCompletedInternal serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecognizeCompletedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecognizeCompletedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeFailed.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeFailed.Serialization.cs index bd561d9355b5e..398ee9801d1f8 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeFailed.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeFailed.Serialization.cs @@ -56,5 +56,13 @@ internal static RecognizeFailed DeserializeRecognizeFailed(JsonElement element) } return new RecognizeFailed(operationContext, resultInformation, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecognizeFailed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecognizeFailed(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeOptionsInternal.Serialization.cs index 09b76a0019a54..caa2fd1e8c6de 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeOptionsInternal.Serialization.cs @@ -59,5 +59,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeRequestInternal.Serialization.cs index 38dd7b0bc62b8..00497414667ad 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecognizeRequestInternal.Serialization.cs @@ -41,5 +41,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecordingStateChanged.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecordingStateChanged.Serialization.cs index 9a961f3cc800d..ef42a30a8cd91 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecordingStateChanged.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecordingStateChanged.Serialization.cs @@ -84,5 +84,13 @@ internal static RecordingStateChanged DeserializeRecordingStateChanged(JsonEleme serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecordingStateChanged FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecordingStateChanged(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecordingStateResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecordingStateResult.Serialization.cs index 2985d4bc1c488..b513f0cf05702 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecordingStateResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RecordingStateResult.Serialization.cs @@ -48,5 +48,13 @@ internal static RecordingStateResult DeserializeRecordingStateResult(JsonElement } return new RecordingStateResult(recordingId, recordingState, recordingType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecordingStateResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecordingStateResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RedirectCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RedirectCallRequestInternal.Serialization.cs index d2e66e57e3519..455656f5cc54b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RedirectCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RedirectCallRequestInternal.Serialization.cs @@ -26,5 +26,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RejectCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RejectCallRequestInternal.Serialization.cs index f49a9065faa2c..6e86e82274e73 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RejectCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RejectCallRequestInternal.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantFailedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantFailedInternal.Serialization.cs index 7e71fa15a21ef..0a4dab8877d0d 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantFailedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantFailedInternal.Serialization.cs @@ -72,5 +72,13 @@ internal static RemoveParticipantFailedInternal DeserializeRemoveParticipantFail serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoveParticipantFailedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoveParticipantFailedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.Serialization.cs index a51731ab2bdfa..7f53510dafbe7 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantResponseInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantResponseInternal.Serialization.cs index 17b2643e82cc2..333ca0313fe3a 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantResponseInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantResponseInternal.Serialization.cs @@ -28,5 +28,13 @@ internal static RemoveParticipantResponseInternal DeserializeRemoveParticipantRe } return new RemoveParticipantResponseInternal(operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoveParticipantResponseInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoveParticipantResponseInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantSucceededInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantSucceededInternal.Serialization.cs index c0d09a2ed8260..9bbffbe929fb0 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantSucceededInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantSucceededInternal.Serialization.cs @@ -72,5 +72,13 @@ internal static RemoveParticipantSucceededInternal DeserializeRemoveParticipantS serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoveParticipantSucceededInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoveParticipantSucceededInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ResultInformation.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ResultInformation.Serialization.cs index 79d1d4fa325f0..b658c512072bc 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ResultInformation.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/ResultInformation.Serialization.cs @@ -48,5 +48,13 @@ internal static ResultInformation DeserializeResultInformation(JsonElement eleme } return new ResultInformation(code, subCode, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResultInformation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResultInformation(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesCompletedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesCompletedInternal.Serialization.cs index 0716c3ae6b072..f98acbc0cc3ca 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesCompletedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesCompletedInternal.Serialization.cs @@ -56,5 +56,13 @@ internal static SendDtmfTonesCompletedInternal DeserializeSendDtmfTonesCompleted } return new SendDtmfTonesCompletedInternal(operationContext, resultInformation, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SendDtmfTonesCompletedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSendDtmfTonesCompletedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesFailedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesFailedInternal.Serialization.cs index 1f902184112f0..f89702fc17453 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesFailedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesFailedInternal.Serialization.cs @@ -56,5 +56,13 @@ internal static SendDtmfTonesFailedInternal DeserializeSendDtmfTonesFailedIntern } return new SendDtmfTonesFailedInternal(operationContext, resultInformation, callConnectionId, serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SendDtmfTonesFailedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSendDtmfTonesFailedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesRequestInternal.Serialization.cs index a1582e4811875..97c42ad6e1483 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesRequestInternal.Serialization.cs @@ -36,5 +36,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesResult.Serialization.cs index b912b7b8b1256..51fee00a6cb80 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SendDtmfTonesResult.Serialization.cs @@ -28,5 +28,13 @@ internal static SendDtmfTonesResult DeserializeSendDtmfTonesResult(JsonElement e } return new SendDtmfTonesResult(operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SendDtmfTonesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSendDtmfTonesResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SpeechOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SpeechOptionsInternal.Serialization.cs index d13218841d36d..43f07e8950d83 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SpeechOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SpeechOptionsInternal.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SpeechResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SpeechResult.Serialization.cs index 75c8e347e92e4..87f28863f7c52 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SpeechResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SpeechResult.Serialization.cs @@ -28,5 +28,13 @@ internal static SpeechResult DeserializeSpeechResult(JsonElement element) } return new SpeechResult(speech); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SpeechResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpeechResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SsmlSourceInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SsmlSourceInternal.Serialization.cs index 0794b308c93ae..ceaddf65dd6a3 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SsmlSourceInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/SsmlSourceInternal.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartCallRecordingRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartCallRecordingRequestInternal.Serialization.cs index fd8880d242ab8..8238b4044ac84 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartCallRecordingRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartCallRecordingRequestInternal.Serialization.cs @@ -69,5 +69,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartDialogRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartDialogRequestInternal.Serialization.cs index 4d39c785e3617..35fe6bf6c25c1 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartDialogRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartDialogRequestInternal.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartHoldMusicRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartHoldMusicRequestInternal.Serialization.cs index 8ea29e2988945..de1a3891b58ab 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartHoldMusicRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartHoldMusicRequestInternal.Serialization.cs @@ -34,5 +34,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartTranscriptionRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartTranscriptionRequestInternal.Serialization.cs index cc634a87ec48d..1ce690f39c3e5 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartTranscriptionRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StartTranscriptionRequestInternal.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StopHoldMusicRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StopHoldMusicRequestInternal.Serialization.cs index 384c2ca73d44e..1f0ddb0df575a 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StopHoldMusicRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StopHoldMusicRequestInternal.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StopTranscriptionRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StopTranscriptionRequestInternal.Serialization.cs index f3d9f5c3b0278..32290c44aad4b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StopTranscriptionRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/StopTranscriptionRequestInternal.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TeamsComplianceRecordingStateChanged.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TeamsComplianceRecordingStateChanged.Serialization.cs index 107661bf89366..41073ea2bf99c 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TeamsComplianceRecordingStateChanged.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TeamsComplianceRecordingStateChanged.Serialization.cs @@ -84,5 +84,13 @@ internal static TeamsComplianceRecordingStateChanged DeserializeTeamsComplianceR serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TeamsComplianceRecordingStateChanged FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTeamsComplianceRecordingStateChanged(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TeamsRecordingStateChanged.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TeamsRecordingStateChanged.Serialization.cs index feba782d667c3..efa2dfdb0abd2 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TeamsRecordingStateChanged.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TeamsRecordingStateChanged.Serialization.cs @@ -84,5 +84,13 @@ internal static TeamsRecordingStateChanged DeserializeTeamsRecordingStateChanged serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TeamsRecordingStateChanged FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTeamsRecordingStateChanged(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TextSourceInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TextSourceInternal.Serialization.cs index 95120cbc3daef..67295162cddf4 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TextSourceInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TextSourceInternal.Serialization.cs @@ -39,5 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionFailed.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionFailed.Serialization.cs index fb0d4b70038de..556a03c10254e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionFailed.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionFailed.Serialization.cs @@ -72,5 +72,13 @@ internal static TranscriptionFailed DeserializeTranscriptionFailed(JsonElement e serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TranscriptionFailed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTranscriptionFailed(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionOptionsInternal.Serialization.cs index a942ec83b1d24..d64ba1543e543 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionOptionsInternal.Serialization.cs @@ -25,5 +25,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteBooleanValue(StartTranscription); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionStarted.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionStarted.Serialization.cs index 1548b6489ed92..0cafb2a429d29 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionStarted.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionStarted.Serialization.cs @@ -72,5 +72,13 @@ internal static TranscriptionStarted DeserializeTranscriptionStarted(JsonElement serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TranscriptionStarted FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTranscriptionStarted(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionStopped.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionStopped.Serialization.cs index 065741fcfa317..50f59bf7a0b35 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionStopped.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionStopped.Serialization.cs @@ -72,5 +72,13 @@ internal static TranscriptionStopped DeserializeTranscriptionStopped(JsonElement serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TranscriptionStopped FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTranscriptionStopped(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionUpdate.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionUpdate.Serialization.cs index 6aa162905de7e..caf5d1d03cd3e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionUpdate.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionUpdate.Serialization.cs @@ -42,5 +42,13 @@ internal static TranscriptionUpdate DeserializeTranscriptionUpdate(JsonElement e } return new TranscriptionUpdate(transcriptionStatus, transcriptionStatusDetails); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TranscriptionUpdate FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTranscriptionUpdate(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionUpdated.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionUpdated.Serialization.cs index 573f66318814a..badca03908285 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionUpdated.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TranscriptionUpdated.Serialization.cs @@ -72,5 +72,13 @@ internal static TranscriptionUpdated DeserializeTranscriptionUpdated(JsonElement serverCallId, correlationId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TranscriptionUpdated FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTranscriptionUpdated(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferCallToParticipantResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferCallToParticipantResult.Serialization.cs index dd5423fbda715..bdf0cd89161cc 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferCallToParticipantResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferCallToParticipantResult.Serialization.cs @@ -28,5 +28,13 @@ internal static TransferCallToParticipantResult DeserializeTransferCallToPartici } return new TransferCallToParticipantResult(operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TransferCallToParticipantResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTransferCallToParticipantResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs index fe8b08880c21a..d7248ea0ec56e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs @@ -44,5 +44,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnholdRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnholdRequestInternal.Serialization.cs index fc45d67472a92..6de84b0f2ce08 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnholdRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnholdRequestInternal.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnknownDialog.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnknownDialog.Serialization.cs index 986aa505fa851..5972f995d90e4 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnknownDialog.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnknownDialog.Serialization.cs @@ -69,5 +69,21 @@ internal static UnknownDialog DeserializeUnknownDialog(JsonElement element) } return new UnknownDialog(kind, context); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDialog FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDialog(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnmuteParticipantResult.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnmuteParticipantResult.Serialization.cs index b023f76d1e4bf..7c49e251e6be3 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnmuteParticipantResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnmuteParticipantResult.Serialization.cs @@ -28,5 +28,13 @@ internal static UnmuteParticipantResult DeserializeUnmuteParticipantResult(JsonE } return new UnmuteParticipantResult(operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static UnmuteParticipantResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnmuteParticipantResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnmuteParticipantsRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnmuteParticipantsRequestInternal.Serialization.cs index a8d5d60fe8bdd..25dde70ace44d 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnmuteParticipantsRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UnmuteParticipantsRequestInternal.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateDialogRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateDialogRequestInternal.Serialization.cs index 87050cbdad501..6fbf25e85be1b 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateDialogRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateDialogRequestInternal.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.Serialization.cs index 973bb8756b584..bfb4a69033054 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UpdateTranscriptionRequestInternal.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Locale); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UserConsent.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UserConsent.Serialization.cs index 80c02b43a7e5b..22ed19c358f8f 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UserConsent.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/UserConsent.Serialization.cs @@ -32,5 +32,13 @@ internal static UserConsent DeserializeUserConsent(JsonElement element) } return new UserConsent(recording); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static UserConsent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUserConsent(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AcsCallParticipantInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AcsCallParticipantInternal.Serialization.cs index 127f710bea332..6a8b2b5129083 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AcsCallParticipantInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AcsCallParticipantInternal.Serialization.cs @@ -42,5 +42,13 @@ internal static AcsCallParticipantInternal DeserializeAcsCallParticipantInternal } return new AcsCallParticipantInternal(identifier, isMuted); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsCallParticipantInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsCallParticipantInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.Serialization.cs index 27fd7d5b4c124..588a927bb3688 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsFailedInternal.Serialization.cs @@ -99,5 +99,13 @@ internal static AddParticipantsFailedInternal DeserializeAddParticipantsFailedIn correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddParticipantsFailedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddParticipantsFailedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsRequestInternal.Serialization.cs index c499ec2389015..69acd2ecaadf4 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsRequestInternal.Serialization.cs @@ -39,5 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.Serialization.cs index b8470fb3f2201..add6f28b1b968 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsResponseInternal.Serialization.cs @@ -44,5 +44,13 @@ internal static AddParticipantsResponseInternal DeserializeAddParticipantsRespon } return new AddParticipantsResponseInternal(participants ?? new ChangeTrackingList(), operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddParticipantsResponseInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddParticipantsResponseInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.Serialization.cs index ed44b3c344404..56e8c7fa1d8be 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantsSucceededInternal.Serialization.cs @@ -99,5 +99,13 @@ internal static AddParticipantsSucceededInternal DeserializeAddParticipantsSucce correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddParticipantsSucceededInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddParticipantsSucceededInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AnswerCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AnswerCallRequestInternal.Serialization.cs index c596bd82b96eb..6cfb887e3ef22 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AnswerCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AnswerCallRequestInternal.Serialization.cs @@ -26,5 +26,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnected.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnected.Serialization.cs index 0bda2625a4dad..4f11b7f070dcb 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnected.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnected.Serialization.cs @@ -82,5 +82,13 @@ internal static CallConnected DeserializeCallConnected(JsonElement element) correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallConnected FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallConnected(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs index 24c953a44ba94..4264af7a1eb30 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionPropertiesInternal.Serialization.cs @@ -96,5 +96,13 @@ internal static CallConnectionPropertiesInternal DeserializeCallConnectionProper callbackUri, mediaSubscriptionId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallConnectionPropertiesInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallConnectionPropertiesInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallDisconnected.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallDisconnected.Serialization.cs index 547f14bbf672c..71892750b0706 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallDisconnected.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallDisconnected.Serialization.cs @@ -82,5 +82,13 @@ internal static CallDisconnected DeserializeCallDisconnected(JsonElement element correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallDisconnected FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallDisconnected(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLocatorInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLocatorInternal.Serialization.cs index b479dd6c5288b..fb70409000fdb 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLocatorInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLocatorInternal.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChanged.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChanged.Serialization.cs index 7a5a4d896ff51..9385f472b54e3 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChanged.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChanged.Serialization.cs @@ -112,5 +112,13 @@ internal static CallRecordingStateChanged DeserializeCallRecordingStateChanged(J correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallRecordingStateChanged FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallRecordingStateChanged(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallSourceInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallSourceInternal.Serialization.cs index 23e81c907b207..27aa6c380379d 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallSourceInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallSourceInternal.Serialization.cs @@ -63,5 +63,21 @@ internal static CallSourceInternal DeserializeCallSourceInternal(JsonElement ele } return new CallSourceInternal(callerId, displayName, identifier); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallSourceInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallSourceInternal(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallTransferAccepted.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallTransferAccepted.Serialization.cs index 8d9741a097a9b..f3cb617ff2ff3 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallTransferAccepted.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallTransferAccepted.Serialization.cs @@ -82,5 +82,13 @@ internal static CallTransferAccepted DeserializeCallTransferAccepted(JsonElement correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallTransferAccepted FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallTransferAccepted(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallTransferFailed.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallTransferFailed.Serialization.cs index 7938b845806cc..08fb7a391254e 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallTransferFailed.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallTransferFailed.Serialization.cs @@ -82,5 +82,13 @@ internal static CallTransferFailed DeserializeCallTransferFailed(JsonElement ele correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CallTransferFailed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCallTransferFailed(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ChannelAffinityInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ChannelAffinityInternal.Serialization.cs index 0e889b2d7cf36..52940c63eac48 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ChannelAffinityInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ChannelAffinityInternal.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.Serialization.cs index 99a35491299af..079e4950c090b 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CollectTonesResult.Serialization.cs @@ -38,5 +38,13 @@ internal static CollectTonesResult DeserializeCollectTonesResult(JsonElement ele } return new CollectTonesResult(tones ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CollectTonesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCollectTonesResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs index 9f20e118ef106..6449ef948cac6 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs @@ -101,5 +101,21 @@ internal static CommunicationIdentifierModel DeserializeCommunicationIdentifierM } return new CommunicationIdentifierModel(rawId, kind, communicationUser, phoneNumber, microsoftTeamsUser); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new CallingServer.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs index 606b9637a4ea9..85e9062549586 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System.Text.Json; +using Azure.Communication.CallingServer; using Azure.Core; namespace Azure.Communication @@ -37,5 +38,21 @@ internal static CommunicationUserIdentifierModel DeserializeCommunicationUserIde } return new CommunicationUserIdentifierModel(id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationUserIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new CallingServer.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.Serialization.cs index 3eae20fbf678e..fa80165f18294 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.Serialization.cs @@ -38,5 +38,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/DtmfOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/DtmfOptionsInternal.Serialization.cs index b8b8a2ffef52f..0a1cd01a5bb00 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/DtmfOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/DtmfOptionsInternal.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/FileSourceInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/FileSourceInternal.Serialization.cs index c7762f0ebb25f..32aefbe5dfbdc 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/FileSourceInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/FileSourceInternal.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Uri); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs index dc9634ea93105..293fafa9d2aff 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetParticipantsResponseInternal.Serialization.cs @@ -44,5 +44,13 @@ internal static GetParticipantsResponseInternal DeserializeGetParticipantsRespon } return new GetParticipantsResponseInternal(values ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GetParticipantsResponseInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetParticipantsResponseInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MediaStreamingOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MediaStreamingOptionsInternal.Serialization.cs index 9bbcdae8e1670..8833943d1bacc 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MediaStreamingOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MediaStreamingOptionsInternal.Serialization.cs @@ -25,5 +25,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(AudioChannelType.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs index 40fb6234d9c23..51a422bf6c0a1 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs @@ -68,5 +68,21 @@ internal static MicrosoftTeamsUserIdentifierModel DeserializeMicrosoftTeamsUserI } return new MicrosoftTeamsUserIdentifierModel(userId, isAnonymous, cloud); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MicrosoftTeamsUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftTeamsUserIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new CallingServer.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs index d6f93a9f9bf16..52c4b0a0f655f 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedInternal.Serialization.cs @@ -99,5 +99,13 @@ internal static ParticipantsUpdatedInternal DeserializeParticipantsUpdatedIntern correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ParticipantsUpdatedInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParticipantsUpdatedInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs index dce7185be6bd8..1675d57850e39 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System.Text.Json; +using Azure.Communication.CallingServer; using Azure.Core; namespace Azure.Communication @@ -37,5 +38,21 @@ internal static PhoneNumberIdentifierModel DeserializePhoneNumberIdentifierModel } return new PhoneNumberIdentifierModel(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new CallingServer.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayCompleted.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayCompleted.Serialization.cs index 783497007a226..dac4e4f5ee659 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayCompleted.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayCompleted.Serialization.cs @@ -75,5 +75,13 @@ internal static PlayCompleted DeserializePlayCompleted(JsonElement element) correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PlayCompleted FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePlayCompleted(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayFailed.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayFailed.Serialization.cs index 8edc817699b23..269a6d28c367e 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayFailed.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayFailed.Serialization.cs @@ -82,5 +82,13 @@ internal static PlayFailed DeserializePlayFailed(JsonElement element) correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PlayFailed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePlayFailed(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayOptionsInternal.Serialization.cs index 9aefd881caa9c..835ec556c8377 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayOptionsInternal.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteBooleanValue(Loop); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayRequestInternal.Serialization.cs index fe2f038607a26..a2f4c7663e76c 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayRequestInternal.Serialization.cs @@ -39,5 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlaySourceInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlaySourceInternal.Serialization.cs index 97d7043cf7dd0..7dba62fc62b5f 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlaySourceInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlaySourceInternal.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeCompleted.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeCompleted.Serialization.cs index fcbe6db752cf8..070749593b00b 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeCompleted.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeCompleted.Serialization.cs @@ -97,5 +97,13 @@ internal static RecognizeCompleted DeserializeRecognizeCompleted(JsonElement ele correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecognizeCompleted FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecognizeCompleted(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeFailed.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeFailed.Serialization.cs index a670c892ad1ef..ab7e191fe4d00 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeFailed.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeFailed.Serialization.cs @@ -75,5 +75,13 @@ internal static RecognizeFailed DeserializeRecognizeFailed(JsonElement element) correlationId, publicEventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecognizeFailed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecognizeFailed(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeOptionsInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeOptionsInternal.Serialization.cs index 785c6a013c494..514cdea9cb637 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeOptionsInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeOptionsInternal.Serialization.cs @@ -34,5 +34,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeRequestInternal.Serialization.cs index d8d5d6ea1212b..74fdb7dd8db8e 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecognizeRequestInternal.Serialization.cs @@ -36,5 +36,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecordingStateResult.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecordingStateResult.Serialization.cs index 53fe9c9d84c31..a7a2909b55e3d 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecordingStateResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RecordingStateResult.Serialization.cs @@ -38,5 +38,13 @@ internal static RecordingStateResult DeserializeRecordingStateResult(JsonElement } return new RecordingStateResult(recordingId, recordingState); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecordingStateResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecordingStateResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RedirectCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RedirectCallRequestInternal.Serialization.cs index 7caee1b76e069..30c06e7340d09 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RedirectCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RedirectCallRequestInternal.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(Target); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RejectCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RejectCallRequestInternal.Serialization.cs index 3d5f2c8b4ae3a..164b3184674f6 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RejectCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RejectCallRequestInternal.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RemoveParticipantsRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RemoveParticipantsRequestInternal.Serialization.cs index ca57dce8881ff..dd0d3e27402df 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RemoveParticipantsRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RemoveParticipantsRequestInternal.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RemoveParticipantsResult.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RemoveParticipantsResult.Serialization.cs index a9b243b88adc0..b842642a60bd8 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RemoveParticipantsResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/RemoveParticipantsResult.Serialization.cs @@ -28,5 +28,13 @@ internal static RemoveParticipantsResult DeserializeRemoveParticipantsResult(Jso } return new RemoveParticipantsResult(operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoveParticipantsResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoveParticipantsResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInformation.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInformation.Serialization.cs index db970ca3adcee..37ae14878d2bf 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInformation.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInformation.Serialization.cs @@ -48,5 +48,13 @@ internal static ResultInformation DeserializeResultInformation(JsonElement eleme } return new ResultInformation(code, subCode, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResultInformation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResultInformation(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingRequestInternal.Serialization.cs index c418f373e90a1..566f88e99d19f 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingRequestInternal.Serialization.cs @@ -49,5 +49,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/TransferCallToParticipantResult.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/TransferCallToParticipantResult.Serialization.cs index 74722f973c107..ff9881a1e4d59 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/TransferCallToParticipantResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/TransferCallToParticipantResult.Serialization.cs @@ -28,5 +28,13 @@ internal static TransferCallToParticipantResult DeserializeTransferCallToPartici } return new TransferCallToParticipantResult(operationContext); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TransferCallToParticipantResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTransferCallToParticipantResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs index de83cb2ab7b74..2fdbdc2e07e11 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs @@ -34,5 +34,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsRequest.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsRequest.Serialization.cs index 20f35ab65f097..44488b550ea0e 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsRequest.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.Serialization.cs index c55e138262217..654263acaaef3 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/AddChatParticipantsResult.Serialization.cs @@ -38,5 +38,13 @@ internal static AddChatParticipantsResult DeserializeAddChatParticipantsResult(J } return new AddChatParticipantsResult(invalidParticipants ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddChatParticipantsResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddChatParticipantsResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatAttachmentInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatAttachmentInternal.Serialization.cs index 4a6977c4261b7..30a6d77309868 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatAttachmentInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatAttachmentInternal.Serialization.cs @@ -61,5 +61,13 @@ internal static ChatAttachmentInternal DeserializeChatAttachmentInternal(JsonEle } return new ChatAttachmentInternal(id, attachmentType, name, url, previewUrl); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatAttachmentInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatAttachmentInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.Serialization.cs index cb06d506c0bf4..37cd42c4a2b7e 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatError.Serialization.cs @@ -66,5 +66,13 @@ internal static ChatError DeserializeChatError(JsonElement element) } return new ChatError(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatError(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatErrorResponse.Serialization.cs index c81dc4884e883..efc5e24731dc4 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatErrorResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static ChatErrorResponse DeserializeChatErrorResponse(JsonElement eleme } return new ChatErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatErrorResponse(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.Serialization.cs index 54f339ee4d8eb..0da2eb37811cb 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageContentInternal.Serialization.cs @@ -75,5 +75,13 @@ internal static ChatMessageContentInternal DeserializeChatMessageContentInternal } return new ChatMessageContentInternal(message, topic, participants ?? new ChangeTrackingList(), attachments ?? new ChangeTrackingList(), initiatorCommunicationIdentifier); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatMessageContentInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatMessageContentInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageInternal.Serialization.cs index d779967da00d8..523c2f94d609c 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageInternal.Serialization.cs @@ -126,5 +126,13 @@ internal static ChatMessageInternal DeserializeChatMessageInternal(JsonElement e editedOn, metadata ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatMessageInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatMessageInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageReadReceiptInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageReadReceiptInternal.Serialization.cs index efddd9050a7f9..b9d85f4125e44 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageReadReceiptInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageReadReceiptInternal.Serialization.cs @@ -41,5 +41,13 @@ internal static ChatMessageReadReceiptInternal DeserializeChatMessageReadReceipt } return new ChatMessageReadReceiptInternal(senderCommunicationIdentifier, chatMessageId, readOn); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatMessageReadReceiptInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatMessageReadReceiptInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageReadReceiptsCollection.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageReadReceiptsCollection.Serialization.cs index 234cd83d56ac1..d3d938df39424 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageReadReceiptsCollection.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessageReadReceiptsCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static ChatMessageReadReceiptsCollection DeserializeChatMessageReadRece } return new ChatMessageReadReceiptsCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatMessageReadReceiptsCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatMessageReadReceiptsCollection(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessagesCollection.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessagesCollection.Serialization.cs index df61274bde793..947951278931e 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessagesCollection.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatMessagesCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static ChatMessagesCollection DeserializeChatMessagesCollection(JsonEle } return new ChatMessagesCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatMessagesCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatMessagesCollection(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatParticipantInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatParticipantInternal.Serialization.cs index 1506aa48235c5..95205a136d357 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatParticipantInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatParticipantInternal.Serialization.cs @@ -64,5 +64,21 @@ internal static ChatParticipantInternal DeserializeChatParticipantInternal(JsonE } return new ChatParticipantInternal(communicationIdentifier, displayName, shareHistoryTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatParticipantInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatParticipantInternal(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatParticipantsCollection.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatParticipantsCollection.Serialization.cs index 82249f9349054..45b694a430e97 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatParticipantsCollection.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatParticipantsCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static ChatParticipantsCollection DeserializeChatParticipantsCollection } return new ChatParticipantsCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatParticipantsCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatParticipantsCollection(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadItem.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadItem.Serialization.cs index e79f85bb343b1..afe9e414221ef 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadItem.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadItem.Serialization.cs @@ -55,5 +55,13 @@ internal static ChatThreadItem DeserializeChatThreadItem(JsonElement element) } return new ChatThreadItem(id, topic, deletedOn, lastMessageReceivedOn); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatThreadItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatThreadItem(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadPropertiesInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadPropertiesInternal.Serialization.cs index 228b63ef7a5e6..714d1a33c2884 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadPropertiesInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadPropertiesInternal.Serialization.cs @@ -57,5 +57,13 @@ internal static ChatThreadPropertiesInternal DeserializeChatThreadPropertiesInte } return new ChatThreadPropertiesInternal(id, topic, createdOn, createdByCommunicationIdentifier, deletedOn); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatThreadPropertiesInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatThreadPropertiesInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadsItemCollection.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadsItemCollection.Serialization.cs index 788564fb0ac38..e033386160ef8 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadsItemCollection.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/ChatThreadsItemCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static ChatThreadsItemCollection DeserializeChatThreadsItemCollection(J } return new ChatThreadsItemCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChatThreadsItemCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChatThreadsItemCollection(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs index 2729f28c3b9a2..d02364b9baf45 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs @@ -101,5 +101,21 @@ internal static CommunicationIdentifierModel DeserializeCommunicationIdentifierM } return new CommunicationIdentifierModel(kind, rawId, communicationUser, phoneNumber, microsoftTeamsUser); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Chat.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs index 606b9637a4ea9..b10267501d607 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System.Text.Json; +using Azure.Communication.Chat; using Azure.Core; namespace Azure.Communication @@ -37,5 +38,21 @@ internal static CommunicationUserIdentifierModel DeserializeCommunicationUserIde } return new CommunicationUserIdentifierModel(id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationUserIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Chat.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadRequest.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadRequest.Serialization.cs index 5653430c0bbf4..920887b54c761 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadRequest.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.Serialization.cs index 67cc0ce97dcf9..246d53348d663 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/CreateChatThreadResultInternal.Serialization.cs @@ -48,5 +48,13 @@ internal static CreateChatThreadResultInternal DeserializeCreateChatThreadResult } return new CreateChatThreadResultInternal(chatThread, invalidParticipants ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CreateChatThreadResultInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCreateChatThreadResultInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs index 6c1a3938dc4aa..853555d83c865 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs @@ -68,5 +68,21 @@ internal static MicrosoftTeamsUserIdentifierModel DeserializeMicrosoftTeamsUserI } return new MicrosoftTeamsUserIdentifierModel(userId, isAnonymous, cloud); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MicrosoftTeamsUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftTeamsUserIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Chat.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs index dce7185be6bd8..10112a1132344 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System.Text.Json; +using Azure.Communication.Chat; using Azure.Core; namespace Azure.Communication @@ -37,5 +38,21 @@ internal static PhoneNumberIdentifierModel DeserializePhoneNumberIdentifierModel } return new PhoneNumberIdentifierModel(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Chat.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendChatMessageRequest.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendChatMessageRequest.Serialization.cs index 9da86d681f078..47c51f473030b 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendChatMessageRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendChatMessageRequest.Serialization.cs @@ -40,5 +40,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendChatMessageResultInternal.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendChatMessageResultInternal.Serialization.cs index ca2bf69bc2d30..66f581efbcf6d 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendChatMessageResultInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendChatMessageResultInternal.Serialization.cs @@ -28,5 +28,13 @@ internal static SendChatMessageResultInternal DeserializeSendChatMessageResultIn } return new SendChatMessageResultInternal(id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SendChatMessageResultInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSendChatMessageResultInternal(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendReadReceiptRequest.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendReadReceiptRequest.Serialization.cs index fa67a95d50ee0..f2d35acf1efe8 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendReadReceiptRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendReadReceiptRequest.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(ChatMessageId); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendTypingNotificationRequest.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendTypingNotificationRequest.Serialization.cs index 411f2e1e4d47c..45d9f972607ec 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendTypingNotificationRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/SendTypingNotificationRequest.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/UpdateChatMessageRequest.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/UpdateChatMessageRequest.Serialization.cs index 3ac23ce25b39f..b8c98f43203c9 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/UpdateChatMessageRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/UpdateChatMessageRequest.Serialization.cs @@ -33,5 +33,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/UpdateChatThreadRequest.Serialization.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/UpdateChatThreadRequest.Serialization.cs index 70d651af78b3d..9ba09cea6b1fc 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/Models/UpdateChatThreadRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/Models/UpdateChatThreadRequest.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailAddress.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailAddress.Serialization.cs index 2f89d7eecbbb8..b6a6bff2bfc36 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailAddress.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailAddress.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailAttachment.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailAttachment.Serialization.cs index 8c3093663fa94..57cd592d2e142 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailAttachment.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailAttachment.Serialization.cs @@ -23,5 +23,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteBase64StringValue(Content.ToArray(), "D"); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailContent.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailContent.Serialization.cs index d6f39bc3929be..9d14a5a5074bd 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailContent.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailContent.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailMessage.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailMessage.Serialization.cs index 6707d79d89087..8240ea945254f 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailMessage.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailMessage.Serialization.cs @@ -59,5 +59,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailRecipients.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailRecipients.Serialization.cs index bb674c1bfdcee..3fe9038d9a52f 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailRecipients.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailRecipients.Serialization.cs @@ -44,5 +44,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailSendResult.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailSendResult.Serialization.cs index 50cdb0d25f267..60c2b7c2397d4 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailSendResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/EmailSendResult.Serialization.cs @@ -5,9 +5,18 @@ #nullable disable +using System.Text.Json; + namespace Azure.Communication.Email { public partial class EmailSendResult { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EmailSendResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEmailSendResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index 14a2f327c8052..547d1f530480b 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -38,5 +38,13 @@ internal static ErrorAdditionalInfo DeserializeErrorAdditionalInfo(JsonElement e } return new ErrorAdditionalInfo(type, info); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorAdditionalInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorAdditionalInfo(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.Serialization.cs index 423024cf672cc..c5d6cfbec5710 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorDetail.Serialization.cs @@ -71,5 +71,13 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) } return new ErrorDetail(code, message, target, details ?? new ChangeTrackingList(), additionalInfo ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetail(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorResponse.Serialization.cs index 48a3c6380135d..e608082ef8108 100644 --- a/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.Email/src/Generated/Models/ErrorResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.Serialization.cs index c58d65c7bd7b6..a9a829c3df194 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationError.Serialization.cs @@ -66,5 +66,13 @@ internal static CommunicationError DeserializeCommunicationError(JsonElement ele } return new CommunicationError(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationError(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationErrorResponse.Serialization.cs index 567c6921f9fbf..e68d7e8c890b6 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationErrorResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static CommunicationErrorResponse DeserializeCommunicationErrorResponse } return new CommunicationErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationErrorResponse(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentity.Serialization.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentity.Serialization.cs index b3a0cd3862c73..39d947f02f59c 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentity.Serialization.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentity.Serialization.cs @@ -28,5 +28,13 @@ internal static CommunicationIdentity DeserializeCommunicationIdentity(JsonEleme } return new CommunicationIdentity(id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationIdentity(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityAccessToken.Serialization.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityAccessToken.Serialization.cs index 59b47e6536418..ce0ece27765af 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityAccessToken.Serialization.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityAccessToken.Serialization.cs @@ -35,5 +35,13 @@ internal static CommunicationIdentityAccessToken DeserializeCommunicationIdentit } return new CommunicationIdentityAccessToken(token, expiresOn); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationIdentityAccessToken FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationIdentityAccessToken(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityAccessTokenRequest.Serialization.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityAccessTokenRequest.Serialization.cs index 36c882c6e6eb8..0903f74e8fb59 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityAccessTokenRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityAccessTokenRequest.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityCreateRequest.Serialization.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityCreateRequest.Serialization.cs index a55d5497b9289..a33020a0be84b 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityCreateRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationIdentityCreateRequest.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationUserIdentifierAndToken.Serialization.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationUserIdentifierAndToken.Serialization.cs index 2ac5917d866b8..2bbc9634e43cb 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationUserIdentifierAndToken.Serialization.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/CommunicationUserIdentifierAndToken.Serialization.cs @@ -39,5 +39,13 @@ internal static CommunicationUserIdentifierAndToken DeserializeCommunicationUser } return new CommunicationUserIdentifierAndToken(identity, accessToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationUserIdentifierAndToken FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationUserIdentifierAndToken(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/TeamsUserExchangeTokenRequest.Serialization.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/TeamsUserExchangeTokenRequest.Serialization.cs index 8403b65d11332..0ef9e573f185b 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/Models/TeamsUserExchangeTokenRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/Models/TeamsUserExchangeTokenRequest.Serialization.cs @@ -23,5 +23,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(UserId); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ActivePresenter.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ActivePresenter.Serialization.cs index df4e9023c84b7..e0ce439382d81 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ActivePresenter.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ActivePresenter.Serialization.cs @@ -56,5 +56,21 @@ internal static ActivePresenter DeserializeActivePresenter(JsonElement element) } return new ActivePresenter(kind, placeholderImageUri, call); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ActivePresenter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeActivePresenter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/AutoGridInputGroup.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/AutoGridInputGroup.Serialization.cs index 75b30e40e2dea..7aa4c007a5b57 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/AutoGridInputGroup.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/AutoGridInputGroup.Serialization.cs @@ -127,5 +127,21 @@ internal static AutoGridInputGroup DeserializeAutoGridInputGroup(JsonElement ele scalingMode, inputIds); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AutoGridInputGroup FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAutoGridInputGroup(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/AutoGridLayout.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/AutoGridLayout.Serialization.cs index d10f3050f2e4c..702e16ab2a454 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/AutoGridLayout.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/AutoGridLayout.Serialization.cs @@ -119,5 +119,21 @@ internal static AutoGridLayout DeserializeAutoGridLayout(JsonElement element) inputIds, highlightDominantSpeaker); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AutoGridLayout FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAutoGridLayout(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.Serialization.cs index 6f7c6d4eaf579..c939e7ec74c0e 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationError.Serialization.cs @@ -77,5 +77,21 @@ internal static CommunicationError DeserializeCommunicationError(JsonElement ele } return new CommunicationError(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationError(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationErrorResponse.Serialization.cs index 221f51326bc6a..4158f42e13aa4 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationErrorResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationErrorResponse.Serialization.cs @@ -37,5 +37,21 @@ internal static CommunicationErrorResponse DeserializeCommunicationErrorResponse } return new CommunicationErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationErrorResponse(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs index f6377ac9fe701..be7d7c3db2b57 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs @@ -101,5 +101,21 @@ internal static CommunicationIdentifierModel DeserializeCommunicationIdentifierM } return new CommunicationIdentifierModel(kind, rawId, communicationUser, phoneNumber, microsoftTeamsUser); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new MediaComposition.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs index 606b9637a4ea9..d55e5cf3b0544 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System.Text.Json; +using Azure.Communication.MediaComposition; using Azure.Core; namespace Azure.Communication @@ -37,5 +38,21 @@ internal static CommunicationUserIdentifierModel DeserializeCommunicationUserIde } return new CommunicationUserIdentifierModel(id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationUserIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new MediaComposition.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CompositionStreamState.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CompositionStreamState.Serialization.cs index b117f29206c8d..4d50976811930 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CompositionStreamState.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CompositionStreamState.Serialization.cs @@ -44,5 +44,21 @@ internal static CompositionStreamState DeserializeCompositionStreamState(JsonEle } return new CompositionStreamState(status); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CompositionStreamState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCompositionStreamState(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CustomLayout.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CustomLayout.Serialization.cs index bd100cf279c7a..df8debe168973 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CustomLayout.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/CustomLayout.Serialization.cs @@ -131,5 +131,21 @@ internal static CustomLayout DeserializeCustomLayout(JsonElement element) layers ?? new ChangeTrackingDictionary(), inputGroups); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomLayout FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomLayout(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/DominantSpeaker.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/DominantSpeaker.Serialization.cs index 0c76c0a7fed3d..753552f54bf4b 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/DominantSpeaker.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/DominantSpeaker.Serialization.cs @@ -56,5 +56,21 @@ internal static DominantSpeaker DeserializeDominantSpeaker(JsonElement element) } return new DominantSpeaker(kind, placeholderImageUri, call); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DominantSpeaker FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDominantSpeaker(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GridInputGroup.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GridInputGroup.Serialization.cs index 6245db425c52c..23ea6a6959ef1 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GridInputGroup.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GridInputGroup.Serialization.cs @@ -167,5 +167,21 @@ internal static GridInputGroup DeserializeGridInputGroup(JsonElement element) rows, columns); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GridInputGroup FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGridInputGroup(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GridLayout.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GridLayout.Serialization.cs index 6c42f68d584a0..afa796edbe461 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GridLayout.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GridLayout.Serialization.cs @@ -143,5 +143,21 @@ internal static GridLayout DeserializeGridLayout(JsonElement element) columns, inputIds); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GridLayout FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGridLayout(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GroupCallInput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GroupCallInput.Serialization.cs index 7cdc310d3d425..30ea08c85f488 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GroupCallInput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GroupCallInput.Serialization.cs @@ -56,5 +56,21 @@ internal static GroupCallInput DeserializeGroupCallInput(JsonElement element) } return new GroupCallInput(kind, placeholderImageUri, id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GroupCallInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGroupCallInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GroupCallOutput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GroupCallOutput.Serialization.cs index 3f206623c2b5c..a3f920ca43e77 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GroupCallOutput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/GroupCallOutput.Serialization.cs @@ -45,5 +45,21 @@ internal static GroupCallOutput DeserializeGroupCallOutput(JsonElement element) } return new GroupCallOutput(kind, id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GroupCallOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGroupCallOutput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ImageInput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ImageInput.Serialization.cs index 1b64901f2bf7f..4349a091f4720 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ImageInput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ImageInput.Serialization.cs @@ -56,5 +56,21 @@ internal static ImageInput DeserializeImageInput(JsonElement element) } return new ImageInput(kind, placeholderImageUri, uri); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ImageInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/InputGroup.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/InputGroup.Serialization.cs index 2a7ceacce46d9..e6542f56eecd2 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/InputGroup.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/InputGroup.Serialization.cs @@ -62,5 +62,21 @@ internal static InputGroup DeserializeInputGroup(JsonElement element) } return UnknownInputGroup.DeserializeUnknownInputGroup(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InputGroup FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInputGroup(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/InputPosition.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/InputPosition.Serialization.cs index edf8f6f4e11e6..5d5edaa73f15e 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/InputPosition.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/InputPosition.Serialization.cs @@ -45,5 +45,21 @@ internal static InputPosition DeserializeInputPosition(JsonElement element) } return new InputPosition(x, y); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InputPosition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInputPosition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/LayoutLayer.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/LayoutLayer.Serialization.cs index f67fd15d4ef1a..bf0f52dadc671 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/LayoutLayer.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/LayoutLayer.Serialization.cs @@ -52,5 +52,21 @@ internal static LayoutLayer DeserializeLayoutLayer(JsonElement element) } return new LayoutLayer(zIndex, visibility); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LayoutLayer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLayoutLayer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/LayoutResolution.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/LayoutResolution.Serialization.cs index 99552641b0890..cece98c63b5b7 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/LayoutResolution.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/LayoutResolution.Serialization.cs @@ -45,5 +45,21 @@ internal static LayoutResolution DeserializeLayoutResolution(JsonElement element } return new LayoutResolution(width, height); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LayoutResolution FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLayoutResolution(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaComposition.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaComposition.Serialization.cs index 238188c2434e5..3856a2be02f8a 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaComposition.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaComposition.Serialization.cs @@ -124,5 +124,21 @@ internal static MediaComposition DeserializeMediaComposition(JsonElement element } return new MediaComposition(id, layout, inputs ?? new ChangeTrackingDictionary(), outputs ?? new ChangeTrackingDictionary(), streamState); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaComposition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaComposition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaCompositionLayout.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaCompositionLayout.Serialization.cs index c1153ec7d6ac6..f20be4b2c25dc 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaCompositionLayout.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaCompositionLayout.Serialization.cs @@ -54,5 +54,21 @@ internal static MediaCompositionLayout DeserializeMediaCompositionLayout(JsonEle } return UnknownLayout.DeserializeUnknownLayout(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaCompositionLayout FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaCompositionLayout(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaInput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaInput.Serialization.cs index b2789e0cd780c..a60fee79ca461 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaInput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaInput.Serialization.cs @@ -49,5 +49,21 @@ internal static MediaInput DeserializeMediaInput(JsonElement element) } return UnknownMediaInput.DeserializeUnknownMediaInput(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaOutput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaOutput.Serialization.cs index 937f1ac90c15e..0713d8849c68c 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaOutput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MediaOutput.Serialization.cs @@ -39,5 +39,21 @@ internal static MediaOutput DeserializeMediaOutput(JsonElement element) } return UnknownMediaOutput.DeserializeUnknownMediaOutput(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaOutput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs index b5090fee69f80..36b8bc376dce3 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs @@ -68,5 +68,21 @@ internal static MicrosoftTeamsUserIdentifierModel DeserializeMicrosoftTeamsUserI } return new MicrosoftTeamsUserIdentifierModel(userId, isAnonymous, cloud); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MicrosoftTeamsUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftTeamsUserIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new MediaComposition.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ParticipantInput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ParticipantInput.Serialization.cs index f1afa2caa7bdd..fd4a6d4b74827 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ParticipantInput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ParticipantInput.Serialization.cs @@ -64,5 +64,21 @@ internal static ParticipantInput DeserializeParticipantInput(JsonElement element } return new ParticipantInput(kind, placeholderImageUri, id, call); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ParticipantInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParticipantInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs index dce7185be6bd8..720f6d2a04b4a 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System.Text.Json; +using Azure.Communication.MediaComposition; using Azure.Core; namespace Azure.Communication @@ -37,5 +38,21 @@ internal static PhoneNumberIdentifierModel DeserializePhoneNumberIdentifierModel } return new PhoneNumberIdentifierModel(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberIdentifierModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new MediaComposition.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PresentationLayout.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PresentationLayout.Serialization.cs index e78b76df484a4..300bfaef1409c 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PresentationLayout.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PresentationLayout.Serialization.cs @@ -128,5 +128,21 @@ internal static PresentationLayout DeserializePresentationLayout(JsonElement ele audienceIds, audiencePosition); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PresentationLayout FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePresentationLayout(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PresenterLayout.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PresenterLayout.Serialization.cs index 463f438fd0f81..87657c9164a8c 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PresenterLayout.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/PresenterLayout.Serialization.cs @@ -133,5 +133,21 @@ internal static PresenterLayout DeserializePresenterLayout(JsonElement element) supportPosition, supportAspectRatio); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PresenterLayout FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePresenterLayout(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RoomInput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RoomInput.Serialization.cs index 48e60fbd59ca9..2be37c7f19409 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RoomInput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RoomInput.Serialization.cs @@ -56,5 +56,21 @@ internal static RoomInput DeserializeRoomInput(JsonElement element) } return new RoomInput(kind, placeholderImageUri, id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RoomInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRoomInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RoomOutput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RoomOutput.Serialization.cs index 314eabe3c8fdd..d02dc044cbf7f 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RoomOutput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RoomOutput.Serialization.cs @@ -45,5 +45,21 @@ internal static RoomOutput DeserializeRoomOutput(JsonElement element) } return new RoomOutput(kind, id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RoomOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRoomOutput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RtmpInput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RtmpInput.Serialization.cs index faa9360201346..eba3bf1d2166b 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RtmpInput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RtmpInput.Serialization.cs @@ -94,5 +94,21 @@ internal static RtmpInput DeserializeRtmpInput(JsonElement element) streamUrl, mode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RtmpInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRtmpInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RtmpOutput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RtmpOutput.Serialization.cs index 12013fbfa0093..e4db3e2754bef 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RtmpOutput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/RtmpOutput.Serialization.cs @@ -77,5 +77,21 @@ internal static RtmpOutput DeserializeRtmpOutput(JsonElement element) } return new RtmpOutput(kind, streamKey, resolution, streamUrl, mode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RtmpOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRtmpOutput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ScreenShare.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ScreenShare.Serialization.cs index ff5763acd7406..841c8e89baca0 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ScreenShare.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/ScreenShare.Serialization.cs @@ -56,5 +56,21 @@ internal static ScreenShare DeserializeScreenShare(JsonElement element) } return new ScreenShare(kind, placeholderImageUri, call); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ScreenShare FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScreenShare(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/SrtInput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/SrtInput.Serialization.cs index 4e622af168f83..614f6b0d4776b 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/SrtInput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/SrtInput.Serialization.cs @@ -65,5 +65,21 @@ internal static SrtInput DeserializeSrtInput(JsonElement element) } return new SrtInput(kind, placeholderImageUri, resolution, streamUrl); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SrtInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSrtInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/SrtOutput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/SrtOutput.Serialization.cs index 04fc9f883eb13..e1bb9a55e37e3 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/SrtOutput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/SrtOutput.Serialization.cs @@ -54,5 +54,21 @@ internal static SrtOutput DeserializeSrtOutput(JsonElement element) } return new SrtOutput(kind, resolution, streamUrl); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SrtOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSrtOutput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/TeamsMeetingInput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/TeamsMeetingInput.Serialization.cs index d7a60fe3628c2..3dcbfc061f2d4 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/TeamsMeetingInput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/TeamsMeetingInput.Serialization.cs @@ -56,5 +56,21 @@ internal static TeamsMeetingInput DeserializeTeamsMeetingInput(JsonElement eleme } return new TeamsMeetingInput(kind, placeholderImageUri, teamsJoinUrl); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TeamsMeetingInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTeamsMeetingInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/TeamsMeetingOutput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/TeamsMeetingOutput.Serialization.cs index 066656b15ce83..cd4527b0b609c 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/TeamsMeetingOutput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/TeamsMeetingOutput.Serialization.cs @@ -45,5 +45,21 @@ internal static TeamsMeetingOutput DeserializeTeamsMeetingOutput(JsonElement ele } return new TeamsMeetingOutput(kind, teamsJoinUrl); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TeamsMeetingOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTeamsMeetingOutput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownInputGroup.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownInputGroup.Serialization.cs index 36aa43f4dcfdc..0892f879bc1a1 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownInputGroup.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownInputGroup.Serialization.cs @@ -107,5 +107,21 @@ internal static UnknownInputGroup DeserializeUnknownInputGroup(JsonElement eleme layer, scalingMode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownInputGroup FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownInputGroup(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownLayout.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownLayout.Serialization.cs index a17ddb3b13594..52a05901e36cd 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownLayout.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownLayout.Serialization.cs @@ -79,5 +79,21 @@ internal static UnknownLayout DeserializeUnknownLayout(JsonElement element) } return new UnknownLayout(kind, resolution, placeholderImageUri, scalingMode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownLayout FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownLayout(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownMediaInput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownMediaInput.Serialization.cs index 102f91981b4d0..aa99e87b963a5 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownMediaInput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownMediaInput.Serialization.cs @@ -48,5 +48,21 @@ internal static UnknownMediaInput DeserializeUnknownMediaInput(JsonElement eleme } return new UnknownMediaInput(kind, placeholderImageUri); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownMediaInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownMediaInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownMediaOutput.Serialization.cs b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownMediaOutput.Serialization.cs index fc16cb8ef2908..6365e672eaa92 100644 --- a/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownMediaOutput.Serialization.cs +++ b/sdk/communication/Azure.Communication.MediaComposition/src/Generated/Models/UnknownMediaOutput.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownMediaOutput DeserializeUnknownMediaOutput(JsonElement ele } return new UnknownMediaOutput(kind); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownMediaOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownMediaOutput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.Serialization.cs index 8b4c1ad4de30c..912e54f75179b 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationError.Serialization.cs @@ -66,5 +66,13 @@ internal static CommunicationError DeserializeCommunicationError(JsonElement ele } return new CommunicationError(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationError(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationErrorResponse.Serialization.cs index b45a71502bd67..501773acb7911 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationErrorResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static CommunicationErrorResponse DeserializeCommunicationErrorResponse } return new CommunicationErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationErrorResponse(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.Serialization.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.Serialization.cs index 820df38e13980..f24477d16e503 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.Serialization.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationIceServer.Serialization.cs @@ -76,12 +76,29 @@ internal static CommunicationIceServer DeserializeCommunicationIceServer(JsonEle return new CommunicationIceServer(urls, username, credential, routeType); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationIceServer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationIceServer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CommunicationIceServerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CommunicationIceServer model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CommunicationIceServer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfiguration.Serialization.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfiguration.Serialization.cs index 7c62e3aa51c36..04861f38e3777 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfiguration.Serialization.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfiguration.Serialization.cs @@ -60,12 +60,29 @@ internal static CommunicationRelayConfiguration DeserializeCommunicationRelayCon return new CommunicationRelayConfiguration(expiresOn, iceServers); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationRelayConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationRelayConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CommunicationRelayConfigurationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CommunicationRelayConfiguration model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CommunicationRelayConfiguration Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.Serialization.cs b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.Serialization.cs index 7adb2e3153cf6..4a98d8d1d685b 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.NetworkTraversal/src/Generated/Models/CommunicationRelayConfigurationRequest.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.Serialization.cs index 230c25096d450..83f0bfd810804 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/CommunicationError.Serialization.cs @@ -66,5 +66,13 @@ internal static CommunicationError DeserializeCommunicationError(JsonElement ele } return new CommunicationError(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationError(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorDetails.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorDetails.Serialization.cs index 0a1db49850a4d..0afb12bdce655 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorDetails.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorDetails.Serialization.cs @@ -40,5 +40,13 @@ internal static OperatorDetails DeserializeOperatorDetails(JsonElement element) } return new OperatorDetails(name, mobileNetworkCode, mobileCountryCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OperatorDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOperatorDetails(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformation.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformation.Serialization.cs index 7c49e3c3b1f51..2eee64e7805a9 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformation.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformation.Serialization.cs @@ -72,5 +72,13 @@ internal static OperatorInformation DeserializeOperatorInformation(JsonElement e numberType, operatorDetails); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OperatorInformation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOperatorInformation(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationOptions.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationOptions.Serialization.cs index ff52d7cd1b6d5..69e6e9069a465 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationOptions.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationOptions.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationRequest.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationRequest.Serialization.cs index dc30a97f3ab83..b1f4457f21e31 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationRequest.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationResult.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationResult.Serialization.cs index d05a196be1ad3..6ed8d205e409e 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/OperatorInformationResult.Serialization.cs @@ -38,5 +38,13 @@ internal static OperatorInformationResult DeserializeOperatorInformationResult(J } return new OperatorInformationResult(values ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OperatorInformationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOperatorInformationResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberAdministrativeDivision.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberAdministrativeDivision.Serialization.cs index 0c515b40fb6a3..dd187bd36ce27 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberAdministrativeDivision.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberAdministrativeDivision.Serialization.cs @@ -34,5 +34,13 @@ internal static PhoneNumberAdministrativeDivision DeserializePhoneNumberAdminist } return new PhoneNumberAdministrativeDivision(localizedName, abbreviatedName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberAdministrativeDivision FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberAdministrativeDivision(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberAreaCode.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberAreaCode.Serialization.cs index 52bc001528337..64ac03f4c9975 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberAreaCode.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberAreaCode.Serialization.cs @@ -28,5 +28,13 @@ internal static PhoneNumberAreaCode DeserializePhoneNumberAreaCode(JsonElement e } return new PhoneNumberAreaCode(areaCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberAreaCode FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberAreaCode(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCapabilities.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCapabilities.Serialization.cs index f3aa6ee51118b..a591d8995d386 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCapabilities.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCapabilities.Serialization.cs @@ -45,5 +45,21 @@ internal static PhoneNumberCapabilities DeserializePhoneNumberCapabilities(JsonE } return new PhoneNumberCapabilities(calling, sms); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberCapabilities FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberCapabilities(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCapabilitiesRequest.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCapabilitiesRequest.Serialization.cs index 9759fc057032f..c7c72184452d9 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCapabilitiesRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCapabilitiesRequest.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCost.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCost.Serialization.cs index 4534e28bdcad5..d772533b5cf03 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCost.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCost.Serialization.cs @@ -40,5 +40,13 @@ internal static PhoneNumberCost DeserializePhoneNumberCost(JsonElement element) } return new PhoneNumberCost(amount, currencyCode, billingFrequency); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberCost FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberCost(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountry.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountry.Serialization.cs index a487a50837d4b..da7eae2a7291b 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountry.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberCountry.Serialization.cs @@ -34,5 +34,13 @@ internal static PhoneNumberCountry DeserializePhoneNumberCountry(JsonElement ele } return new PhoneNumberCountry(localizedName, countryCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberCountry FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberCountry(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocality.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocality.Serialization.cs index 86074316e9fe1..15c79f5a8f33e 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocality.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberLocality.Serialization.cs @@ -38,5 +38,13 @@ internal static PhoneNumberLocality DeserializePhoneNumberLocality(JsonElement e } return new PhoneNumberLocality(localizedName, administrativeDivision); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberLocality FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberLocality(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberOffering.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberOffering.Serialization.cs index 5c0d506b82ae7..315aa5a00d7b2 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberOffering.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberOffering.Serialization.cs @@ -58,5 +58,13 @@ internal static PhoneNumberOffering DeserializePhoneNumberOffering(JsonElement e } return new PhoneNumberOffering(phoneNumberType, assignmentType, availableCapabilities, cost); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberOffering FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberOffering(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberPurchaseRequest.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberPurchaseRequest.Serialization.cs index 464bd6bee35db..a656a29ce9d14 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberPurchaseRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberPurchaseRequest.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberSearchRequest.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberSearchRequest.Serialization.cs index 49b2891989b64..63df97f9360be 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberSearchRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberSearchRequest.Serialization.cs @@ -33,5 +33,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberSearchResult.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberSearchResult.Serialization.cs index 6ef96158e744f..3c0fa25e7332f 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberSearchResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PhoneNumberSearchResult.Serialization.cs @@ -100,5 +100,13 @@ internal static PhoneNumberSearchResult DeserializePhoneNumberSearchResult(JsonE errorCode, error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberSearchResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberSearchResult(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PurchasedPhoneNumber.Serialization.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PurchasedPhoneNumber.Serialization.cs index 7a8e27da49bc4..7e5e6031fcd8d 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PurchasedPhoneNumber.Serialization.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/Models/PurchasedPhoneNumber.Serialization.cs @@ -79,5 +79,13 @@ internal static PurchasedPhoneNumber DeserializePurchasedPhoneNumber(JsonElement purchaseDate, cost); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PurchasedPhoneNumber FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePurchasedPhoneNumber(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/CommunicationErrorResponse.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/CommunicationErrorResponse.cs index 8579c9f1feea1..7327410797d3d 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/CommunicationErrorResponse.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/CommunicationErrorResponse.cs @@ -15,6 +15,7 @@ namespace Azure.Communication.PhoneNumbers [CodeGenSuppress("CommunicationErrorResponse", typeof(CommunicationError))] [CodeGenSuppress("Error", typeof(CommunicationError))] [CodeGenSuppress("DeserializeCommunicationErrorResponse", typeof(JsonElement))] + [CodeGenSuppress("FromResponse", typeof(Response))] internal partial class CommunicationErrorResponse { } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/OfferingsResponse.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/OfferingsResponse.cs index 414df6d2f6c0a..0681494154e16 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/OfferingsResponse.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/OfferingsResponse.cs @@ -15,6 +15,7 @@ namespace Azure.Communication.PhoneNumbers [CodeGenSuppress("OfferingsResponse")] [CodeGenSuppress("OfferingsResponse", typeof(IReadOnlyList), typeof(string))] [CodeGenSuppress("DeserializeOfferingsResponse", typeof(JsonElement))] + [CodeGenSuppress("FromResponse", typeof(Response))] [CodeGenSuppress("PhoneNumberOfferings", typeof(IReadOnlyList))] [CodeGenSuppress("NextLink", typeof(string))] internal partial class OfferingsResponse diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberAreaCodes.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberAreaCodes.cs index 174e305ea4996..44023024df943 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberAreaCodes.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberAreaCodes.cs @@ -17,6 +17,7 @@ namespace Azure.Communication.PhoneNumbers [CodeGenSuppress("AreaCodes", typeof(IReadOnlyList))] [CodeGenSuppress("NextLink", typeof(string))] [CodeGenSuppress("DeserializePhoneNumberAreaCodes", typeof(JsonElement))] + [CodeGenSuppress("FromResponse", typeof(Response))] internal partial class PhoneNumberAreaCodes { } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberCountries.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberCountries.cs index 6e2f4d3aad7e2..15859cd6e3719 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberCountries.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberCountries.cs @@ -16,6 +16,7 @@ namespace Azure.Communication.PhoneNumbers [CodeGenSuppress("PhoneNumberCountries", typeof(IEnumerable))] [CodeGenSuppress("PhoneNumberCountries", typeof(IReadOnlyList), typeof(string))] [CodeGenSuppress("DeserializePhoneNumberCountries", typeof(JsonElement))] + [CodeGenSuppress("FromResponse", typeof(Response))] [CodeGenSuppress("Countries", typeof(IReadOnlyList))] [CodeGenSuppress("NextLink", typeof(string))] internal partial class PhoneNumberCountries diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberLocalities.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberLocalities.cs index ffe968420eab7..5da98fa586ef3 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberLocalities.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberLocalities.cs @@ -15,6 +15,7 @@ namespace Azure.Communication.PhoneNumbers [CodeGenSuppress("PhoneNumberLocalities")] [CodeGenSuppress("PhoneNumberLocalities", typeof(IReadOnlyList), typeof(string))] [CodeGenSuppress("DeserializePhoneNumberLocalities", typeof(JsonElement))] + [CodeGenSuppress("FromResponse", typeof(Response))] [CodeGenSuppress("PhoneNumberLocalitiesProperty", typeof(PhoneNumberLocality))] [CodeGenSuppress("NextLink", typeof(string))] internal partial class PhoneNumberLocalities diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberOperation.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberOperation.cs index aeb8442d409e2..43aeba6c498d6 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberOperation.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumberOperation.cs @@ -19,7 +19,7 @@ namespace Azure.Communication.PhoneNumbers [CodeGenSuppress("Id")] [CodeGenSuppress("LastActionDateTime")] [CodeGenSuppress("DeserializePhoneNumberOperation", typeof(JsonElement))] - + [CodeGenSuppress("FromResponse", typeof(Response))] internal partial class PhoneNumberOperation { } diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PurchasedPhoneNumbers.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PurchasedPhoneNumbers.cs index 10be4c06a8f30..8f4b0e2a1bab9 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PurchasedPhoneNumbers.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PurchasedPhoneNumbers.cs @@ -15,6 +15,7 @@ namespace Azure.Communication.PhoneNumbers [CodeGenSuppress("PurchasedPhoneNumbers", typeof(IEnumerable))] [CodeGenSuppress("PurchasedPhoneNumbers", typeof(IReadOnlyList), typeof(string))] [CodeGenSuppress("DeserializePurchasedPhoneNumbers", typeof(JsonElement))] + [CodeGenSuppress("FromResponse", typeof(Response))] [CodeGenSuppress("PhoneNumbers", typeof(IReadOnlyList))] [CodeGenSuppress("NextLink", typeof(string))] internal partial class PurchasedPhoneNumbers diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.Serialization.cs index 415436dc7d070..c20e6456eaf4d 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationError.Serialization.cs @@ -66,5 +66,13 @@ internal static CommunicationError DeserializeCommunicationError(JsonElement ele } return new CommunicationError(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationError(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationErrorResponse.Serialization.cs index aaf953143f31e..0c1f2a54949d4 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationErrorResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static CommunicationErrorResponse DeserializeCommunicationErrorResponse } return new CommunicationErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationErrorResponse(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationRoom.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationRoom.Serialization.cs index 16242d4305037..2c9b61ac3e533 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationRoom.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CommunicationRoom.Serialization.cs @@ -53,5 +53,13 @@ internal static CommunicationRoom DeserializeCommunicationRoom(JsonElement eleme } return new CommunicationRoom(id, createdAt, validFrom, validUntil, pstnDialOutEnabled); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationRoom FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationRoom(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CreateRoomRequest.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CreateRoomRequest.Serialization.cs index 8f7ee4e3384a2..03edbc7eb0292 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CreateRoomRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/CreateRoomRequest.Serialization.cs @@ -43,5 +43,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/ParticipantProperties.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/ParticipantProperties.Serialization.cs index 71da1a89db76e..0a2c27750025d 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/ParticipantProperties.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/ParticipantProperties.Serialization.cs @@ -26,5 +26,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/ParticipantsCollection.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/ParticipantsCollection.Serialization.cs index bb90d468a8fd2..5557784e3e1be 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/ParticipantsCollection.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/ParticipantsCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static ParticipantsCollection DeserializeParticipantsCollection(JsonEle } return new ParticipantsCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ParticipantsCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParticipantsCollection(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/RoomParticipant.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/RoomParticipant.Serialization.cs index 21bc1f24b1118..ecd99d45c14ff 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/RoomParticipant.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/RoomParticipant.Serialization.cs @@ -34,5 +34,13 @@ internal static RoomParticipant DeserializeRoomParticipant(JsonElement element) } return new RoomParticipant(rawId, role); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RoomParticipant FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRoomParticipant(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/RoomsCollection.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/RoomsCollection.Serialization.cs index 93d80f79d65ac..fdcb912f07319 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/RoomsCollection.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/RoomsCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static RoomsCollection DeserializeRoomsCollection(JsonElement element) } return new RoomsCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RoomsCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRoomsCollection(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/UpdateParticipantsRequest.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/UpdateParticipantsRequest.Serialization.cs index 98602518407d5..d791941b7834c 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/UpdateParticipantsRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/UpdateParticipantsRequest.Serialization.cs @@ -28,5 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/UpdateRoomRequest.Serialization.cs b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/UpdateRoomRequest.Serialization.cs index ce7071e35af0f..40f63e910a74c 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/UpdateRoomRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Generated/Models/UpdateRoomRequest.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.Serialization.cs index 1db5cf2e36c36..54a8cfe703292 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationError.Serialization.cs @@ -66,5 +66,13 @@ internal static CommunicationError DeserializeCommunicationError(JsonElement ele } return new CommunicationError(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationError(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationErrorResponse.Serialization.cs index c5bfde2eaf1b6..9a3fdc1c38c52 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationErrorResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CommunicationErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static CommunicationErrorResponse DeserializeCommunicationErrorResponse } return new CommunicationErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationErrorResponse(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CompanyInformation.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CompanyInformation.Serialization.cs index c3144138217c7..d501ad72f8bba 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CompanyInformation.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CompanyInformation.Serialization.cs @@ -97,5 +97,21 @@ internal static CompanyInformation DeserializeCompanyInformation(JsonElement ele } return new CompanyInformation(name, url, address, contactInformation, customerCareInformation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CompanyInformation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCompanyInformation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ContactInformation.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ContactInformation.Serialization.cs index fc7690a0a0193..e1fd1ac98aedb 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ContactInformation.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ContactInformation.Serialization.cs @@ -62,5 +62,21 @@ internal static ContactInformation DeserializeContactInformation(JsonElement ele } return new ContactInformation(name, phone, email); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContactInformation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContactInformation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CustomerCareInformation.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CustomerCareInformation.Serialization.cs index 02a2631ffeb2c..3fb36a2eb6790 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CustomerCareInformation.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/CustomerCareInformation.Serialization.cs @@ -51,5 +51,21 @@ internal static CustomerCareInformation DeserializeCustomerCareInformation(JsonE } return new CustomerCareInformation(tollFreeNumber, email); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomerCareInformation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomerCareInformation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageDetails.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageDetails.Serialization.cs index af5fdbd8d0d33..41f80654ca0fa 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageDetails.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageDetails.Serialization.cs @@ -174,5 +174,21 @@ internal static MessageDetails DeserializeMessageDetails(JsonElement element) directionality, useCases ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MessageDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMessageDetails(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExample.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExample.Serialization.cs index 2999cfc3e5a2f..fcc06ed169059 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExample.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExample.Serialization.cs @@ -55,5 +55,21 @@ internal static MessageExample DeserializeMessageExample(JsonElement element) } return new MessageExample(direction, text); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MessageExample FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMessageExample(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExampleSequence.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExampleSequence.Serialization.cs index c2fc167daddda..45dbd29c90c35 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExampleSequence.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/MessageExampleSequence.Serialization.cs @@ -55,5 +55,21 @@ internal static MessageExampleSequence DeserializeMessageExampleSequence(JsonEle } return new MessageExampleSequence(messages ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MessageExampleSequence FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMessageExampleSequence(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ProgramDetails.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ProgramDetails.Serialization.cs index 6203d5b9b5798..b133eecd377cc 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ProgramDetails.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ProgramDetails.Serialization.cs @@ -235,5 +235,21 @@ internal static ProgramDetails DeserializeProgramDetails(JsonElement element) privacyPolicyUrl, expectedDateOfService); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ProgramDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeProgramDetails(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ReviewNote.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ReviewNote.Serialization.cs index fc1fc961b2f66..ba720dc13148c 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ReviewNote.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ReviewNote.Serialization.cs @@ -56,5 +56,21 @@ internal static ReviewNote DeserializeReviewNote(JsonElement element) } return new ReviewNote(message, date); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ReviewNote FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReviewNote(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.Serialization.cs index 4e0f86199004e..34b7564889215 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCode.Serialization.cs @@ -71,5 +71,13 @@ internal static ShortCode DeserializeShortCode(JsonElement element) } return new ShortCode(number, numberType, countryCode, programBriefIds ?? new ChangeTrackingList(), purchaseDate); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ShortCode FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeShortCode(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodeCost.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodeCost.Serialization.cs index 39528ea552f11..06856c8354003 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodeCost.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodeCost.Serialization.cs @@ -53,5 +53,21 @@ internal static ShortCodeCost DeserializeShortCodeCost(JsonElement element) } return new ShortCodeCost(amount, currencyCode, billingFrequency); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ShortCodeCost FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeShortCodeCost(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.Serialization.cs index ed5cdf6958089..fd1fae28afc78 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/ShortCodes.Serialization.cs @@ -44,5 +44,13 @@ internal static ShortCodes DeserializeShortCodes(JsonElement element) } return new ShortCodes(shortCodes ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ShortCodes FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeShortCodes(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/TrafficDetails.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/TrafficDetails.Serialization.cs index f9b2e75f9eab7..b27d3286e34d6 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/TrafficDetails.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/TrafficDetails.Serialization.cs @@ -121,5 +121,21 @@ internal static TrafficDetails DeserializeTrafficDetails(JsonElement element) spikeDetails, estimatedRampUpTimeInDays); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TrafficDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTrafficDetails(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBrief.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBrief.Serialization.cs index db0ae61afc747..e44f7529aa0c9 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBrief.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBrief.Serialization.cs @@ -216,5 +216,21 @@ internal static USProgramBrief DeserializeUSProgramBrief(JsonElement element) messageDetails, trafficDetails); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static USProgramBrief FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUSProgramBrief(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.Serialization.cs index 09d2d4aed5248..9ce8d987e0894 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/USProgramBriefs.Serialization.cs @@ -44,5 +44,13 @@ internal static USProgramBriefs DeserializeUSProgramBriefs(JsonElement element) } return new USProgramBriefs(programBriefs ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static USProgramBriefs FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUSProgramBriefs(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/UseCase.Serialization.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/UseCase.Serialization.cs index 43cbdcddbb96e..94236090e011d 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/UseCase.Serialization.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/Models/UseCase.Serialization.cs @@ -70,5 +70,21 @@ internal static UseCase DeserializeUseCase(JsonElement element) } return new UseCase(contentCategory, examples ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static UseCase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUseCase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SendMessageRequest.Serialization.cs b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SendMessageRequest.Serialization.cs index 3b884eadf480a..b52784ce3a563 100644 --- a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SendMessageRequest.Serialization.cs +++ b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SendMessageRequest.Serialization.cs @@ -33,5 +33,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsRecipient.Serialization.cs b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsRecipient.Serialization.cs index 4cd5548aa2b30..3d32e6aad84b5 100644 --- a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsRecipient.Serialization.cs +++ b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsRecipient.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendOptions.Serialization.cs b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendOptions.Serialization.cs index 00db485723f84..392921368ba0d 100644 --- a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendOptions.Serialization.cs +++ b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendOptions.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendResponse.Serialization.cs b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendResponse.Serialization.cs index ee770c4326b64..8f7b6c7295dbd 100644 --- a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendResponse.Serialization.cs @@ -34,5 +34,13 @@ internal static SmsSendResponse DeserializeSmsSendResponse(JsonElement element) } return new SmsSendResponse(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SmsSendResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSmsSendResponse(document.RootElement); + } } } diff --git a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendResult.Serialization.cs b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendResult.Serialization.cs index 0fa60d1990922..af7cf7a5cfcc2 100644 --- a/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendResult.Serialization.cs +++ b/sdk/communication/Azure.Communication.Sms/src/Generated/Models/SmsSendResult.Serialization.cs @@ -68,5 +68,13 @@ internal static SmsSendResult DeserializeSmsSendResult(JsonElement element) successful, errorMessage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SmsSendResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSmsSendResult(document.RootElement); + } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/KeyVaultSecretReference.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/KeyVaultSecretReference.Serialization.cs index 0c8fd0bd0fc08..e6f99729b6284 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/KeyVaultSecretReference.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/KeyVaultSecretReference.Serialization.cs @@ -133,6 +133,7 @@ public override void Write(Utf8JsonWriter writer, KeyVaultSecretReference model, { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override KeyVaultSecretReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrAccessToken.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrAccessToken.Serialization.cs index 003c8f21fd9d8..f2a0866c70616 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrAccessToken.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrAccessToken.Serialization.cs @@ -28,5 +28,13 @@ internal static AcrAccessToken DeserializeAcrAccessToken(JsonElement element) } return new AcrAccessToken(accessToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcrAccessToken FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcrAccessToken(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrorInfo.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrorInfo.Serialization.cs index 3869ea5a32ed1..e68c9494c297d 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrorInfo.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrorInfo.Serialization.cs @@ -44,5 +44,13 @@ internal static AcrErrorInfo DeserializeAcrErrorInfo(JsonElement element) } return new AcrErrorInfo(code, message, detail); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcrErrorInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcrErrorInfo(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.Serialization.cs index 1e62a29757aec..4b0c209c12e09 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrErrors.Serialization.cs @@ -38,5 +38,13 @@ internal static AcrErrors DeserializeAcrErrors(JsonElement element) } return new AcrErrors(errors ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcrErrors FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcrErrors(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.Serialization.cs index c41a56597c327..a932a314fbc59 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrManifests.Serialization.cs @@ -56,5 +56,13 @@ internal static AcrManifests DeserializeAcrManifests(JsonElement element) } return new AcrManifests(registry, imageName, manifests ?? new ChangeTrackingList(), link); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcrManifests FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcrManifests(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrRefreshToken.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrRefreshToken.Serialization.cs index 6673ef4c3dd11..0f70cbfa31051 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrRefreshToken.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/AcrRefreshToken.Serialization.cs @@ -28,5 +28,13 @@ internal static AcrRefreshToken DeserializeAcrRefreshToken(JsonElement element) } return new AcrRefreshToken(refreshToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcrRefreshToken FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcrRefreshToken(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestPlatform.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestPlatform.Serialization.cs index 8c4a8f0ee81bf..2186e11a26595 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestPlatform.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestPlatform.Serialization.cs @@ -48,5 +48,13 @@ internal static ArtifactManifestPlatform DeserializeArtifactManifestPlatform(Jso } return new ArtifactManifestPlatform(digest, architecture, os); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ArtifactManifestPlatform FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeArtifactManifestPlatform(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestProperties.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestProperties.Serialization.cs index df81039ecd640..0a20492e441ed 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestProperties.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactManifestProperties.Serialization.cs @@ -194,5 +194,13 @@ internal static ArtifactManifestProperties DeserializeArtifactManifestProperties listEnabled, readEnabled); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ArtifactManifestProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeArtifactManifestProperties(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactTagProperties.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactTagProperties.Serialization.cs index 53df3f7c20129..3cd565cb4d172 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactTagProperties.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ArtifactTagProperties.Serialization.cs @@ -133,5 +133,13 @@ internal static ArtifactTagProperties DeserializeArtifactTagProperties(JsonEleme listEnabled, readEnabled); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ArtifactTagProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeArtifactTagProperties(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ContainerRepositoryProperties.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ContainerRepositoryProperties.Serialization.cs index 269d15130f5a4..a8ff473601184 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ContainerRepositoryProperties.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ContainerRepositoryProperties.Serialization.cs @@ -121,5 +121,13 @@ internal static ContainerRepositoryProperties DeserializeContainerRepositoryProp listEnabled, readEnabled); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerRepositoryProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRepositoryProperties(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/FsLayer.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/FsLayer.Serialization.cs index bca71d0e0c180..8fd337a0a36fe 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/FsLayer.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/FsLayer.Serialization.cs @@ -28,5 +28,13 @@ internal static FsLayer DeserializeFsLayer(JsonElement element) } return new FsLayer(blobSum); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FsLayer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFsLayer(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/History.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/History.Serialization.cs index 8f31b3a536a64..006fe093d45ec 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/History.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/History.Serialization.cs @@ -28,5 +28,13 @@ internal static History DeserializeHistory(JsonElement element) } return new History(v1Compatibility); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static History FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHistory(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ImageSignature.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ImageSignature.Serialization.cs index 4f83150f75d2e..e655aaed2f386 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ImageSignature.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ImageSignature.Serialization.cs @@ -44,5 +44,13 @@ internal static ImageSignature DeserializeImageSignature(JsonElement element) } return new ImageSignature(header, signature, @protected); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ImageSignature FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageSignature(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/JWK.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/JWK.Serialization.cs index 48a8d9b99af83..587989a7b14a2 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/JWK.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/JWK.Serialization.cs @@ -38,5 +38,13 @@ internal static JWK DeserializeJWK(JsonElement element) } return new JWK(jwk, alg); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JWK FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJWK(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/JWKHeader.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/JWKHeader.Serialization.cs index 533787419f9de..b8e3e06213784 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/JWKHeader.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/JWKHeader.Serialization.cs @@ -52,5 +52,13 @@ internal static JWKHeader DeserializeJWKHeader(JsonElement element) } return new JWKHeader(crv, kid, kty, x, y); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JWKHeader FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJWKHeader(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Manifest.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Manifest.Serialization.cs index ea7254d20d19d..d179aa7737cbf 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Manifest.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Manifest.Serialization.cs @@ -32,5 +32,13 @@ internal static Manifest DeserializeManifest(JsonElement element) } return new Manifest(schemaVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Manifest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManifest(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesBase.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesBase.Serialization.cs index ee8962c693c3d..2393bbad4442b 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesBase.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestAttributesBase.Serialization.cs @@ -168,5 +168,13 @@ internal static ManifestAttributesBase DeserializeManifestAttributesBase(JsonEle listEnabled, readEnabled); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ManifestAttributesBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManifestAttributesBase(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.Serialization.cs index 07459747dbe91..e34aa2b66f9e3 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestList.Serialization.cs @@ -54,5 +54,13 @@ internal static ManifestList DeserializeManifestList(JsonElement element) } return new ManifestList(schemaVersion, mediaType, manifests ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ManifestList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManifestList(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestListAttributes.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestListAttributes.Serialization.cs index cb45c56dee99f..9c3b54a372254 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestListAttributes.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestListAttributes.Serialization.cs @@ -54,5 +54,13 @@ internal static ManifestListAttributes DeserializeManifestListAttributes(JsonEle } return new ManifestListAttributes(mediaType, size, digest, platform); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ManifestListAttributes FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManifestListAttributes(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.Serialization.cs index 26e231258fe63..4088ecfd203c8 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWrapper.Serialization.cs @@ -165,5 +165,13 @@ internal static ManifestWrapper DeserializeManifestWrapper(JsonElement element) history ?? new ChangeTrackingList(), signatures ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ManifestWrapper FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManifestWrapper(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWriteableProperties.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWriteableProperties.Serialization.cs index e9b2344d249f4..91e3128a61e26 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWriteableProperties.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/ManifestWriteableProperties.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.Serialization.cs index d94a3fd6bde58..4e20c4482dbbe 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OCIIndex.Serialization.cs @@ -59,5 +59,13 @@ internal static OCIIndex DeserializeOCIIndex(JsonElement element) } return new OCIIndex(schemaVersion, manifests ?? new ChangeTrackingList(), annotations); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OCIIndex FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOCIIndex(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciAnnotations.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciAnnotations.Serialization.cs index 32e516ae8f409..f7bb42ac804d9 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciAnnotations.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciAnnotations.Serialization.cs @@ -201,5 +201,21 @@ internal static OciAnnotations DeserializeOciAnnotations(JsonElement element) orgOpencontainersImageDescription, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OciAnnotations FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOciAnnotations(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciDescriptor.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciDescriptor.Serialization.cs index 58c998beb5e05..ad6a685d960f8 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciDescriptor.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciDescriptor.Serialization.cs @@ -128,5 +128,21 @@ internal static OciDescriptor DeserializeOciDescriptor(JsonElement element) } return new OciDescriptor(mediaType, size, digest, urls ?? new ChangeTrackingList(), annotations); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OciDescriptor FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOciDescriptor(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciImageManifest.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciImageManifest.Serialization.cs index 1ee396e5a51c2..aa522e29a9b6e 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciImageManifest.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/OciImageManifest.Serialization.cs @@ -105,12 +105,29 @@ internal static OciImageManifest DeserializeOciImageManifest(JsonElement element return new OciImageManifest(config, layers ?? new ChangeTrackingList(), annotations, schemaVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OciImageManifest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOciImageManifest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OciImageManifestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OciImageManifest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OciImageManifest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.Serialization.cs index 0312151e3dac6..10e8af2327570 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Platform.Serialization.cs @@ -83,5 +83,13 @@ internal static Platform DeserializePlatform(JsonElement element) variant, features ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Platform FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePlatform(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.Serialization.cs index eb3ebba6bcac0..22659b070fdea 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/Repositories.Serialization.cs @@ -44,5 +44,13 @@ internal static Repositories DeserializeRepositories(JsonElement element) } return new Repositories(repositories ?? new ChangeTrackingList(), link); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Repositories FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRepositories(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/RepositoryWriteableProperties.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/RepositoryWriteableProperties.Serialization.cs index 402cb729a7a52..e20b594565804 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/RepositoryWriteableProperties.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/RepositoryWriteableProperties.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagAttributesBase.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagAttributesBase.Serialization.cs index 9f253167daea4..b138499223f12 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagAttributesBase.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagAttributesBase.Serialization.cs @@ -107,5 +107,13 @@ internal static TagAttributesBase DeserializeTagAttributesBase(JsonElement eleme listEnabled, readEnabled); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TagAttributesBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTagAttributesBase(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagList.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagList.Serialization.cs index cc5808f1336d3..357836a5114e6 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagList.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagList.Serialization.cs @@ -52,5 +52,13 @@ internal static TagList DeserializeTagList(JsonElement element) } return new TagList(registry, imageName, tags, link); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TagList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTagList(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagWriteableProperties.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagWriteableProperties.Serialization.cs index 8596a8793138b..ec06d114aa0a3 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagWriteableProperties.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/TagWriteableProperties.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.Serialization.cs index 6eb0d9555ab1b..346a4d4e89c13 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V1Manifest.Serialization.cs @@ -103,5 +103,13 @@ internal static V1Manifest DeserializeV1Manifest(JsonElement element) history ?? new ChangeTrackingList(), signatures ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new V1Manifest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeV1Manifest(document.RootElement); + } } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.Serialization.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.Serialization.cs index e035589eab907..16a1e00f62c3d 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.Serialization.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/Models/V2Manifest.Serialization.cs @@ -64,5 +64,13 @@ internal static V2Manifest DeserializeV2Manifest(JsonElement element) } return new V2Manifest(schemaVersion, mediaType, config, layers ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new V2Manifest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeV2Manifest(document.RootElement); + } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetDataElement.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetDataElement.Serialization.cs index 6f01456b29108..9f8e259943c1b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetDataElement.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetDataElement.Serialization.cs @@ -147,6 +147,7 @@ public override void Write(Utf8JsonWriter writer, DatasetDataElement model, Json { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override DatasetDataElement Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetSchemaDataElement.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetSchemaDataElement.Serialization.cs index 4b873c3f108f4..e2aaf3df0026f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetSchemaDataElement.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetSchemaDataElement.Serialization.cs @@ -141,6 +141,7 @@ public override void Write(Utf8JsonWriter writer, DatasetSchemaDataElement model { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override DatasetSchemaDataElement Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.Serialization.cs index d40f34413ce86..467478843368d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.Serialization.cs @@ -127,6 +127,7 @@ public override void Write(Utf8JsonWriter writer, Office365TableOutputColumn mod { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override Office365TableOutputColumn Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/RelationshipCollection.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/RelationshipCollection.Serialization.cs deleted file mode 100644 index 1834c1e6a13d9..0000000000000 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/RelationshipCollection.Serialization.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Text.Json; - -namespace Azure.DigitalTwins.Core -{ - internal partial class RelationshipCollection - { - // The method is overridden so that autorest does not create the function in the generated code. - internal static void DeserializeRelationshipCollection(JsonElement element) { _ = element; } - } -} diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/RelationshipCollection.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/RelationshipCollection.cs index d93c70dff145c..56ac12fda7382 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/RelationshipCollection.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/RelationshipCollection.cs @@ -1,11 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Text.Json; using Azure.Core; namespace Azure.DigitalTwins.Core { [CodeGenModel("RelationshipCollection")] + [CodeGenSuppress("DeserializeRelationshipCollection", typeof(JsonElement))] + [CodeGenSuppress("FromResponse", typeof(Response))] internal partial class RelationshipCollection { } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsEventRoute.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsEventRoute.Serialization.cs index b389b36b4e188..053147ce9101b 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsEventRoute.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsEventRoute.Serialization.cs @@ -51,5 +51,21 @@ internal static DigitalTwinsEventRoute DeserializeDigitalTwinsEventRoute(JsonEle } return new DigitalTwinsEventRoute(id, endpointName, filter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DigitalTwinsEventRoute FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDigitalTwinsEventRoute(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsEventRouteCollection.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsEventRouteCollection.Serialization.cs index dd7c65484b7ac..5f28c55d50a24 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsEventRouteCollection.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsEventRouteCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static DigitalTwinsEventRouteCollection DeserializeDigitalTwinsEventRou } return new DigitalTwinsEventRouteCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DigitalTwinsEventRouteCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDigitalTwinsEventRouteCollection(document.RootElement); + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsModelData.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsModelData.Serialization.cs index 7e4de7a68b0a8..18b20216f4ba8 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsModelData.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/DigitalTwinsModelData.Serialization.cs @@ -5,9 +5,18 @@ #nullable disable +using System.Text.Json; + namespace Azure.DigitalTwins.Core { public partial class DigitalTwinsModelData { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DigitalTwinsModelData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDigitalTwinsModelData(document.RootElement); + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorInformation.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorInformation.Serialization.cs index 119ca01cbda1d..f869ac149ef81 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorInformation.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorInformation.Serialization.cs @@ -72,5 +72,21 @@ internal static ErrorInformation DeserializeErrorInformation(JsonElement element } return new ErrorInformation(code, message, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorInformation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorInformation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorResponse.Serialization.cs index 3e78ceb3c6bae..59f6a8139492a 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ImportJob.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ImportJob.Serialization.cs index 60027bb32106d..6e16da313a164 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ImportJob.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ImportJob.Serialization.cs @@ -126,5 +126,21 @@ internal static ImportJob DeserializeImportJob(JsonElement element) purgeDateTime, error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ImportJob FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImportJob(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ImportJobCollection.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ImportJobCollection.Serialization.cs index 44442dabc8bba..c749baa16cfdc 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ImportJobCollection.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/ImportJobCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static ImportJobCollection DeserializeImportJobCollection(JsonElement e } return new ImportJobCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ImportJobCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImportJobCollection(document.RootElement); + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/IncomingRelationship.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/IncomingRelationship.Serialization.cs index 929b2228446e9..d000d1ea91fda 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/IncomingRelationship.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/IncomingRelationship.Serialization.cs @@ -46,5 +46,13 @@ internal static IncomingRelationship DeserializeIncomingRelationship(JsonElement } return new IncomingRelationship(relationshipId, sourceId, relationshipName, relationshipLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IncomingRelationship FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIncomingRelationship(document.RootElement); + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/IncomingRelationshipCollection.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/IncomingRelationshipCollection.Serialization.cs index 6afb47f5f78e6..7ee658731bfe7 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/IncomingRelationshipCollection.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/IncomingRelationshipCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static IncomingRelationshipCollection DeserializeIncomingRelationshipCo } return new IncomingRelationshipCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IncomingRelationshipCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIncomingRelationshipCollection(document.RootElement); + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/InnerError.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/InnerError.Serialization.cs index 93769f727bfce..d998c4e6103d6 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/InnerError.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/InnerError.Serialization.cs @@ -55,5 +55,21 @@ internal static InnerError DeserializeInnerError(JsonElement element) } return new InnerError(code, innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InnerError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInnerError(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/PagedDigitalTwinsModelDataCollection.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/PagedDigitalTwinsModelDataCollection.Serialization.cs index 4a3aaa282b90a..c6b67e1c972c9 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/PagedDigitalTwinsModelDataCollection.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/PagedDigitalTwinsModelDataCollection.Serialization.cs @@ -40,5 +40,13 @@ internal static PagedDigitalTwinsModelDataCollection DeserializePagedDigitalTwin } return new PagedDigitalTwinsModelDataCollection(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PagedDigitalTwinsModelDataCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePagedDigitalTwinsModelDataCollection(document.RootElement); + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/QueryResult.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/QueryResult.Serialization.cs index f5f91fd2a4805..6a41f1e40c045 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/QueryResult.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/QueryResult.Serialization.cs @@ -5,9 +5,18 @@ #nullable disable +using System.Text.Json; + namespace Azure.DigitalTwins.Core { internal partial class QueryResult { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QueryResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQueryResult(document.RootElement); + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/QuerySpecification.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/QuerySpecification.Serialization.cs index c622658742bed..8643a7dee8d3a 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/QuerySpecification.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/QuerySpecification.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/RelationshipCollection.Serialization.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/RelationshipCollection.Serialization.cs index 23687631ba50f..e8f1d21d7dfb2 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/RelationshipCollection.Serialization.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/Models/RelationshipCollection.Serialization.cs @@ -5,6 +5,9 @@ #nullable disable +using System.Collections.Generic; +using System.Text.Json; + namespace Azure.DigitalTwins.Core { internal partial class RelationshipCollection diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageButtonContent.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageButtonContent.Serialization.cs index 70668f41e288a..ff78f7f6806f7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageButtonContent.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageButtonContent.Serialization.cs @@ -34,5 +34,13 @@ internal static AcsAdvancedMessageButtonContent DeserializeAcsAdvancedMessageBut } return new AcsAdvancedMessageButtonContent(text, payload); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsAdvancedMessageButtonContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageButtonContent(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageChannelEventError.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageChannelEventError.Serialization.cs index 754be5a692f47..7161519e86d61 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageChannelEventError.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageChannelEventError.Serialization.cs @@ -34,5 +34,13 @@ internal static AcsAdvancedMessageChannelEventError DeserializeAcsAdvancedMessag } return new AcsAdvancedMessageChannelEventError(channelCode, channelMessage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsAdvancedMessageChannelEventError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageChannelEventError(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageContext.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageContext.Serialization.cs index 66d5fbb3651e9..0cbad4e1ad1ea 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageContext.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageContext.Serialization.cs @@ -34,5 +34,13 @@ internal static AcsAdvancedMessageContext DeserializeAcsAdvancedMessageContext(J } return new AcsAdvancedMessageContext(@from, id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsAdvancedMessageContext FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageContext(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageDeliveryStatusUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageDeliveryStatusUpdatedEventData.Serialization.cs index 20aa1a6d9e3de..fbf118dc1bafb 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageDeliveryStatusUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageDeliveryStatusUpdatedEventData.Serialization.cs @@ -91,12 +91,21 @@ internal static AcsAdvancedMessageDeliveryStatusUpdatedEventData DeserializeAcsA channelType); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsAdvancedMessageDeliveryStatusUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageDeliveryStatusUpdatedEventData(document.RootElement); + } + internal partial class AcsAdvancedMessageDeliveryStatusUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsAdvancedMessageDeliveryStatusUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsAdvancedMessageDeliveryStatusUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageEventData.Serialization.cs index 9b18c11bf99bc..ccbf2627dd4d6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageEventData.Serialization.cs @@ -58,12 +58,21 @@ internal static AcsAdvancedMessageEventData DeserializeAcsAdvancedMessageEventDa return new AcsAdvancedMessageEventData(@from, to, receivedTimestamp, error); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsAdvancedMessageEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageEventData(document.RootElement); + } + internal partial class AcsAdvancedMessageEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsAdvancedMessageEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsAdvancedMessageEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveButtonReplyContent.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveButtonReplyContent.Serialization.cs index 9b1fd7d5904f6..97f549fa75afe 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveButtonReplyContent.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveButtonReplyContent.Serialization.cs @@ -34,5 +34,13 @@ internal static AcsAdvancedMessageInteractiveButtonReplyContent DeserializeAcsAd } return new AcsAdvancedMessageInteractiveButtonReplyContent(id, title); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsAdvancedMessageInteractiveButtonReplyContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageInteractiveButtonReplyContent(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveContent.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveContent.Serialization.cs index 9639345b943ea..c8804280965c4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveContent.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveContent.Serialization.cs @@ -52,5 +52,13 @@ internal static AcsAdvancedMessageInteractiveContent DeserializeAcsAdvancedMessa } return new AcsAdvancedMessageInteractiveContent(type, buttonReply, listReply); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsAdvancedMessageInteractiveContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageInteractiveContent(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveListReplyContent.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveListReplyContent.Serialization.cs index 38ade82e689cf..5d1787745cbf8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveListReplyContent.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageInteractiveListReplyContent.Serialization.cs @@ -40,5 +40,13 @@ internal static AcsAdvancedMessageInteractiveListReplyContent DeserializeAcsAdva } return new AcsAdvancedMessageInteractiveListReplyContent(id, title, description); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsAdvancedMessageInteractiveListReplyContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageInteractiveListReplyContent(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageMediaContent.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageMediaContent.Serialization.cs index 0e1c0d2b0ca38..9ad9c963a8a62 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageMediaContent.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageMediaContent.Serialization.cs @@ -46,5 +46,13 @@ internal static AcsAdvancedMessageMediaContent DeserializeAcsAdvancedMessageMedi } return new AcsAdvancedMessageMediaContent(mimeType, id, fileName, caption); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsAdvancedMessageMediaContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageMediaContent(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageReceivedEventData.Serialization.cs index e4426cd8ec402..db4c9d9de699c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsAdvancedMessageReceivedEventData.Serialization.cs @@ -124,12 +124,21 @@ internal static AcsAdvancedMessageReceivedEventData DeserializeAcsAdvancedMessag interactive); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsAdvancedMessageReceivedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsAdvancedMessageReceivedEventData(document.RootElement); + } + internal partial class AcsAdvancedMessageReceivedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsAdvancedMessageReceivedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsAdvancedMessageReceivedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventBaseProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventBaseProperties.Serialization.cs index cd8b52861bd9b..3229348b3a9c5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventBaseProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventBaseProperties.Serialization.cs @@ -44,5 +44,13 @@ internal static AcsChatEventBaseProperties DeserializeAcsChatEventBaseProperties } return new AcsChatEventBaseProperties(recipientCommunicationIdentifier, transactionId, threadId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsChatEventBaseProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatEventBaseProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventInThreadBaseProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventInThreadBaseProperties.Serialization.cs index 337e10786d1a7..9e46b32b50a01 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventInThreadBaseProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatEventInThreadBaseProperties.Serialization.cs @@ -34,5 +34,13 @@ internal static AcsChatEventInThreadBaseProperties DeserializeAcsChatEventInThre } return new AcsChatEventInThreadBaseProperties(transactionId, threadId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsChatEventInThreadBaseProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatEventInThreadBaseProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedEventData.Serialization.cs index a083143b86e8b..0609bd625cbc6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedEventData.Serialization.cs @@ -116,12 +116,21 @@ internal static AcsChatMessageDeletedEventData DeserializeAcsChatMessageDeletedE deleteTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatMessageDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatMessageDeletedEventData(document.RootElement); + } + internal partial class AcsChatMessageDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatMessageDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatMessageDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedInThreadEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedInThreadEventData.Serialization.cs index 91470843499fa..1a22075b66d5b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedInThreadEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageDeletedInThreadEventData.Serialization.cs @@ -105,12 +105,21 @@ internal static AcsChatMessageDeletedInThreadEventData DeserializeAcsChatMessage deleteTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatMessageDeletedInThreadEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatMessageDeletedInThreadEventData(document.RootElement); + } + internal partial class AcsChatMessageDeletedInThreadEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatMessageDeletedInThreadEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatMessageDeletedInThreadEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEditedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEditedEventData.Serialization.cs index 9c5b88eac4b4e..cce92e385238a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEditedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEditedEventData.Serialization.cs @@ -140,12 +140,21 @@ internal static AcsChatMessageEditedEventData DeserializeAcsChatMessageEditedEve editTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatMessageEditedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatMessageEditedEventData(document.RootElement); + } + internal partial class AcsChatMessageEditedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatMessageEditedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatMessageEditedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEditedInThreadEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEditedInThreadEventData.Serialization.cs index 8d42042220ace..0fa6c45fed085 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEditedInThreadEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEditedInThreadEventData.Serialization.cs @@ -129,12 +129,21 @@ internal static AcsChatMessageEditedInThreadEventData DeserializeAcsChatMessageE editTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatMessageEditedInThreadEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatMessageEditedInThreadEventData(document.RootElement); + } + internal partial class AcsChatMessageEditedInThreadEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatMessageEditedInThreadEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatMessageEditedInThreadEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEventBaseProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEventBaseProperties.Serialization.cs index 87814b0bf1f84..9ad669c75c102 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEventBaseProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEventBaseProperties.Serialization.cs @@ -102,5 +102,13 @@ internal static AcsChatMessageEventBaseProperties DeserializeAcsChatMessageEvent type, version); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatMessageEventBaseProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatMessageEventBaseProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEventInThreadBaseProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEventInThreadBaseProperties.Serialization.cs index 891b0f7c1677e..f2fa70248c445 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEventInThreadBaseProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageEventInThreadBaseProperties.Serialization.cs @@ -91,5 +91,13 @@ internal static AcsChatMessageEventInThreadBaseProperties DeserializeAcsChatMess type, version); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatMessageEventInThreadBaseProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatMessageEventInThreadBaseProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageReceivedEventData.Serialization.cs index 92938ad56e39f..c484f7a0adf98 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageReceivedEventData.Serialization.cs @@ -129,12 +129,21 @@ internal static AcsChatMessageReceivedEventData DeserializeAcsChatMessageReceive metadata ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatMessageReceivedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatMessageReceivedEventData(document.RootElement); + } + internal partial class AcsChatMessageReceivedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatMessageReceivedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatMessageReceivedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageReceivedInThreadEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageReceivedInThreadEventData.Serialization.cs index a59c216d6bfe1..8a8ec8a7aebc2 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageReceivedInThreadEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatMessageReceivedInThreadEventData.Serialization.cs @@ -118,12 +118,21 @@ internal static AcsChatMessageReceivedInThreadEventData DeserializeAcsChatMessag metadata ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatMessageReceivedInThreadEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatMessageReceivedInThreadEventData(document.RootElement); + } + internal partial class AcsChatMessageReceivedInThreadEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatMessageReceivedInThreadEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatMessageReceivedInThreadEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantAddedToThreadEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantAddedToThreadEventData.Serialization.cs index 237f9d99515b3..4c840be7097c3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantAddedToThreadEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantAddedToThreadEventData.Serialization.cs @@ -84,12 +84,21 @@ internal static AcsChatParticipantAddedToThreadEventData DeserializeAcsChatParti version); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatParticipantAddedToThreadEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatParticipantAddedToThreadEventData(document.RootElement); + } + internal partial class AcsChatParticipantAddedToThreadEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatParticipantAddedToThreadEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatParticipantAddedToThreadEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantAddedToThreadWithUserEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantAddedToThreadWithUserEventData.Serialization.cs index 924575d2884b1..225cf9003204d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantAddedToThreadWithUserEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantAddedToThreadWithUserEventData.Serialization.cs @@ -106,12 +106,21 @@ internal static AcsChatParticipantAddedToThreadWithUserEventData DeserializeAcsC participantAdded); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatParticipantAddedToThreadWithUserEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatParticipantAddedToThreadWithUserEventData(document.RootElement); + } + internal partial class AcsChatParticipantAddedToThreadWithUserEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatParticipantAddedToThreadWithUserEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatParticipantAddedToThreadWithUserEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantRemovedFromThreadEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantRemovedFromThreadEventData.Serialization.cs index 88fe246c8f5ff..700836dae65db 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantRemovedFromThreadEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantRemovedFromThreadEventData.Serialization.cs @@ -84,12 +84,21 @@ internal static AcsChatParticipantRemovedFromThreadEventData DeserializeAcsChatP version); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatParticipantRemovedFromThreadEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatParticipantRemovedFromThreadEventData(document.RootElement); + } + internal partial class AcsChatParticipantRemovedFromThreadEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatParticipantRemovedFromThreadEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatParticipantRemovedFromThreadEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantRemovedFromThreadWithUserEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantRemovedFromThreadWithUserEventData.Serialization.cs index bc798d3ccf17b..99f36e327a8f5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantRemovedFromThreadWithUserEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatParticipantRemovedFromThreadWithUserEventData.Serialization.cs @@ -106,12 +106,21 @@ internal static AcsChatParticipantRemovedFromThreadWithUserEventData Deserialize participantRemoved); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatParticipantRemovedFromThreadWithUserEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatParticipantRemovedFromThreadWithUserEventData(document.RootElement); + } + internal partial class AcsChatParticipantRemovedFromThreadWithUserEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatParticipantRemovedFromThreadWithUserEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatParticipantRemovedFromThreadWithUserEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.Serialization.cs index 5bc3e60ddd239..9cc9b3e9d6c2e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedEventData.Serialization.cs @@ -129,12 +129,21 @@ internal static AcsChatThreadCreatedEventData DeserializeAcsChatThreadCreatedEve participants ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatThreadCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatThreadCreatedEventData(document.RootElement); + } + internal partial class AcsChatThreadCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatThreadCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatThreadCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.Serialization.cs index a858bbcafcccd..98e020b36e581 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadCreatedWithUserEventData.Serialization.cs @@ -140,12 +140,21 @@ internal static AcsChatThreadCreatedWithUserEventData DeserializeAcsChatThreadCr participants ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatThreadCreatedWithUserEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatThreadCreatedWithUserEventData(document.RootElement); + } + internal partial class AcsChatThreadCreatedWithUserEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatThreadCreatedWithUserEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatThreadCreatedWithUserEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadDeletedEventData.Serialization.cs index 1b021aa15eb35..9e2262cd62911 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadDeletedEventData.Serialization.cs @@ -84,12 +84,21 @@ internal static AcsChatThreadDeletedEventData DeserializeAcsChatThreadDeletedEve deleteTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatThreadDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatThreadDeletedEventData(document.RootElement); + } + internal partial class AcsChatThreadDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatThreadDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatThreadDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadEventBaseProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadEventBaseProperties.Serialization.cs index eb22d077e813c..41f0e40e6101f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadEventBaseProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadEventBaseProperties.Serialization.cs @@ -65,5 +65,13 @@ internal static AcsChatThreadEventBaseProperties DeserializeAcsChatThreadEventBa } return new AcsChatThreadEventBaseProperties(recipientCommunicationIdentifier, transactionId, threadId, createTime, version); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatThreadEventBaseProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatThreadEventBaseProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadEventInThreadBaseProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadEventInThreadBaseProperties.Serialization.cs index a5bbf943b3529..4627cf2e9e65b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadEventInThreadBaseProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadEventInThreadBaseProperties.Serialization.cs @@ -55,5 +55,13 @@ internal static AcsChatThreadEventInThreadBaseProperties DeserializeAcsChatThrea } return new AcsChatThreadEventInThreadBaseProperties(transactionId, threadId, createTime, version); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatThreadEventInThreadBaseProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatThreadEventInThreadBaseProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadParticipantProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadParticipantProperties.Serialization.cs index a3ded06297c9a..146cdaea1038c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadParticipantProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadParticipantProperties.Serialization.cs @@ -54,5 +54,13 @@ internal static AcsChatThreadParticipantProperties DeserializeAcsChatThreadParti } return new AcsChatThreadParticipantProperties(displayName, participantCommunicationIdentifier, metadata ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsChatThreadParticipantProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatThreadParticipantProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadPropertiesUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadPropertiesUpdatedEventData.Serialization.cs index effc15b27cdc2..64d9da4a0d189 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadPropertiesUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadPropertiesUpdatedEventData.Serialization.cs @@ -124,12 +124,21 @@ internal static AcsChatThreadPropertiesUpdatedEventData DeserializeAcsChatThread metadata ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatThreadPropertiesUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatThreadPropertiesUpdatedEventData(document.RootElement); + } + internal partial class AcsChatThreadPropertiesUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatThreadPropertiesUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatThreadPropertiesUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadPropertiesUpdatedPerUserEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadPropertiesUpdatedPerUserEventData.Serialization.cs index 1fb0b4a032fe1..67a4a297b6b57 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadPropertiesUpdatedPerUserEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadPropertiesUpdatedPerUserEventData.Serialization.cs @@ -135,12 +135,21 @@ internal static AcsChatThreadPropertiesUpdatedPerUserEventData DeserializeAcsCha properties ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatThreadPropertiesUpdatedPerUserEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatThreadPropertiesUpdatedPerUserEventData(document.RootElement); + } + internal partial class AcsChatThreadPropertiesUpdatedPerUserEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatThreadPropertiesUpdatedPerUserEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatThreadPropertiesUpdatedPerUserEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadWithUserDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadWithUserDeletedEventData.Serialization.cs index 3315fef93b7d8..951d2601bffc3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadWithUserDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsChatThreadWithUserDeletedEventData.Serialization.cs @@ -95,12 +95,21 @@ internal static AcsChatThreadWithUserDeletedEventData DeserializeAcsChatThreadWi deleteTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsChatThreadWithUserDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsChatThreadWithUserDeletedEventData(document.RootElement); + } + internal partial class AcsChatThreadWithUserDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsChatThreadWithUserDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsChatThreadWithUserDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailDeliveryReportReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailDeliveryReportReceivedEventData.Serialization.cs index aa0eaadbb4efc..2ca8d3672fd41 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailDeliveryReportReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailDeliveryReportReceivedEventData.Serialization.cs @@ -80,12 +80,21 @@ internal static AcsEmailDeliveryReportReceivedEventData DeserializeAcsEmailDeliv deliveryAttemptTimeStamp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsEmailDeliveryReportReceivedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsEmailDeliveryReportReceivedEventData(document.RootElement); + } + internal partial class AcsEmailDeliveryReportReceivedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsEmailDeliveryReportReceivedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsEmailDeliveryReportReceivedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailDeliveryReportStatusDetails.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailDeliveryReportStatusDetails.Serialization.cs index 1970bf85326a5..a16c00ba31d71 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailDeliveryReportStatusDetails.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailDeliveryReportStatusDetails.Serialization.cs @@ -28,5 +28,13 @@ internal static AcsEmailDeliveryReportStatusDetails DeserializeAcsEmailDeliveryR } return new AcsEmailDeliveryReportStatusDetails(statusMessage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsEmailDeliveryReportStatusDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsEmailDeliveryReportStatusDetails(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailEngagementTrackingReportReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailEngagementTrackingReportReceivedEventData.Serialization.cs index 4eb68adbd9677..0b948cc83358e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailEngagementTrackingReportReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsEmailEngagementTrackingReportReceivedEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static AcsEmailEngagementTrackingReportReceivedEventData DeserializeAcs engagementType); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsEmailEngagementTrackingReportReceivedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsEmailEngagementTrackingReportReceivedEventData(document.RootElement); + } + internal partial class AcsEmailEngagementTrackingReportReceivedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsEmailEngagementTrackingReportReceivedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsEmailEngagementTrackingReportReceivedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsIncomingCallCustomContext.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsIncomingCallCustomContext.Serialization.cs index 69308befc5ebb..eb3444fc1fa07 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsIncomingCallCustomContext.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsIncomingCallCustomContext.Serialization.cs @@ -53,5 +53,13 @@ internal static AcsIncomingCallCustomContext DeserializeAcsIncomingCallCustomCon } return new AcsIncomingCallCustomContext(sipHeaders ?? new ChangeTrackingDictionary(), voipHeaders ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsIncomingCallCustomContext FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsIncomingCallCustomContext(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsIncomingCallEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsIncomingCallEventData.Serialization.cs index b665ce7c12ca4..b612c18397f32 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsIncomingCallEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsIncomingCallEventData.Serialization.cs @@ -87,12 +87,21 @@ internal static AcsIncomingCallEventData DeserializeAcsIncomingCallEventData(Jso correlationId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsIncomingCallEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsIncomingCallEventData(document.RootElement); + } + internal partial class AcsIncomingCallEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsIncomingCallEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsIncomingCallEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.Serialization.cs index f38c5f8a16e61..a006334719c35 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingChunkInfoProperties.Serialization.cs @@ -68,5 +68,13 @@ internal static AcsRecordingChunkInfoProperties DeserializeAcsRecordingChunkInfo contentLocation, deleteLocation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRecordingChunkInfoProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRecordingChunkInfoProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.Serialization.cs index b1562713f17de..7bd0273dd9156 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingFileStatusUpdatedEventData.Serialization.cs @@ -99,12 +99,21 @@ internal static AcsRecordingFileStatusUpdatedEventData DeserializeAcsRecordingFi sessionEndReason); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRecordingFileStatusUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRecordingFileStatusUpdatedEventData(document.RootElement); + } + internal partial class AcsRecordingFileStatusUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRecordingFileStatusUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRecordingFileStatusUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.Serialization.cs index 2c0242c54faea..4e76fe2519df5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRecordingStorageInfoProperties.Serialization.cs @@ -38,5 +38,13 @@ internal static AcsRecordingStorageInfoProperties DeserializeAcsRecordingStorage } return new AcsRecordingStorageInfoProperties(recordingChunks ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRecordingStorageInfoProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRecordingStorageInfoProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterChannelConfiguration.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterChannelConfiguration.Serialization.cs index 3698705b0a573..16341584b34f4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterChannelConfiguration.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterChannelConfiguration.Serialization.cs @@ -48,5 +48,13 @@ internal static AcsRouterChannelConfiguration DeserializeAcsRouterChannelConfigu } return new AcsRouterChannelConfiguration(channelId, capacityCostPerJob, maxNumberOfJobs); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRouterChannelConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterChannelConfiguration(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.Serialization.cs index cde5bd96df1b0..2b49348b7c62f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterCommunicationError.Serialization.cs @@ -66,5 +66,13 @@ internal static AcsRouterCommunicationError DeserializeAcsRouterCommunicationErr } return new AcsRouterCommunicationError(code, message, target, innererror, details ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRouterCommunicationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterCommunicationError(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterEventData.Serialization.cs index 2299b4988695c..db1df8e730871 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterEventData.Serialization.cs @@ -44,12 +44,21 @@ internal static AcsRouterEventData DeserializeAcsRouterEventData(JsonElement ele return new AcsRouterEventData(jobId, channelReference, channelId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRouterEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterEventData(document.RootElement); + } + internal partial class AcsRouterEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobCancelledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobCancelledEventData.Serialization.cs index deeadd854d48c..60374dc8d5b5d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobCancelledEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobCancelledEventData.Serialization.cs @@ -101,12 +101,21 @@ internal static AcsRouterJobCancelledEventData DeserializeAcsRouterJobCancelledE dispositionCode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobCancelledEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobCancelledEventData(document.RootElement); + } + internal partial class AcsRouterJobCancelledEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobCancelledEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobCancelledEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.Serialization.cs index 54b25eb1902b1..b93cdf0e177e1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassificationFailedEventData.Serialization.cs @@ -110,12 +110,21 @@ internal static AcsRouterJobClassificationFailedEventData DeserializeAcsRouterJo errors ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobClassificationFailedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobClassificationFailedEventData(document.RootElement); + } + internal partial class AcsRouterJobClassificationFailedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobClassificationFailedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobClassificationFailedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.Serialization.cs index 35f63b39be8d8..4963833d1f83a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClassifiedEventData.Serialization.cs @@ -132,12 +132,21 @@ internal static AcsRouterJobClassifiedEventData DeserializeAcsRouterJobClassifie attachedWorkerSelectors ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobClassifiedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobClassifiedEventData(document.RootElement); + } + internal partial class AcsRouterJobClassifiedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobClassifiedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobClassifiedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClosedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClosedEventData.Serialization.cs index b5df1bca167a3..d2be9b45f1758 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClosedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobClosedEventData.Serialization.cs @@ -108,12 +108,21 @@ internal static AcsRouterJobClosedEventData DeserializeAcsRouterJobClosedEventDa dispositionCode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobClosedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobClosedEventData(document.RootElement); + } + internal partial class AcsRouterJobClosedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobClosedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobClosedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobCompletedEventData.Serialization.cs index a596d13608133..628ea898edc87 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobCompletedEventData.Serialization.cs @@ -101,12 +101,21 @@ internal static AcsRouterJobCompletedEventData DeserializeAcsRouterJobCompletedE workerId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobCompletedEventData(document.RootElement); + } + internal partial class AcsRouterJobCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobDeletedEventData.Serialization.cs index 7fd3f941cb889..6378566d79476 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobDeletedEventData.Serialization.cs @@ -87,12 +87,21 @@ internal static AcsRouterJobDeletedEventData DeserializeAcsRouterJobDeletedEvent tags ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobDeletedEventData(document.RootElement); + } + internal partial class AcsRouterJobDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobEventData.Serialization.cs index 1f363c027cf19..60a5a41886b3c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobEventData.Serialization.cs @@ -87,12 +87,21 @@ internal static AcsRouterJobEventData DeserializeAcsRouterJobEventData(JsonEleme tags ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobEventData(document.RootElement); + } + internal partial class AcsRouterJobEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobExceptionTriggeredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobExceptionTriggeredEventData.Serialization.cs index 70003791096cd..cceec8ccf7ca0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobExceptionTriggeredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobExceptionTriggeredEventData.Serialization.cs @@ -101,12 +101,21 @@ internal static AcsRouterJobExceptionTriggeredEventData DeserializeAcsRouterJobE exceptionRuleId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobExceptionTriggeredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobExceptionTriggeredEventData(document.RootElement); + } + internal partial class AcsRouterJobExceptionTriggeredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobExceptionTriggeredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobExceptionTriggeredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.Serialization.cs index b89f89be54611..a889ed40b7dee 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobQueuedEventData.Serialization.cs @@ -130,12 +130,21 @@ internal static AcsRouterJobQueuedEventData DeserializeAcsRouterJobQueuedEventDa requestedWorkerSelectors ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobQueuedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobQueuedEventData(document.RootElement); + } + internal partial class AcsRouterJobQueuedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobQueuedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobQueuedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.Serialization.cs index 87c2e878e05a5..1f6fd314f6ed9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobReceivedEventData.Serialization.cs @@ -150,12 +150,21 @@ internal static AcsRouterJobReceivedEventData DeserializeAcsRouterJobReceivedEve unavailableForMatching); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobReceivedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobReceivedEventData(document.RootElement); + } + internal partial class AcsRouterJobReceivedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobReceivedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobReceivedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.Serialization.cs index eae53209e45c1..568fa50b21652 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobSchedulingFailedEventData.Serialization.cs @@ -148,12 +148,21 @@ internal static AcsRouterJobSchedulingFailedEventData DeserializeAcsRouterJobSch failureReason); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobSchedulingFailedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobSchedulingFailedEventData(document.RootElement); + } + internal partial class AcsRouterJobSchedulingFailedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobSchedulingFailedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobSchedulingFailedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobUnassignedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobUnassignedEventData.Serialization.cs index 96ba5592831b0..f15f9597cd3c5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobUnassignedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobUnassignedEventData.Serialization.cs @@ -101,12 +101,21 @@ internal static AcsRouterJobUnassignedEventData DeserializeAcsRouterJobUnassigne workerId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobUnassignedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobUnassignedEventData(document.RootElement); + } + internal partial class AcsRouterJobUnassignedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobUnassignedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobUnassignedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.Serialization.cs index 7ef69a7d11654..2db73cc74d33d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWaitingForActivationEventData.Serialization.cs @@ -148,12 +148,21 @@ internal static AcsRouterJobWaitingForActivationEventData DeserializeAcsRouterJo unavailableForMatching); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobWaitingForActivationEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobWaitingForActivationEventData(document.RootElement); + } + internal partial class AcsRouterJobWaitingForActivationEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobWaitingForActivationEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobWaitingForActivationEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.Serialization.cs index 23d4e0319856c..481632a3adf33 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterJobWorkerSelectorsExpiredEventData.Serialization.cs @@ -119,12 +119,21 @@ internal static AcsRouterJobWorkerSelectorsExpiredEventData DeserializeAcsRouter expiredAttachedWorkerSelectors ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterJobWorkerSelectorsExpiredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterJobWorkerSelectorsExpiredEventData(document.RootElement); + } + internal partial class AcsRouterJobWorkerSelectorsExpiredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterJobWorkerSelectorsExpiredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterJobWorkerSelectorsExpiredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterQueueDetails.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterQueueDetails.Serialization.cs index bb8a3a35de2ee..630fae07d9a4c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterQueueDetails.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterQueueDetails.Serialization.cs @@ -50,5 +50,13 @@ internal static AcsRouterQueueDetails DeserializeAcsRouterQueueDetails(JsonEleme } return new AcsRouterQueueDetails(id, name, labels ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRouterQueueDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterQueueDetails(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerDeletedEventData.Serialization.cs index 58ff159c9f00f..b98fa9306ba3f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerDeletedEventData.Serialization.cs @@ -50,12 +50,21 @@ internal static AcsRouterWorkerDeletedEventData DeserializeAcsRouterWorkerDelete return new AcsRouterWorkerDeletedEventData(jobId, channelReference, channelId, workerId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterWorkerDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerDeletedEventData(document.RootElement); + } + internal partial class AcsRouterWorkerDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerDeregisteredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerDeregisteredEventData.Serialization.cs index 025dc2e386e21..0db6e52864ecd 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerDeregisteredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerDeregisteredEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static AcsRouterWorkerDeregisteredEventData DeserializeAcsRouterWorkerD return new AcsRouterWorkerDeregisteredEventData(workerId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRouterWorkerDeregisteredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerDeregisteredEventData(document.RootElement); + } + internal partial class AcsRouterWorkerDeregisteredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerDeregisteredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerDeregisteredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerEventData.Serialization.cs index f4d35335bb312..d02513fe9a5a1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerEventData.Serialization.cs @@ -50,12 +50,21 @@ internal static AcsRouterWorkerEventData DeserializeAcsRouterWorkerEventData(Jso return new AcsRouterWorkerEventData(jobId, channelReference, channelId, workerId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterWorkerEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerEventData(document.RootElement); + } + internal partial class AcsRouterWorkerEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferAcceptedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferAcceptedEventData.Serialization.cs index e66a7eec377b2..596fa86dfe5d3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferAcceptedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferAcceptedEventData.Serialization.cs @@ -151,12 +151,21 @@ internal static AcsRouterWorkerOfferAcceptedEventData DeserializeAcsRouterWorker jobTags ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterWorkerOfferAcceptedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerOfferAcceptedEventData(document.RootElement); + } + internal partial class AcsRouterWorkerOfferAcceptedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerOfferAcceptedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerOfferAcceptedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferDeclinedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferDeclinedEventData.Serialization.cs index 95ae6eb5caf44..2cd231e60b91d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferDeclinedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferDeclinedEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static AcsRouterWorkerOfferDeclinedEventData DeserializeAcsRouterWorker offerId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterWorkerOfferDeclinedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerOfferDeclinedEventData(document.RootElement); + } + internal partial class AcsRouterWorkerOfferDeclinedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerOfferDeclinedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerOfferDeclinedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferExpiredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferExpiredEventData.Serialization.cs index f4ffab2b1fa3a..4c6d748a63956 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferExpiredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferExpiredEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static AcsRouterWorkerOfferExpiredEventData DeserializeAcsRouterWorkerO offerId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterWorkerOfferExpiredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerOfferExpiredEventData(document.RootElement); + } + internal partial class AcsRouterWorkerOfferExpiredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerOfferExpiredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerOfferExpiredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferIssuedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferIssuedEventData.Serialization.cs index 5dd81e94a24fc..0abf3d94339ad 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferIssuedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferIssuedEventData.Serialization.cs @@ -166,12 +166,21 @@ internal static AcsRouterWorkerOfferIssuedEventData DeserializeAcsRouterWorkerOf jobTags ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterWorkerOfferIssuedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerOfferIssuedEventData(document.RootElement); + } + internal partial class AcsRouterWorkerOfferIssuedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerOfferIssuedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerOfferIssuedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferRevokedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferRevokedEventData.Serialization.cs index 703bd745aedf3..717271344219c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferRevokedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerOfferRevokedEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static AcsRouterWorkerOfferRevokedEventData DeserializeAcsRouterWorkerO offerId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsRouterWorkerOfferRevokedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerOfferRevokedEventData(document.RootElement); + } + internal partial class AcsRouterWorkerOfferRevokedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerOfferRevokedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerOfferRevokedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.Serialization.cs index 02e3ced6ae365..b4895cdc05a3d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerRegisteredEventData.Serialization.cs @@ -109,12 +109,21 @@ internal static AcsRouterWorkerRegisteredEventData DeserializeAcsRouterWorkerReg tags ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRouterWorkerRegisteredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerRegisteredEventData(document.RootElement); + } + internal partial class AcsRouterWorkerRegisteredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerRegisteredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerRegisteredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerSelector.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerSelector.Serialization.cs index 534ba1713d6b7..2abb36e9ff450 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerSelector.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerSelector.Serialization.cs @@ -85,5 +85,13 @@ internal static AcsRouterWorkerSelector DeserializeAcsRouterWorkerSelector(JsonE state, expirationTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRouterWorkerSelector FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerSelector(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerUpdatedEventData.Serialization.cs index e8a558759576a..50516925d4064 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsRouterWorkerUpdatedEventData.Serialization.cs @@ -125,12 +125,21 @@ internal static AcsRouterWorkerUpdatedEventData DeserializeAcsRouterWorkerUpdate updatedWorkerProperties ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsRouterWorkerUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsRouterWorkerUpdatedEventData(document.RootElement); + } + internal partial class AcsRouterWorkerUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsRouterWorkerUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsRouterWorkerUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryAttemptProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryAttemptProperties.Serialization.cs index 11874f68092fe..66ccd52e4b3cc 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryAttemptProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryAttemptProperties.Serialization.cs @@ -53,5 +53,13 @@ internal static AcsSmsDeliveryAttemptProperties DeserializeAcsSmsDeliveryAttempt } return new AcsSmsDeliveryAttemptProperties(timestamp, segmentsSucceeded, segmentsFailed); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsSmsDeliveryAttemptProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsSmsDeliveryAttemptProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.Serialization.cs index a84d461f2be2b..c3d9ae8e51ccd 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsDeliveryReportReceivedEventData.Serialization.cs @@ -96,12 +96,21 @@ internal static AcsSmsDeliveryReportReceivedEventData DeserializeAcsSmsDeliveryR tag); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsSmsDeliveryReportReceivedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsSmsDeliveryReportReceivedEventData(document.RootElement); + } + internal partial class AcsSmsDeliveryReportReceivedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsSmsDeliveryReportReceivedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsSmsDeliveryReportReceivedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsEventBaseProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsEventBaseProperties.Serialization.cs index b76847eb0fbef..2669c3c1adc9d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsEventBaseProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsEventBaseProperties.Serialization.cs @@ -40,5 +40,13 @@ internal static AcsSmsEventBaseProperties DeserializeAcsSmsEventBaseProperties(J } return new AcsSmsEventBaseProperties(messageId, @from, to); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsSmsEventBaseProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsSmsEventBaseProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsReceivedEventData.Serialization.cs index cbdc826f6a25c..1df317b7dd6ab 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsSmsReceivedEventData.Serialization.cs @@ -60,12 +60,21 @@ internal static AcsSmsReceivedEventData DeserializeAcsSmsReceivedEventData(JsonE return new AcsSmsReceivedEventData(messageId, @from, to, message, receivedTimestamp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AcsSmsReceivedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsSmsReceivedEventData(document.RootElement); + } + internal partial class AcsSmsReceivedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsSmsReceivedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsSmsReceivedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsUserDisconnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsUserDisconnectedEventData.Serialization.cs index 182678754e665..7cb846b6351c6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsUserDisconnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AcsUserDisconnectedEventData.Serialization.cs @@ -36,12 +36,21 @@ internal static AcsUserDisconnectedEventData DeserializeAcsUserDisconnectedEvent return new AcsUserDisconnectedEventData(userCommunicationIdentifier); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AcsUserDisconnectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAcsUserDisconnectedEventData(document.RootElement); + } + internal partial class AcsUserDisconnectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AcsUserDisconnectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AcsUserDisconnectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiDefinitionAddedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiDefinitionAddedEventData.Serialization.cs index a688dae585e34..b7500dd66e4e8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiDefinitionAddedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiDefinitionAddedEventData.Serialization.cs @@ -48,12 +48,21 @@ internal static ApiCenterApiDefinitionAddedEventData DeserializeApiCenterApiDefi return new ApiCenterApiDefinitionAddedEventData(title, description, specification); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiCenterApiDefinitionAddedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiCenterApiDefinitionAddedEventData(document.RootElement); + } + internal partial class ApiCenterApiDefinitionAddedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiCenterApiDefinitionAddedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiCenterApiDefinitionAddedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiDefinitionUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiDefinitionUpdatedEventData.Serialization.cs index 59aa46f29c9e7..10a963ec1d3d9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiDefinitionUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiDefinitionUpdatedEventData.Serialization.cs @@ -48,12 +48,21 @@ internal static ApiCenterApiDefinitionUpdatedEventData DeserializeApiCenterApiDe return new ApiCenterApiDefinitionUpdatedEventData(title, description, specification); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiCenterApiDefinitionUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiCenterApiDefinitionUpdatedEventData(document.RootElement); + } + internal partial class ApiCenterApiDefinitionUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiCenterApiDefinitionUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiCenterApiDefinitionUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiSpecification.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiSpecification.Serialization.cs index 3735e39db8315..f8553b324838c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiSpecification.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiCenterApiSpecification.Serialization.cs @@ -34,5 +34,13 @@ internal static ApiCenterApiSpecification DeserializeApiCenterApiSpecification(J } return new ApiCenterApiSpecification(name, version); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiCenterApiSpecification FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiCenterApiSpecification(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiCreatedEventData.Serialization.cs index f547706feb8fc..270048a35037d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiCreatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementApiCreatedEventData DeserializeApiManagementApiCrea return new ApiManagementApiCreatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementApiCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementApiCreatedEventData(document.RootElement); + } + internal partial class ApiManagementApiCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementApiCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementApiCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiDeletedEventData.Serialization.cs index 0e5372e48f876..54948192da3e3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiDeletedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementApiDeletedEventData DeserializeApiManagementApiDele return new ApiManagementApiDeletedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementApiDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementApiDeletedEventData(document.RootElement); + } + internal partial class ApiManagementApiDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementApiDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementApiDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseCreatedEventData.Serialization.cs index e7b2b049c53ca..49e6eacb60212 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseCreatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementApiReleaseCreatedEventData DeserializeApiManagement return new ApiManagementApiReleaseCreatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementApiReleaseCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementApiReleaseCreatedEventData(document.RootElement); + } + internal partial class ApiManagementApiReleaseCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementApiReleaseCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementApiReleaseCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseDeletedEventData.Serialization.cs index 6749a9d5d5d0d..da214233c03e0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseDeletedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementApiReleaseDeletedEventData DeserializeApiManagement return new ApiManagementApiReleaseDeletedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementApiReleaseDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementApiReleaseDeletedEventData(document.RootElement); + } + internal partial class ApiManagementApiReleaseDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementApiReleaseDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementApiReleaseDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseUpdatedEventData.Serialization.cs index 0093ae11fe1e6..4e54db129a31b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiReleaseUpdatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementApiReleaseUpdatedEventData DeserializeApiManagement return new ApiManagementApiReleaseUpdatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementApiReleaseUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementApiReleaseUpdatedEventData(document.RootElement); + } + internal partial class ApiManagementApiReleaseUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementApiReleaseUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementApiReleaseUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiUpdatedEventData.Serialization.cs index 7260a86f54e87..1c8a08084d021 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementApiUpdatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementApiUpdatedEventData DeserializeApiManagementApiUpda return new ApiManagementApiUpdatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementApiUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementApiUpdatedEventData(document.RootElement); + } + internal partial class ApiManagementApiUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementApiUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementApiUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayApiAddedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayApiAddedEventData.Serialization.cs index bbf3cc12f6cec..4faf1411b808f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayApiAddedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayApiAddedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayApiAddedEventData DeserializeApiManagementGa return new ApiManagementGatewayApiAddedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayApiAddedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayApiAddedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayApiAddedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayApiAddedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayApiAddedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayApiRemovedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayApiRemovedEventData.Serialization.cs index e60c261843361..898ccb00a601d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayApiRemovedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayApiRemovedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayApiRemovedEventData DeserializeApiManagement return new ApiManagementGatewayApiRemovedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayApiRemovedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayApiRemovedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayApiRemovedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayApiRemovedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayApiRemovedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityCreatedEventData.Serialization.cs index b89ae3f666507..a399b2be54b5c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityCreatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayCertificateAuthorityCreatedEventData Deseria return new ApiManagementGatewayCertificateAuthorityCreatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayCertificateAuthorityCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayCertificateAuthorityCreatedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayCertificateAuthorityCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayCertificateAuthorityCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayCertificateAuthorityCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityDeletedEventData.Serialization.cs index da8358899ab05..7305389817c18 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityDeletedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayCertificateAuthorityDeletedEventData Deseria return new ApiManagementGatewayCertificateAuthorityDeletedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayCertificateAuthorityDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayCertificateAuthorityDeletedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayCertificateAuthorityDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayCertificateAuthorityDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayCertificateAuthorityDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityUpdatedEventData.Serialization.cs index b72008b68b08e..419781ab3c3b7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCertificateAuthorityUpdatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayCertificateAuthorityUpdatedEventData Deseria return new ApiManagementGatewayCertificateAuthorityUpdatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayCertificateAuthorityUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayCertificateAuthorityUpdatedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayCertificateAuthorityUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayCertificateAuthorityUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayCertificateAuthorityUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCreatedEventData.Serialization.cs index e624156473c86..754cda6a187b9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayCreatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayCreatedEventData DeserializeApiManagementGat return new ApiManagementGatewayCreatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayCreatedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayDeletedEventData.Serialization.cs index 35b49d2676b9f..48c5548e1a4af 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayDeletedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayDeletedEventData DeserializeApiManagementGat return new ApiManagementGatewayDeletedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayDeletedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationCreatedEventData.Serialization.cs index 8b1d861c42361..6a4cab1c1f583 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationCreatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayHostnameConfigurationCreatedEventData Deseri return new ApiManagementGatewayHostnameConfigurationCreatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayHostnameConfigurationCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayHostnameConfigurationCreatedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayHostnameConfigurationCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayHostnameConfigurationCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayHostnameConfigurationCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationDeletedEventData.Serialization.cs index 9c37e8a1b5399..cd5cde079a853 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationDeletedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayHostnameConfigurationDeletedEventData Deseri return new ApiManagementGatewayHostnameConfigurationDeletedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayHostnameConfigurationDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayHostnameConfigurationDeletedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayHostnameConfigurationDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayHostnameConfigurationDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayHostnameConfigurationDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationUpdatedEventData.Serialization.cs index 53333fd9f00b5..d5e8f17904d92 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayHostnameConfigurationUpdatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayHostnameConfigurationUpdatedEventData Deseri return new ApiManagementGatewayHostnameConfigurationUpdatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayHostnameConfigurationUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayHostnameConfigurationUpdatedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayHostnameConfigurationUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayHostnameConfigurationUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayHostnameConfigurationUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayUpdatedEventData.Serialization.cs index f1a6eda8036ea..6f54047653ffa 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementGatewayUpdatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementGatewayUpdatedEventData DeserializeApiManagementGat return new ApiManagementGatewayUpdatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementGatewayUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementGatewayUpdatedEventData(document.RootElement); + } + internal partial class ApiManagementGatewayUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementGatewayUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementGatewayUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductCreatedEventData.Serialization.cs index 7b7898836e2a5..d3e67db1fe59e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductCreatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementProductCreatedEventData DeserializeApiManagementPro return new ApiManagementProductCreatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementProductCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementProductCreatedEventData(document.RootElement); + } + internal partial class ApiManagementProductCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementProductCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementProductCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductDeletedEventData.Serialization.cs index f1914efd1ac83..25877d6fd6ee8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductDeletedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementProductDeletedEventData DeserializeApiManagementPro return new ApiManagementProductDeletedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementProductDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementProductDeletedEventData(document.RootElement); + } + internal partial class ApiManagementProductDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementProductDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementProductDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductUpdatedEventData.Serialization.cs index 02c8a06821083..19e07eed2dadb 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementProductUpdatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementProductUpdatedEventData DeserializeApiManagementPro return new ApiManagementProductUpdatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementProductUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementProductUpdatedEventData(document.RootElement); + } + internal partial class ApiManagementProductUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementProductUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementProductUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionCreatedEventData.Serialization.cs index 9eb1dd6135a56..8dbe5955c238a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionCreatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementSubscriptionCreatedEventData DeserializeApiManageme return new ApiManagementSubscriptionCreatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementSubscriptionCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementSubscriptionCreatedEventData(document.RootElement); + } + internal partial class ApiManagementSubscriptionCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementSubscriptionCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementSubscriptionCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionDeletedEventData.Serialization.cs index f2b054fd5441a..3dff6250ac3bc 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionDeletedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementSubscriptionDeletedEventData DeserializeApiManageme return new ApiManagementSubscriptionDeletedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementSubscriptionDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementSubscriptionDeletedEventData(document.RootElement); + } + internal partial class ApiManagementSubscriptionDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementSubscriptionDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementSubscriptionDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionUpdatedEventData.Serialization.cs index c71ad56cb854b..134841c86595f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementSubscriptionUpdatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementSubscriptionUpdatedEventData DeserializeApiManageme return new ApiManagementSubscriptionUpdatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementSubscriptionUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementSubscriptionUpdatedEventData(document.RootElement); + } + internal partial class ApiManagementSubscriptionUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementSubscriptionUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementSubscriptionUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserCreatedEventData.Serialization.cs index 53c657957be36..b3511fd61a0ec 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserCreatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementUserCreatedEventData DeserializeApiManagementUserCr return new ApiManagementUserCreatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementUserCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementUserCreatedEventData(document.RootElement); + } + internal partial class ApiManagementUserCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementUserCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementUserCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserDeletedEventData.Serialization.cs index f8302dd07bcf8..b9516ce2a071e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserDeletedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementUserDeletedEventData DeserializeApiManagementUserDe return new ApiManagementUserDeletedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementUserDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementUserDeletedEventData(document.RootElement); + } + internal partial class ApiManagementUserDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementUserDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementUserDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserUpdatedEventData.Serialization.cs index 20a57df5d2064..1716790b9e5e5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ApiManagementUserUpdatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ApiManagementUserUpdatedEventData DeserializeApiManagementUserUp return new ApiManagementUserUpdatedEventData(resourceUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ApiManagementUserUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeApiManagementUserUpdatedEventData(document.RootElement); + } + internal partial class ApiManagementUserUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ApiManagementUserUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ApiManagementUserUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationKeyValueDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationKeyValueDeletedEventData.Serialization.cs index e3796e2786f4a..860bfa4b8cbc0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationKeyValueDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationKeyValueDeletedEventData.Serialization.cs @@ -50,12 +50,21 @@ internal static AppConfigurationKeyValueDeletedEventData DeserializeAppConfigura return new AppConfigurationKeyValueDeletedEventData(key, label, etag, syncToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AppConfigurationKeyValueDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAppConfigurationKeyValueDeletedEventData(document.RootElement); + } + internal partial class AppConfigurationKeyValueDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AppConfigurationKeyValueDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AppConfigurationKeyValueDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationKeyValueModifiedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationKeyValueModifiedEventData.Serialization.cs index 8300fd4fb94c8..8b6a75443253b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationKeyValueModifiedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationKeyValueModifiedEventData.Serialization.cs @@ -50,12 +50,21 @@ internal static AppConfigurationKeyValueModifiedEventData DeserializeAppConfigur return new AppConfigurationKeyValueModifiedEventData(key, label, etag, syncToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AppConfigurationKeyValueModifiedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAppConfigurationKeyValueModifiedEventData(document.RootElement); + } + internal partial class AppConfigurationKeyValueModifiedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AppConfigurationKeyValueModifiedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AppConfigurationKeyValueModifiedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotCreatedEventData.Serialization.cs index 54e502d8c935f..49af7946cb13b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotCreatedEventData.Serialization.cs @@ -44,12 +44,21 @@ internal static AppConfigurationSnapshotCreatedEventData DeserializeAppConfigura return new AppConfigurationSnapshotCreatedEventData(name, etag, syncToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AppConfigurationSnapshotCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAppConfigurationSnapshotCreatedEventData(document.RootElement); + } + internal partial class AppConfigurationSnapshotCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AppConfigurationSnapshotCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AppConfigurationSnapshotCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotEventData.Serialization.cs index c5f7ee6312a24..771cb20fe62f5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotEventData.Serialization.cs @@ -44,12 +44,21 @@ internal static AppConfigurationSnapshotEventData DeserializeAppConfigurationSna return new AppConfigurationSnapshotEventData(name, etag, syncToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AppConfigurationSnapshotEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAppConfigurationSnapshotEventData(document.RootElement); + } + internal partial class AppConfigurationSnapshotEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AppConfigurationSnapshotEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AppConfigurationSnapshotEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotModifiedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotModifiedEventData.Serialization.cs index 9be28a46064ff..782ee64f741c3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotModifiedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppConfigurationSnapshotModifiedEventData.Serialization.cs @@ -44,12 +44,21 @@ internal static AppConfigurationSnapshotModifiedEventData DeserializeAppConfigur return new AppConfigurationSnapshotModifiedEventData(name, etag, syncToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AppConfigurationSnapshotModifiedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAppConfigurationSnapshotModifiedEventData(document.RootElement); + } + internal partial class AppConfigurationSnapshotModifiedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AppConfigurationSnapshotModifiedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AppConfigurationSnapshotModifiedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppEventTypeDetail.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppEventTypeDetail.Serialization.cs index 9b4952f53efe8..572ad19ae198a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppEventTypeDetail.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppEventTypeDetail.Serialization.cs @@ -32,5 +32,13 @@ internal static AppEventTypeDetail DeserializeAppEventTypeDetail(JsonElement ele } return new AppEventTypeDetail(action); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AppEventTypeDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAppEventTypeDetail(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppServicePlanEventTypeDetail.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppServicePlanEventTypeDetail.Serialization.cs index 41807b92e904b..bf79bfd4e8861 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppServicePlanEventTypeDetail.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AppServicePlanEventTypeDetail.Serialization.cs @@ -52,5 +52,13 @@ internal static AppServicePlanEventTypeDetail DeserializeAppServicePlanEventType } return new AppServicePlanEventTypeDetail(stampKind, action, status); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AppServicePlanEventTypeDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAppServicePlanEventTypeDetail(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterCreatedEventData.Serialization.cs index ff5ffd2166c0d..3459faea500a7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterCreatedEventData.Serialization.cs @@ -78,12 +78,21 @@ internal static AvsClusterCreatedEventData DeserializeAvsClusterCreatedEventData return new AvsClusterCreatedEventData(operationId, addedHostNames ?? new ChangeTrackingList(), removedHostNames ?? new ChangeTrackingList(), inMaintenanceHostNames ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsClusterCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsClusterCreatedEventData(document.RootElement); + } + internal partial class AvsClusterCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsClusterCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsClusterCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterDeletedEventData.Serialization.cs index 22d099d22b2c0..7a718c42cec46 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterDeletedEventData.Serialization.cs @@ -78,12 +78,21 @@ internal static AvsClusterDeletedEventData DeserializeAvsClusterDeletedEventData return new AvsClusterDeletedEventData(operationId, addedHostNames ?? new ChangeTrackingList(), removedHostNames ?? new ChangeTrackingList(), inMaintenanceHostNames ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsClusterDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsClusterDeletedEventData(document.RootElement); + } + internal partial class AvsClusterDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsClusterDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsClusterDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.Serialization.cs index 04c63d9d6b84f..e672d337dc1c3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterEventData.Serialization.cs @@ -78,12 +78,21 @@ internal static AvsClusterEventData DeserializeAvsClusterEventData(JsonElement e return new AvsClusterEventData(operationId, addedHostNames ?? new ChangeTrackingList(), removedHostNames ?? new ChangeTrackingList(), inMaintenanceHostNames ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AvsClusterEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsClusterEventData(document.RootElement); + } + internal partial class AvsClusterEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsClusterEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsClusterEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterFailedEventData.Serialization.cs index 9a20881cabf17..2c6a9877f7efb 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterFailedEventData.Serialization.cs @@ -84,12 +84,21 @@ internal static AvsClusterFailedEventData DeserializeAvsClusterFailedEventData(J return new AvsClusterFailedEventData(operationId, addedHostNames ?? new ChangeTrackingList(), removedHostNames ?? new ChangeTrackingList(), inMaintenanceHostNames ?? new ChangeTrackingList(), failureMessage); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsClusterFailedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsClusterFailedEventData(document.RootElement); + } + internal partial class AvsClusterFailedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsClusterFailedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsClusterFailedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatedEventData.Serialization.cs index 5f5808e077b3d..ea3bf40524896 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatedEventData.Serialization.cs @@ -78,12 +78,21 @@ internal static AvsClusterUpdatedEventData DeserializeAvsClusterUpdatedEventData return new AvsClusterUpdatedEventData(operationId, addedHostNames ?? new ChangeTrackingList(), removedHostNames ?? new ChangeTrackingList(), inMaintenanceHostNames ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsClusterUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsClusterUpdatedEventData(document.RootElement); + } + internal partial class AvsClusterUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsClusterUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsClusterUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatingEventData.Serialization.cs index acff656422e29..68daf750b434e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatingEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsClusterUpdatingEventData.Serialization.cs @@ -78,12 +78,21 @@ internal static AvsClusterUpdatingEventData DeserializeAvsClusterUpdatingEventDa return new AvsClusterUpdatingEventData(operationId, addedHostNames ?? new ChangeTrackingList(), removedHostNames ?? new ChangeTrackingList(), inMaintenanceHostNames ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsClusterUpdatingEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsClusterUpdatingEventData(document.RootElement); + } + internal partial class AvsClusterUpdatingEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsClusterUpdatingEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsClusterUpdatingEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudEventData.Serialization.cs index 89943dd5e21b9..3a048823200f0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static AvsPrivateCloudEventData DeserializeAvsPrivateCloudEventData(Jso return new AvsPrivateCloudEventData(operationId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AvsPrivateCloudEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsPrivateCloudEventData(document.RootElement); + } + internal partial class AvsPrivateCloudEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsPrivateCloudEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsPrivateCloudEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudFailedEventData.Serialization.cs index ee8ad840345a1..16cb4e4970af9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudFailedEventData.Serialization.cs @@ -38,12 +38,21 @@ internal static AvsPrivateCloudFailedEventData DeserializeAvsPrivateCloudFailedE return new AvsPrivateCloudFailedEventData(operationId, failureMessage); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsPrivateCloudFailedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsPrivateCloudFailedEventData(document.RootElement); + } + internal partial class AvsPrivateCloudFailedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsPrivateCloudFailedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsPrivateCloudFailedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudUpdatedEventData.Serialization.cs index 9526bb0682b4c..acb34fb64096d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudUpdatedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static AvsPrivateCloudUpdatedEventData DeserializeAvsPrivateCloudUpdate return new AvsPrivateCloudUpdatedEventData(operationId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsPrivateCloudUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsPrivateCloudUpdatedEventData(document.RootElement); + } + internal partial class AvsPrivateCloudUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsPrivateCloudUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsPrivateCloudUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudUpdatingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudUpdatingEventData.Serialization.cs index 08c3cdff3b834..4fa9abc242b8d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudUpdatingEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsPrivateCloudUpdatingEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static AvsPrivateCloudUpdatingEventData DeserializeAvsPrivateCloudUpdat return new AvsPrivateCloudUpdatingEventData(operationId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsPrivateCloudUpdatingEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsPrivateCloudUpdatingEventData(document.RootElement); + } + internal partial class AvsPrivateCloudUpdatingEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsPrivateCloudUpdatingEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsPrivateCloudUpdatingEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionCancelledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionCancelledEventData.Serialization.cs index 153effec7f948..6844e3f5e4d62 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionCancelledEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionCancelledEventData.Serialization.cs @@ -54,12 +54,21 @@ internal static AvsScriptExecutionCancelledEventData DeserializeAvsScriptExecuti return new AvsScriptExecutionCancelledEventData(operationId, cmdletId, output ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsScriptExecutionCancelledEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsScriptExecutionCancelledEventData(document.RootElement); + } + internal partial class AvsScriptExecutionCancelledEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsScriptExecutionCancelledEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsScriptExecutionCancelledEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.Serialization.cs index 6402ab88ee612..5826b6ba0572f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionEventData.Serialization.cs @@ -54,12 +54,21 @@ internal static AvsScriptExecutionEventData DeserializeAvsScriptExecutionEventDa return new AvsScriptExecutionEventData(operationId, cmdletId, output ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AvsScriptExecutionEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsScriptExecutionEventData(document.RootElement); + } + internal partial class AvsScriptExecutionEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsScriptExecutionEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsScriptExecutionEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFailedEventData.Serialization.cs index 9eb9112ec813f..87b99eba35311 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFailedEventData.Serialization.cs @@ -60,12 +60,21 @@ internal static AvsScriptExecutionFailedEventData DeserializeAvsScriptExecutionF return new AvsScriptExecutionFailedEventData(operationId, cmdletId, output ?? new ChangeTrackingList(), failureMessage); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsScriptExecutionFailedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsScriptExecutionFailedEventData(document.RootElement); + } + internal partial class AvsScriptExecutionFailedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsScriptExecutionFailedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsScriptExecutionFailedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFinishedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFinishedEventData.Serialization.cs index 7832b2d4f31a4..30e11447b865f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFinishedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionFinishedEventData.Serialization.cs @@ -69,12 +69,21 @@ internal static AvsScriptExecutionFinishedEventData DeserializeAvsScriptExecutio return new AvsScriptExecutionFinishedEventData(operationId, cmdletId, output ?? new ChangeTrackingList(), namedOutputs ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsScriptExecutionFinishedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsScriptExecutionFinishedEventData(document.RootElement); + } + internal partial class AvsScriptExecutionFinishedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsScriptExecutionFinishedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsScriptExecutionFinishedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionStartedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionStartedEventData.Serialization.cs index 8159ea15e7ac9..6a056d414a86c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionStartedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AvsScriptExecutionStartedEventData.Serialization.cs @@ -54,12 +54,21 @@ internal static AvsScriptExecutionStartedEventData DeserializeAvsScriptExecution return new AvsScriptExecutionStartedEventData(operationId, cmdletId, output ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvsScriptExecutionStartedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvsScriptExecutionStartedEventData(document.RootElement); + } + internal partial class AvsScriptExecutionStartedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvsScriptExecutionStartedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AvsScriptExecutionStartedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CloudEventInternal.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CloudEventInternal.Serialization.cs index b3db4f7f67835..a5216edeededc 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CloudEventInternal.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CloudEventInternal.Serialization.cs @@ -60,5 +60,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs index d346964517745..cef8b7d557fd9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CommunicationIdentifierModel.Serialization.cs @@ -84,5 +84,13 @@ internal static CommunicationIdentifierModel DeserializeCommunicationIdentifierM microsoftTeamsUser, microsoftTeamsApp); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationIdentifierModel(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs index ec42f77bc629f..149db2217fa3c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/CommunicationUserIdentifierModel.Serialization.cs @@ -28,5 +28,13 @@ internal static CommunicationUserIdentifierModel DeserializeCommunicationUserIde } return new CommunicationUserIdentifierModel(id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommunicationUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommunicationUserIdentifierModel(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryArtifactEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryArtifactEventData.Serialization.cs index b002f0729da5b..0bcf461b1c7e7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryArtifactEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryArtifactEventData.Serialization.cs @@ -80,12 +80,21 @@ internal static ContainerRegistryArtifactEventData DeserializeContainerRegistryA connectedRegistry); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerRegistryArtifactEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryArtifactEventData(document.RootElement); + } + internal partial class ContainerRegistryArtifactEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerRegistryArtifactEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerRegistryArtifactEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryArtifactEventTarget.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryArtifactEventTarget.Serialization.cs index c0252a26e4e0b..f1d6c63f7dd9a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryArtifactEventTarget.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryArtifactEventTarget.Serialization.cs @@ -75,5 +75,13 @@ internal static ContainerRegistryArtifactEventTarget DeserializeContainerRegistr name, version); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerRegistryArtifactEventTarget FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryArtifactEventTarget(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryChartDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryChartDeletedEventData.Serialization.cs index feb1a4f4abd3b..c09cf5eda54da 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryChartDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryChartDeletedEventData.Serialization.cs @@ -80,12 +80,21 @@ internal static ContainerRegistryChartDeletedEventData DeserializeContainerRegis connectedRegistry); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContainerRegistryChartDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryChartDeletedEventData(document.RootElement); + } + internal partial class ContainerRegistryChartDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerRegistryChartDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerRegistryChartDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryChartPushedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryChartPushedEventData.Serialization.cs index f8960f556e0d1..f32a545e9abca 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryChartPushedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryChartPushedEventData.Serialization.cs @@ -80,12 +80,21 @@ internal static ContainerRegistryChartPushedEventData DeserializeContainerRegist connectedRegistry); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContainerRegistryChartPushedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryChartPushedEventData(document.RootElement); + } + internal partial class ContainerRegistryChartPushedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerRegistryChartPushedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerRegistryChartPushedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventActor.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventActor.Serialization.cs index a0d85b43c8215..588a5d4e5242b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventActor.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventActor.Serialization.cs @@ -28,5 +28,13 @@ internal static ContainerRegistryEventActor DeserializeContainerRegistryEventAct } return new ContainerRegistryEventActor(name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerRegistryEventActor FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryEventActor(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventConnectedRegistry.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventConnectedRegistry.Serialization.cs index b87be554b35ce..5d556d8ceb3e3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventConnectedRegistry.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventConnectedRegistry.Serialization.cs @@ -28,5 +28,13 @@ internal static ContainerRegistryEventConnectedRegistry DeserializeContainerRegi } return new ContainerRegistryEventConnectedRegistry(name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerRegistryEventConnectedRegistry FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryEventConnectedRegistry(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventData.Serialization.cs index c0b2d5fc9eb7e..c9ecf2069d668 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventData.Serialization.cs @@ -113,12 +113,21 @@ internal static ContainerRegistryEventData DeserializeContainerRegistryEventData connectedRegistry); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerRegistryEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryEventData(document.RootElement); + } + internal partial class ContainerRegistryEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerRegistryEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerRegistryEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventRequest.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventRequest.Serialization.cs index 23d1b30814091..dec32406b2c13 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventRequest.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventRequest.Serialization.cs @@ -52,5 +52,13 @@ internal static ContainerRegistryEventRequest DeserializeContainerRegistryEventR } return new ContainerRegistryEventRequest(id, addr, host, method, useragent); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerRegistryEventRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryEventRequest(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventSource.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventSource.Serialization.cs index 34dba9205a461..4264fc378c757 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventSource.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventSource.Serialization.cs @@ -34,5 +34,13 @@ internal static ContainerRegistryEventSource DeserializeContainerRegistryEventSo } return new ContainerRegistryEventSource(addr, instanceID); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerRegistryEventSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryEventSource(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventTarget.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventTarget.Serialization.cs index 1e401772eba68..53a38d82de192 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventTarget.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryEventTarget.Serialization.cs @@ -79,5 +79,13 @@ internal static ContainerRegistryEventTarget DeserializeContainerRegistryEventTa url, tag); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerRegistryEventTarget FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryEventTarget(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryImageDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryImageDeletedEventData.Serialization.cs index bcdc5e128ecc2..5437bccbd4f5b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryImageDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryImageDeletedEventData.Serialization.cs @@ -113,12 +113,21 @@ internal static ContainerRegistryImageDeletedEventData DeserializeContainerRegis connectedRegistry); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContainerRegistryImageDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryImageDeletedEventData(document.RootElement); + } + internal partial class ContainerRegistryImageDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerRegistryImageDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerRegistryImageDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryImagePushedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryImagePushedEventData.Serialization.cs index 42cf209b36211..13d0f59d9e18d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryImagePushedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerRegistryImagePushedEventData.Serialization.cs @@ -113,12 +113,21 @@ internal static ContainerRegistryImagePushedEventData DeserializeContainerRegist connectedRegistry); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContainerRegistryImagePushedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerRegistryImagePushedEventData(document.RootElement); + } + internal partial class ContainerRegistryImagePushedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerRegistryImagePushedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerRegistryImagePushedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEndedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEndedEventData.Serialization.cs index 3974cc2764762..7a956ee819912 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEndedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEndedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ContainerServiceClusterSupportEndedEventData DeserializeContaine return new ContainerServiceClusterSupportEndedEventData(kubernetesVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContainerServiceClusterSupportEndedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerServiceClusterSupportEndedEventData(document.RootElement); + } + internal partial class ContainerServiceClusterSupportEndedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerServiceClusterSupportEndedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerServiceClusterSupportEndedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEndingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEndingEventData.Serialization.cs index 8be3930cad8c2..b07f8e2bdad35 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEndingEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEndingEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ContainerServiceClusterSupportEndingEventData DeserializeContain return new ContainerServiceClusterSupportEndingEventData(kubernetesVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContainerServiceClusterSupportEndingEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerServiceClusterSupportEndingEventData(document.RootElement); + } + internal partial class ContainerServiceClusterSupportEndingEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerServiceClusterSupportEndingEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerServiceClusterSupportEndingEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEventData.Serialization.cs index 3c76b17cf175f..d214f32aed59c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceClusterSupportEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ContainerServiceClusterSupportEventData DeserializeContainerServ return new ContainerServiceClusterSupportEventData(kubernetesVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerServiceClusterSupportEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerServiceClusterSupportEventData(document.RootElement); + } + internal partial class ContainerServiceClusterSupportEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerServiceClusterSupportEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerServiceClusterSupportEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNewKubernetesVersionAvailableEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNewKubernetesVersionAvailableEventData.Serialization.cs index 458e3b1d56464..d0f6c05ec48eb 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNewKubernetesVersionAvailableEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNewKubernetesVersionAvailableEventData.Serialization.cs @@ -50,12 +50,21 @@ internal static ContainerServiceNewKubernetesVersionAvailableEventData Deseriali return new ContainerServiceNewKubernetesVersionAvailableEventData(latestSupportedKubernetesVersion, latestStableKubernetesVersion, lowestMinorKubernetesVersion, latestPreviewKubernetesVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerServiceNewKubernetesVersionAvailableEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerServiceNewKubernetesVersionAvailableEventData(document.RootElement); + } + internal partial class ContainerServiceNewKubernetesVersionAvailableEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerServiceNewKubernetesVersionAvailableEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerServiceNewKubernetesVersionAvailableEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingEventData.Serialization.cs index a8578a3eb2742..add06d7774166 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ContainerServiceNodePoolRollingEventData DeserializeContainerSer return new ContainerServiceNodePoolRollingEventData(nodePoolName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContainerServiceNodePoolRollingEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerServiceNodePoolRollingEventData(document.RootElement); + } + internal partial class ContainerServiceNodePoolRollingEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerServiceNodePoolRollingEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerServiceNodePoolRollingEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingFailedEventData.Serialization.cs index 3c0bcb7aad4de..6046f29595ad0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingFailedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ContainerServiceNodePoolRollingFailedEventData DeserializeContai return new ContainerServiceNodePoolRollingFailedEventData(nodePoolName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContainerServiceNodePoolRollingFailedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerServiceNodePoolRollingFailedEventData(document.RootElement); + } + internal partial class ContainerServiceNodePoolRollingFailedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerServiceNodePoolRollingFailedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerServiceNodePoolRollingFailedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingStartedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingStartedEventData.Serialization.cs index b630ec53626b2..30291e7d95531 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingStartedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingStartedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ContainerServiceNodePoolRollingStartedEventData DeserializeConta return new ContainerServiceNodePoolRollingStartedEventData(nodePoolName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContainerServiceNodePoolRollingStartedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerServiceNodePoolRollingStartedEventData(document.RootElement); + } + internal partial class ContainerServiceNodePoolRollingStartedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerServiceNodePoolRollingStartedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerServiceNodePoolRollingStartedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingSucceededEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingSucceededEventData.Serialization.cs index 11c93b6d0deed..870afb23cfc5e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingSucceededEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ContainerServiceNodePoolRollingSucceededEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static ContainerServiceNodePoolRollingSucceededEventData DeserializeCon return new ContainerServiceNodePoolRollingSucceededEventData(nodePoolName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContainerServiceNodePoolRollingSucceededEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeContainerServiceNodePoolRollingSucceededEventData(document.RootElement); + } + internal partial class ContainerServiceNodePoolRollingSucceededEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ContainerServiceNodePoolRollingSucceededEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ContainerServiceNodePoolRollingSucceededEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxCopyCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxCopyCompletedEventData.Serialization.cs index 106b6e14260de..36aaeb5ec0211 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxCopyCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxCopyCompletedEventData.Serialization.cs @@ -52,12 +52,21 @@ internal static DataBoxCopyCompletedEventData DeserializeDataBoxCopyCompletedEve return new DataBoxCopyCompletedEventData(serialNumber, stageName, stageTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataBoxCopyCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataBoxCopyCompletedEventData(document.RootElement); + } + internal partial class DataBoxCopyCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataBoxCopyCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override DataBoxCopyCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxCopyStartedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxCopyStartedEventData.Serialization.cs index 79e126e592559..4d36b4746132a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxCopyStartedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxCopyStartedEventData.Serialization.cs @@ -52,12 +52,21 @@ internal static DataBoxCopyStartedEventData DeserializeDataBoxCopyStartedEventDa return new DataBoxCopyStartedEventData(serialNumber, stageName, stageTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataBoxCopyStartedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataBoxCopyStartedEventData(document.RootElement); + } + internal partial class DataBoxCopyStartedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataBoxCopyStartedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override DataBoxCopyStartedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxOrderCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxOrderCompletedEventData.Serialization.cs index 871a9ea2ecca5..2f6e1da415e3a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxOrderCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DataBoxOrderCompletedEventData.Serialization.cs @@ -52,12 +52,21 @@ internal static DataBoxOrderCompletedEventData DeserializeDataBoxOrderCompletedE return new DataBoxOrderCompletedEventData(serialNumber, stageName, stageTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataBoxOrderCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataBoxOrderCompletedEventData(document.RootElement); + } + internal partial class DataBoxOrderCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataBoxOrderCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override DataBoxOrderCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceConnectionStateEventInfo.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceConnectionStateEventInfo.Serialization.cs index 764b004a41a68..7839a4d775179 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceConnectionStateEventInfo.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceConnectionStateEventInfo.Serialization.cs @@ -28,5 +28,13 @@ internal static DeviceConnectionStateEventInfo DeserializeDeviceConnectionStateE } return new DeviceConnectionStateEventInfo(sequenceNumber); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceConnectionStateEventInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceConnectionStateEventInfo(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceConnectionStateEventProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceConnectionStateEventProperties.Serialization.cs index 277894c6c90b8..fc64fc0de9f85 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceConnectionStateEventProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceConnectionStateEventProperties.Serialization.cs @@ -50,5 +50,13 @@ internal static DeviceConnectionStateEventProperties DeserializeDeviceConnection } return new DeviceConnectionStateEventProperties(deviceId, moduleId, hubName, deviceConnectionStateEventInfo); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceConnectionStateEventProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceConnectionStateEventProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceLifeCycleEventProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceLifeCycleEventProperties.Serialization.cs index 81f0bf515270b..687696067953a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceLifeCycleEventProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceLifeCycleEventProperties.Serialization.cs @@ -44,5 +44,13 @@ internal static DeviceLifeCycleEventProperties DeserializeDeviceLifeCycleEventPr } return new DeviceLifeCycleEventProperties(deviceId, hubName, twin); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceLifeCycleEventProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceLifeCycleEventProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTelemetryEventProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTelemetryEventProperties.Serialization.cs index 4affbe8af058a..6ff92354f451e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTelemetryEventProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTelemetryEventProperties.Serialization.cs @@ -63,5 +63,13 @@ internal static DeviceTelemetryEventProperties DeserializeDeviceTelemetryEventPr } return new DeviceTelemetryEventProperties(body, properties ?? new ChangeTrackingDictionary(), systemProperties ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceTelemetryEventProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceTelemetryEventProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfo.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfo.Serialization.cs index 0414cc3b5a053..16f6cd613c707 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfo.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfo.Serialization.cs @@ -115,5 +115,13 @@ internal static DeviceTwinInfo DeserializeDeviceTwinInfo(JsonElement element) version, x509Thumbprint); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceTwinInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceTwinInfo(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfoProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfoProperties.Serialization.cs index 723f6fdd4da29..6b562628beaea 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfoProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfoProperties.Serialization.cs @@ -42,5 +42,13 @@ internal static DeviceTwinInfoProperties DeserializeDeviceTwinInfoProperties(Jso } return new DeviceTwinInfoProperties(desired, reported); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceTwinInfoProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceTwinInfoProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfoX509Thumbprint.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfoX509Thumbprint.Serialization.cs index 5aa9b3615c6ef..313702e1e5a0f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfoX509Thumbprint.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinInfoX509Thumbprint.Serialization.cs @@ -34,5 +34,13 @@ internal static DeviceTwinInfoX509Thumbprint DeserializeDeviceTwinInfoX509Thumbp } return new DeviceTwinInfoX509Thumbprint(primaryThumbprint, secondaryThumbprint); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceTwinInfoX509Thumbprint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceTwinInfoX509Thumbprint(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinMetadata.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinMetadata.Serialization.cs index 55ad2aefb2a95..34f6de7048370 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinMetadata.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinMetadata.Serialization.cs @@ -28,5 +28,13 @@ internal static DeviceTwinMetadata DeserializeDeviceTwinMetadata(JsonElement ele } return new DeviceTwinMetadata(lastUpdated); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceTwinMetadata FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceTwinMetadata(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinProperties.Serialization.cs index 7c7e335373d2f..b8d897ff05730 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/DeviceTwinProperties.Serialization.cs @@ -42,5 +42,13 @@ internal static DeviceTwinProperties DeserializeDeviceTwinProperties(JsonElement } return new DeviceTwinProperties(metadata, version); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceTwinProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceTwinProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridEventInternal.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridEventInternal.Serialization.cs index 100ae3eb50345..82224d8f86f53 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridEventInternal.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridEventInternal.Serialization.cs @@ -106,12 +106,29 @@ internal static EventGridEventInternal DeserializeEventGridEventInternal(JsonEle dataVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EventGridEventInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEventGridEventInternal(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class EventGridEventInternalConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EventGridEventInternal model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override EventGridEventInternal Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientCreatedOrUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientCreatedOrUpdatedEventData.Serialization.cs index 46d0f7480aa85..a79d0224b5aa3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientCreatedOrUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientCreatedOrUpdatedEventData.Serialization.cs @@ -97,12 +97,21 @@ internal static EventGridMqttClientCreatedOrUpdatedEventData DeserializeEventGri attributes ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EventGridMqttClientCreatedOrUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEventGridMqttClientCreatedOrUpdatedEventData(document.RootElement); + } + internal partial class EventGridMqttClientCreatedOrUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EventGridMqttClientCreatedOrUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override EventGridMqttClientCreatedOrUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientDeletedEventData.Serialization.cs index a461132f4fa39..50527dd96c20c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientDeletedEventData.Serialization.cs @@ -44,12 +44,21 @@ internal static EventGridMqttClientDeletedEventData DeserializeEventGridMqttClie return new EventGridMqttClientDeletedEventData(clientAuthenticationName, clientName, namespaceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EventGridMqttClientDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEventGridMqttClientDeletedEventData(document.RootElement); + } + internal partial class EventGridMqttClientDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EventGridMqttClientDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override EventGridMqttClientDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientEventData.Serialization.cs index 7333afb1bc642..6fd46c0562db1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientEventData.Serialization.cs @@ -44,12 +44,21 @@ internal static EventGridMqttClientEventData DeserializeEventGridMqttClientEvent return new EventGridMqttClientEventData(clientAuthenticationName, clientName, namespaceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EventGridMqttClientEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEventGridMqttClientEventData(document.RootElement); + } + internal partial class EventGridMqttClientEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EventGridMqttClientEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override EventGridMqttClientEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientSessionConnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientSessionConnectedEventData.Serialization.cs index 3ef8eb6ecff04..f97e4d679bf81 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientSessionConnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientSessionConnectedEventData.Serialization.cs @@ -60,12 +60,21 @@ internal static EventGridMqttClientSessionConnectedEventData DeserializeEventGri return new EventGridMqttClientSessionConnectedEventData(clientAuthenticationName, clientName, namespaceName, clientSessionName, sequenceNumber); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EventGridMqttClientSessionConnectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEventGridMqttClientSessionConnectedEventData(document.RootElement); + } + internal partial class EventGridMqttClientSessionConnectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EventGridMqttClientSessionConnectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override EventGridMqttClientSessionConnectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientSessionDisconnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientSessionDisconnectedEventData.Serialization.cs index 6e8278c7c6f8e..357e1bb3cc948 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientSessionDisconnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventGridMqttClientSessionDisconnectedEventData.Serialization.cs @@ -76,12 +76,21 @@ internal static EventGridMqttClientSessionDisconnectedEventData DeserializeEvent disconnectionReason); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EventGridMqttClientSessionDisconnectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEventGridMqttClientSessionDisconnectedEventData(document.RootElement); + } + internal partial class EventGridMqttClientSessionDisconnectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EventGridMqttClientSessionDisconnectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override EventGridMqttClientSessionDisconnectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventHubCaptureFileCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventHubCaptureFileCreatedEventData.Serialization.cs index 117c46ab53ebb..80b2788d7c088 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventHubCaptureFileCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/EventHubCaptureFileCreatedEventData.Serialization.cs @@ -113,12 +113,21 @@ internal static EventHubCaptureFileCreatedEventData DeserializeEventHubCaptureFi lastEnqueueTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EventHubCaptureFileCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEventHubCaptureFileCreatedEventData(document.RootElement); + } + internal partial class EventHubCaptureFileCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EventHubCaptureFileCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override EventHubCaptureFileCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageCreatedEventData.Serialization.cs index fcdeb7af9c1e5..9e09ee96d5897 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageCreatedEventData.Serialization.cs @@ -72,12 +72,21 @@ internal static HealthcareDicomImageCreatedEventData DeserializeHealthcareDicomI sequenceNumber); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareDicomImageCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareDicomImageCreatedEventData(document.RootElement); + } + internal partial class HealthcareDicomImageCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HealthcareDicomImageCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override HealthcareDicomImageCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageDeletedEventData.Serialization.cs index 594e37d33a453..6a40d69eb6e4c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageDeletedEventData.Serialization.cs @@ -72,12 +72,21 @@ internal static HealthcareDicomImageDeletedEventData DeserializeHealthcareDicomI sequenceNumber); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareDicomImageDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareDicomImageDeletedEventData(document.RootElement); + } + internal partial class HealthcareDicomImageDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HealthcareDicomImageDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override HealthcareDicomImageDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageUpdatedEventData.Serialization.cs index 955d9d34a910f..f79109d3b5455 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareDicomImageUpdatedEventData.Serialization.cs @@ -72,12 +72,21 @@ internal static HealthcareDicomImageUpdatedEventData DeserializeHealthcareDicomI sequenceNumber); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareDicomImageUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareDicomImageUpdatedEventData(document.RootElement); + } + internal partial class HealthcareDicomImageUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HealthcareDicomImageUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override HealthcareDicomImageUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceCreatedEventData.Serialization.cs index 2c0cf9181b06d..cc64668e05f35 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceCreatedEventData.Serialization.cs @@ -58,12 +58,21 @@ internal static HealthcareFhirResourceCreatedEventData DeserializeHealthcareFhir return new HealthcareFhirResourceCreatedEventData(resourceType, resourceFhirAccount, resourceFhirId, resourceVersionId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareFhirResourceCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareFhirResourceCreatedEventData(document.RootElement); + } + internal partial class HealthcareFhirResourceCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HealthcareFhirResourceCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override HealthcareFhirResourceCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceDeletedEventData.Serialization.cs index 089a80ec95c04..6b291c036b1d3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceDeletedEventData.Serialization.cs @@ -58,12 +58,21 @@ internal static HealthcareFhirResourceDeletedEventData DeserializeHealthcareFhir return new HealthcareFhirResourceDeletedEventData(resourceType, resourceFhirAccount, resourceFhirId, resourceVersionId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareFhirResourceDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareFhirResourceDeletedEventData(document.RootElement); + } + internal partial class HealthcareFhirResourceDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HealthcareFhirResourceDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override HealthcareFhirResourceDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceUpdatedEventData.Serialization.cs index be613de90d23f..bdeafeb729afb 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/HealthcareFhirResourceUpdatedEventData.Serialization.cs @@ -58,12 +58,21 @@ internal static HealthcareFhirResourceUpdatedEventData DeserializeHealthcareFhir return new HealthcareFhirResourceUpdatedEventData(resourceType, resourceFhirAccount, resourceFhirId, resourceVersionId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareFhirResourceUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareFhirResourceUpdatedEventData(document.RootElement); + } + internal partial class HealthcareFhirResourceUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HealthcareFhirResourceUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override HealthcareFhirResourceUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceConnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceConnectedEventData.Serialization.cs index 28889e57abb42..a88e8555a7911 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceConnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceConnectedEventData.Serialization.cs @@ -54,12 +54,21 @@ internal static IotHubDeviceConnectedEventData DeserializeIotHubDeviceConnectedE return new IotHubDeviceConnectedEventData(deviceId, moduleId, hubName, deviceConnectionStateEventInfo); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IotHubDeviceConnectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIotHubDeviceConnectedEventData(document.RootElement); + } + internal partial class IotHubDeviceConnectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IotHubDeviceConnectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override IotHubDeviceConnectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceCreatedEventData.Serialization.cs index d0f0239deaa0d..de3dfc8fe8700 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceCreatedEventData.Serialization.cs @@ -48,12 +48,21 @@ internal static IotHubDeviceCreatedEventData DeserializeIotHubDeviceCreatedEvent return new IotHubDeviceCreatedEventData(deviceId, hubName, twin); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IotHubDeviceCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIotHubDeviceCreatedEventData(document.RootElement); + } + internal partial class IotHubDeviceCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IotHubDeviceCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override IotHubDeviceCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceDeletedEventData.Serialization.cs index 4396e18f5fd8c..6d51f0c59c430 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceDeletedEventData.Serialization.cs @@ -48,12 +48,21 @@ internal static IotHubDeviceDeletedEventData DeserializeIotHubDeviceDeletedEvent return new IotHubDeviceDeletedEventData(deviceId, hubName, twin); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IotHubDeviceDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIotHubDeviceDeletedEventData(document.RootElement); + } + internal partial class IotHubDeviceDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IotHubDeviceDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override IotHubDeviceDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceDisconnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceDisconnectedEventData.Serialization.cs index 26eacb4c8e722..cc158efadc74d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceDisconnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceDisconnectedEventData.Serialization.cs @@ -54,12 +54,21 @@ internal static IotHubDeviceDisconnectedEventData DeserializeIotHubDeviceDisconn return new IotHubDeviceDisconnectedEventData(deviceId, moduleId, hubName, deviceConnectionStateEventInfo); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IotHubDeviceDisconnectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIotHubDeviceDisconnectedEventData(document.RootElement); + } + internal partial class IotHubDeviceDisconnectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IotHubDeviceDisconnectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override IotHubDeviceDisconnectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceTelemetryEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceTelemetryEventData.Serialization.cs index 80d3a1617a89f..690feb22c9490 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceTelemetryEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/IotHubDeviceTelemetryEventData.Serialization.cs @@ -67,12 +67,21 @@ internal static IotHubDeviceTelemetryEventData DeserializeIotHubDeviceTelemetryE return new IotHubDeviceTelemetryEventData(body, properties ?? new ChangeTrackingDictionary(), systemProperties ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IotHubDeviceTelemetryEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIotHubDeviceTelemetryEventData(document.RootElement); + } + internal partial class IotHubDeviceTelemetryEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IotHubDeviceTelemetryEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override IotHubDeviceTelemetryEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultAccessPolicyChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultAccessPolicyChangedEventData.Serialization.cs index 0dc8c02c38680..7b4d652e0c7b0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultAccessPolicyChangedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultAccessPolicyChangedEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultAccessPolicyChangedEventData DeserializeKeyVaultAccessPo exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultAccessPolicyChangedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultAccessPolicyChangedEventData(document.RootElement); + } + internal partial class KeyVaultAccessPolicyChangedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultAccessPolicyChangedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultAccessPolicyChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateExpiredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateExpiredEventData.Serialization.cs index c3c192a8cf574..633693633d1d1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateExpiredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateExpiredEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultCertificateExpiredEventData DeserializeKeyVaultCertifica exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultCertificateExpiredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultCertificateExpiredEventData(document.RootElement); + } + internal partial class KeyVaultCertificateExpiredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultCertificateExpiredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultCertificateExpiredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateNearExpiryEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateNearExpiryEventData.Serialization.cs index b1a8a3909b42d..9a249b717a9d7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateNearExpiryEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateNearExpiryEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultCertificateNearExpiryEventData DeserializeKeyVaultCertif exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultCertificateNearExpiryEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultCertificateNearExpiryEventData(document.RootElement); + } + internal partial class KeyVaultCertificateNearExpiryEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultCertificateNearExpiryEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultCertificateNearExpiryEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateNewVersionCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateNewVersionCreatedEventData.Serialization.cs index d8c9c91a714fd..b57b32c35e8cf 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateNewVersionCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultCertificateNewVersionCreatedEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultCertificateNewVersionCreatedEventData DeserializeKeyVaul exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultCertificateNewVersionCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultCertificateNewVersionCreatedEventData(document.RootElement); + } + internal partial class KeyVaultCertificateNewVersionCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultCertificateNewVersionCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultCertificateNewVersionCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyExpiredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyExpiredEventData.Serialization.cs index 6f6adf9c82b5f..e8eee354d81f2 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyExpiredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyExpiredEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultKeyExpiredEventData DeserializeKeyVaultKeyExpiredEventDa exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultKeyExpiredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultKeyExpiredEventData(document.RootElement); + } + internal partial class KeyVaultKeyExpiredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultKeyExpiredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultKeyExpiredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyNearExpiryEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyNearExpiryEventData.Serialization.cs index fed7d334e6957..f8eeac2e9e6ac 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyNearExpiryEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyNearExpiryEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultKeyNearExpiryEventData DeserializeKeyVaultKeyNearExpiryE exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultKeyNearExpiryEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultKeyNearExpiryEventData(document.RootElement); + } + internal partial class KeyVaultKeyNearExpiryEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultKeyNearExpiryEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultKeyNearExpiryEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyNewVersionCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyNewVersionCreatedEventData.Serialization.cs index 3918bc1c487ee..93cef853344b3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyNewVersionCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultKeyNewVersionCreatedEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultKeyNewVersionCreatedEventData DeserializeKeyVaultKeyNewV exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultKeyNewVersionCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultKeyNewVersionCreatedEventData(document.RootElement); + } + internal partial class KeyVaultKeyNewVersionCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultKeyNewVersionCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultKeyNewVersionCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretExpiredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretExpiredEventData.Serialization.cs index 405f5e7e33813..21549da060b21 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretExpiredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretExpiredEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultSecretExpiredEventData DeserializeKeyVaultSecretExpiredE exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultSecretExpiredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultSecretExpiredEventData(document.RootElement); + } + internal partial class KeyVaultSecretExpiredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultSecretExpiredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultSecretExpiredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretNearExpiryEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretNearExpiryEventData.Serialization.cs index f9c928b133a64..3fe9f4d261320 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretNearExpiryEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretNearExpiryEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultSecretNearExpiryEventData DeserializeKeyVaultSecretNearE exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultSecretNearExpiryEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultSecretNearExpiryEventData(document.RootElement); + } + internal partial class KeyVaultSecretNearExpiryEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultSecretNearExpiryEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultSecretNearExpiryEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretNewVersionCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretNewVersionCreatedEventData.Serialization.cs index a6f4a8598ff36..4123b2756e765 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretNewVersionCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/KeyVaultSecretNewVersionCreatedEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static KeyVaultSecretNewVersionCreatedEventData DeserializeKeyVaultSecr exp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultSecretNewVersionCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultSecretNewVersionCreatedEventData(document.RootElement); + } + internal partial class KeyVaultSecretNewVersionCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KeyVaultSecretNewVersionCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KeyVaultSecretNewVersionCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesDatasetDriftDetectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesDatasetDriftDetectedEventData.Serialization.cs index 2ff92a172ee07..0319edad1ebb5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesDatasetDriftDetectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesDatasetDriftDetectedEventData.Serialization.cs @@ -94,12 +94,21 @@ internal static MachineLearningServicesDatasetDriftDetectedEventData Deserialize endTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MachineLearningServicesDatasetDriftDetectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMachineLearningServicesDatasetDriftDetectedEventData(document.RootElement); + } + internal partial class MachineLearningServicesDatasetDriftDetectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MachineLearningServicesDatasetDriftDetectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MachineLearningServicesDatasetDriftDetectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesModelDeployedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesModelDeployedEventData.Serialization.cs index 5c2c785f30a6e..d540efc2600c6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesModelDeployedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesModelDeployedEventData.Serialization.cs @@ -64,12 +64,21 @@ internal static MachineLearningServicesModelDeployedEventData DeserializeMachine return new MachineLearningServicesModelDeployedEventData(serviceName, serviceComputeType, modelIds, serviceTags, serviceProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MachineLearningServicesModelDeployedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMachineLearningServicesModelDeployedEventData(document.RootElement); + } + internal partial class MachineLearningServicesModelDeployedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MachineLearningServicesModelDeployedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MachineLearningServicesModelDeployedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesModelRegisteredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesModelRegisteredEventData.Serialization.cs index 8d7537539ca97..361a365b941cd 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesModelRegisteredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesModelRegisteredEventData.Serialization.cs @@ -58,12 +58,21 @@ internal static MachineLearningServicesModelRegisteredEventData DeserializeMachi return new MachineLearningServicesModelRegisteredEventData(modelName, modelVersion, modelTags, modelProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MachineLearningServicesModelRegisteredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMachineLearningServicesModelRegisteredEventData(document.RootElement); + } + internal partial class MachineLearningServicesModelRegisteredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MachineLearningServicesModelRegisteredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MachineLearningServicesModelRegisteredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesRunCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesRunCompletedEventData.Serialization.cs index 7b956dd2ec92d..bfec0de06bca0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesRunCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesRunCompletedEventData.Serialization.cs @@ -76,12 +76,21 @@ internal static MachineLearningServicesRunCompletedEventData DeserializeMachineL runProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MachineLearningServicesRunCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMachineLearningServicesRunCompletedEventData(document.RootElement); + } + internal partial class MachineLearningServicesRunCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MachineLearningServicesRunCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MachineLearningServicesRunCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesRunStatusChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesRunStatusChangedEventData.Serialization.cs index 120e7e50053ff..a143c8c234e88 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesRunStatusChangedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MachineLearningServicesRunStatusChangedEventData.Serialization.cs @@ -83,12 +83,21 @@ internal static MachineLearningServicesRunStatusChangedEventData DeserializeMach runStatus); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MachineLearningServicesRunStatusChangedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMachineLearningServicesRunStatusChangedEventData(document.RootElement); + } + internal partial class MachineLearningServicesRunStatusChangedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MachineLearningServicesRunStatusChangedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MachineLearningServicesRunStatusChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEnteredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEnteredEventData.Serialization.cs index c64dbe8697ab4..e932d8b8848b9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEnteredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEnteredEventData.Serialization.cs @@ -82,12 +82,21 @@ internal static MapsGeofenceEnteredEventData DeserializeMapsGeofenceEnteredEvent return new MapsGeofenceEnteredEventData(expiredGeofenceGeometryId ?? new ChangeTrackingList(), geometries ?? new ChangeTrackingList(), invalidPeriodGeofenceGeometryId ?? new ChangeTrackingList(), isEventPublished); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MapsGeofenceEnteredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMapsGeofenceEnteredEventData(document.RootElement); + } + internal partial class MapsGeofenceEnteredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MapsGeofenceEnteredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MapsGeofenceEnteredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.Serialization.cs index e0a96ad7c5ed6..efb2987d3dd2c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceEventProperties.Serialization.cs @@ -78,5 +78,13 @@ internal static MapsGeofenceEventProperties DeserializeMapsGeofenceEventProperti } return new MapsGeofenceEventProperties(expiredGeofenceGeometryId ?? new ChangeTrackingList(), geometries ?? new ChangeTrackingList(), invalidPeriodGeofenceGeometryId ?? new ChangeTrackingList(), isEventPublished); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MapsGeofenceEventProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMapsGeofenceEventProperties(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceExitedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceExitedEventData.Serialization.cs index b864f0dd3c91c..2e968111912b9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceExitedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceExitedEventData.Serialization.cs @@ -82,12 +82,21 @@ internal static MapsGeofenceExitedEventData DeserializeMapsGeofenceExitedEventDa return new MapsGeofenceExitedEventData(expiredGeofenceGeometryId ?? new ChangeTrackingList(), geometries ?? new ChangeTrackingList(), invalidPeriodGeofenceGeometryId ?? new ChangeTrackingList(), isEventPublished); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MapsGeofenceExitedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMapsGeofenceExitedEventData(document.RootElement); + } + internal partial class MapsGeofenceExitedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MapsGeofenceExitedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MapsGeofenceExitedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceGeometry.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceGeometry.Serialization.cs index fcac4a9b1a9c9..155a0c98b8c7e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceGeometry.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceGeometry.Serialization.cs @@ -76,5 +76,13 @@ internal static MapsGeofenceGeometry DeserializeMapsGeofenceGeometry(JsonElement nearestLon, udId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MapsGeofenceGeometry FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMapsGeofenceGeometry(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceResultEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceResultEventData.Serialization.cs index fe57a73bc4370..f802bcd9f3c7c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceResultEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MapsGeofenceResultEventData.Serialization.cs @@ -82,12 +82,21 @@ internal static MapsGeofenceResultEventData DeserializeMapsGeofenceResultEventDa return new MapsGeofenceResultEventData(expiredGeofenceGeometryId ?? new ChangeTrackingList(), geometries ?? new ChangeTrackingList(), invalidPeriodGeofenceGeometryId ?? new ChangeTrackingList(), isEventPublished); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MapsGeofenceResultEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMapsGeofenceResultEventData(document.RootElement); + } + internal partial class MapsGeofenceResultEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MapsGeofenceResultEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MapsGeofenceResultEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.Serialization.cs index 2650e9541a587..c2a7f8dac1268 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCanceledEventData.Serialization.cs @@ -77,12 +77,21 @@ internal static MediaJobCanceledEventData DeserializeMediaJobCanceledEventData(J return new MediaJobCanceledEventData(previousState, state, correlationData ?? new ChangeTrackingDictionary(), outputs ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobCanceledEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobCanceledEventData(document.RootElement); + } + internal partial class MediaJobCanceledEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobCanceledEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobCanceledEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCancelingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCancelingEventData.Serialization.cs index 8c56efd931aa1..59918fe03ea2e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCancelingEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobCancelingEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobCancelingEventData DeserializeMediaJobCancelingEventData return new MediaJobCancelingEventData(previousState, state, correlationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobCancelingEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobCancelingEventData(document.RootElement); + } + internal partial class MediaJobCancelingEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobCancelingEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobCancelingEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.Serialization.cs index 6e76e38046cbf..2c5e9b1782e43 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobError.Serialization.cs @@ -74,5 +74,13 @@ internal static MediaJobError DeserializeMediaJobError(JsonElement element) } return new MediaJobError(code, message, category, retry, details ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaJobError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobError(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErrorDetail.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErrorDetail.Serialization.cs index cd1c2a4bf7067..38e35d8300a13 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErrorDetail.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErrorDetail.Serialization.cs @@ -34,5 +34,13 @@ internal static MediaJobErrorDetail DeserializeMediaJobErrorDetail(JsonElement e } return new MediaJobErrorDetail(code, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaJobErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobErrorDetail(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.Serialization.cs index a8dd6586bc905..caff835f548a7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobErroredEventData.Serialization.cs @@ -77,12 +77,21 @@ internal static MediaJobErroredEventData DeserializeMediaJobErroredEventData(Jso return new MediaJobErroredEventData(previousState, state, correlationData ?? new ChangeTrackingDictionary(), outputs ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobErroredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobErroredEventData(document.RootElement); + } + internal partial class MediaJobErroredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobErroredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobErroredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.Serialization.cs index 4bb302b03652b..46320efddabf5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobFinishedEventData.Serialization.cs @@ -77,12 +77,21 @@ internal static MediaJobFinishedEventData DeserializeMediaJobFinishedEventData(J return new MediaJobFinishedEventData(previousState, state, correlationData ?? new ChangeTrackingDictionary(), outputs ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobFinishedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobFinishedEventData(document.RootElement); + } + internal partial class MediaJobFinishedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobFinishedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobFinishedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutput.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutput.Serialization.cs index 6147b40157eee..4e072329276a8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutput.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutput.Serialization.cs @@ -27,5 +27,13 @@ internal static MediaJobOutput DeserializeMediaJobOutput(JsonElement element) } return UnknownMediaJobOutput.DeserializeUnknownMediaJobOutput(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaJobOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutput(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputAsset.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputAsset.Serialization.cs index 611709cecef5e..b1498039c9b89 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputAsset.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputAsset.Serialization.cs @@ -68,5 +68,13 @@ internal static MediaJobOutputAsset DeserializeMediaJobOutputAsset(JsonElement e state, assetName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobOutputAsset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutputAsset(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputCanceledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputCanceledEventData.Serialization.cs index 7954810e9b549..239012504e4ae 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputCanceledEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputCanceledEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobOutputCanceledEventData DeserializeMediaJobOutputCancele return new MediaJobOutputCanceledEventData(previousState, output, jobCorrelationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobOutputCanceledEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutputCanceledEventData(document.RootElement); + } + internal partial class MediaJobOutputCanceledEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobOutputCanceledEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobOutputCanceledEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputCancelingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputCancelingEventData.Serialization.cs index 449b952f9a3d0..5707178cacc1c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputCancelingEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputCancelingEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobOutputCancelingEventData DeserializeMediaJobOutputCancel return new MediaJobOutputCancelingEventData(previousState, output, jobCorrelationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobOutputCancelingEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutputCancelingEventData(document.RootElement); + } + internal partial class MediaJobOutputCancelingEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobOutputCancelingEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobOutputCancelingEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputErroredEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputErroredEventData.Serialization.cs index f4db3f762e400..2ac7f672bff2f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputErroredEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputErroredEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobOutputErroredEventData DeserializeMediaJobOutputErroredE return new MediaJobOutputErroredEventData(previousState, output, jobCorrelationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobOutputErroredEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutputErroredEventData(document.RootElement); + } + internal partial class MediaJobOutputErroredEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobOutputErroredEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobOutputErroredEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputFinishedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputFinishedEventData.Serialization.cs index 457f769c987c3..852e7c2428908 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputFinishedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputFinishedEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobOutputFinishedEventData DeserializeMediaJobOutputFinishe return new MediaJobOutputFinishedEventData(previousState, output, jobCorrelationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobOutputFinishedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutputFinishedEventData(document.RootElement); + } + internal partial class MediaJobOutputFinishedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobOutputFinishedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobOutputFinishedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputProcessingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputProcessingEventData.Serialization.cs index 2aa283d7e43d6..4b0c83ab5a01d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputProcessingEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputProcessingEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobOutputProcessingEventData DeserializeMediaJobOutputProce return new MediaJobOutputProcessingEventData(previousState, output, jobCorrelationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobOutputProcessingEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutputProcessingEventData(document.RootElement); + } + internal partial class MediaJobOutputProcessingEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobOutputProcessingEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobOutputProcessingEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputProgressEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputProgressEventData.Serialization.cs index 350d2a1193482..4509f4ba2e9f1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputProgressEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputProgressEventData.Serialization.cs @@ -58,12 +58,21 @@ internal static MediaJobOutputProgressEventData DeserializeMediaJobOutputProgres return new MediaJobOutputProgressEventData(label, progress, jobCorrelationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaJobOutputProgressEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutputProgressEventData(document.RootElement); + } + internal partial class MediaJobOutputProgressEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobOutputProgressEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobOutputProgressEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputScheduledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputScheduledEventData.Serialization.cs index 057f33045b0cb..3195a6000bfaf 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputScheduledEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputScheduledEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobOutputScheduledEventData DeserializeMediaJobOutputSchedu return new MediaJobOutputScheduledEventData(previousState, output, jobCorrelationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobOutputScheduledEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutputScheduledEventData(document.RootElement); + } + internal partial class MediaJobOutputScheduledEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobOutputScheduledEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobOutputScheduledEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputStateChangeEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputStateChangeEventData.Serialization.cs index 789299989ef99..a4e7f6bf09333 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputStateChangeEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobOutputStateChangeEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobOutputStateChangeEventData DeserializeMediaJobOutputStat return new MediaJobOutputStateChangeEventData(previousState, output, jobCorrelationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaJobOutputStateChangeEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobOutputStateChangeEventData(document.RootElement); + } + internal partial class MediaJobOutputStateChangeEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobOutputStateChangeEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobOutputStateChangeEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobProcessingEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobProcessingEventData.Serialization.cs index 84a139dd83a7e..06563ae1502ba 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobProcessingEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobProcessingEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobProcessingEventData DeserializeMediaJobProcessingEventDa return new MediaJobProcessingEventData(previousState, state, correlationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobProcessingEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobProcessingEventData(document.RootElement); + } + internal partial class MediaJobProcessingEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobProcessingEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobProcessingEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobScheduledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobScheduledEventData.Serialization.cs index c2192d467ee85..5a571ca28cddc 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobScheduledEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobScheduledEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobScheduledEventData DeserializeMediaJobScheduledEventData return new MediaJobScheduledEventData(previousState, state, correlationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MediaJobScheduledEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobScheduledEventData(document.RootElement); + } + internal partial class MediaJobScheduledEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobScheduledEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobScheduledEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobStateChangeEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobStateChangeEventData.Serialization.cs index 97c78f8a1de30..151b9524130f2 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobStateChangeEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaJobStateChangeEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static MediaJobStateChangeEventData DeserializeMediaJobStateChangeEvent return new MediaJobStateChangeEventData(previousState, state, correlationData ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaJobStateChangeEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaJobStateChangeEventData(document.RootElement); + } + internal partial class MediaJobStateChangeEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaJobStateChangeEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaJobStateChangeEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventChannelArchiveHeartbeatEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventChannelArchiveHeartbeatEventData.Serialization.cs index 8a49a6ea491e1..cfa0afe064f7b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventChannelArchiveHeartbeatEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventChannelArchiveHeartbeatEventData.Serialization.cs @@ -38,12 +38,21 @@ internal static MediaLiveEventChannelArchiveHeartbeatEventData DeserializeMediaL return new MediaLiveEventChannelArchiveHeartbeatEventData(channelLatencyMs, latencyResultCode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventChannelArchiveHeartbeatEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventChannelArchiveHeartbeatEventData(document.RootElement); + } + internal partial class MediaLiveEventChannelArchiveHeartbeatEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventChannelArchiveHeartbeatEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventChannelArchiveHeartbeatEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventConnectionRejectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventConnectionRejectedEventData.Serialization.cs index 7d64d7a583c62..b7c9c41a36ccf 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventConnectionRejectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventConnectionRejectedEventData.Serialization.cs @@ -56,12 +56,21 @@ internal static MediaLiveEventConnectionRejectedEventData DeserializeMediaLiveEv return new MediaLiveEventConnectionRejectedEventData(ingestUrl, streamId, encoderIp, encoderPort, resultCode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventConnectionRejectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventConnectionRejectedEventData(document.RootElement); + } + internal partial class MediaLiveEventConnectionRejectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventConnectionRejectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventConnectionRejectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventEncoderConnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventEncoderConnectedEventData.Serialization.cs index 12e9f55d2f138..9a10c2dea1787 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventEncoderConnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventEncoderConnectedEventData.Serialization.cs @@ -50,12 +50,21 @@ internal static MediaLiveEventEncoderConnectedEventData DeserializeMediaLiveEven return new MediaLiveEventEncoderConnectedEventData(ingestUrl, streamId, encoderIp, encoderPort); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventEncoderConnectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventEncoderConnectedEventData(document.RootElement); + } + internal partial class MediaLiveEventEncoderConnectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventEncoderConnectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventEncoderConnectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventEncoderDisconnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventEncoderDisconnectedEventData.Serialization.cs index 6501110ec16f4..371ac2f9d21ac 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventEncoderDisconnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventEncoderDisconnectedEventData.Serialization.cs @@ -56,12 +56,21 @@ internal static MediaLiveEventEncoderDisconnectedEventData DeserializeMediaLiveE return new MediaLiveEventEncoderDisconnectedEventData(ingestUrl, streamId, encoderIp, encoderPort, resultCode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventEncoderDisconnectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventEncoderDisconnectedEventData(document.RootElement); + } + internal partial class MediaLiveEventEncoderDisconnectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventEncoderDisconnectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventEncoderDisconnectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingDataChunkDroppedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingDataChunkDroppedEventData.Serialization.cs index 751ccb9c4e2f7..e7f3c04eb4bb3 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingDataChunkDroppedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingDataChunkDroppedEventData.Serialization.cs @@ -72,12 +72,21 @@ internal static MediaLiveEventIncomingDataChunkDroppedEventData DeserializeMedia trackName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventIncomingDataChunkDroppedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventIncomingDataChunkDroppedEventData(document.RootElement); + } + internal partial class MediaLiveEventIncomingDataChunkDroppedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventIncomingDataChunkDroppedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventIncomingDataChunkDroppedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingStreamReceivedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingStreamReceivedEventData.Serialization.cs index aed1037c08867..57c2cca910dca 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingStreamReceivedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingStreamReceivedEventData.Serialization.cs @@ -93,12 +93,21 @@ internal static MediaLiveEventIncomingStreamReceivedEventData DeserializeMediaLi timescale); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventIncomingStreamReceivedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventIncomingStreamReceivedEventData(document.RootElement); + } + internal partial class MediaLiveEventIncomingStreamReceivedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventIncomingStreamReceivedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventIncomingStreamReceivedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs index e941a0172e76d..ee1776d606273 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingStreamsOutOfSyncEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static MediaLiveEventIncomingStreamsOutOfSyncEventData DeserializeMedia timescaleOfMaxLastTimestamp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventIncomingStreamsOutOfSyncEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventIncomingStreamsOutOfSyncEventData(document.RootElement); + } + internal partial class MediaLiveEventIncomingStreamsOutOfSyncEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventIncomingStreamsOutOfSyncEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventIncomingStreamsOutOfSyncEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.Serialization.cs index ff459059d991a..04f5a5e23992d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIncomingVideoStreamsOutOfSyncEventData.Serialization.cs @@ -56,12 +56,21 @@ internal static MediaLiveEventIncomingVideoStreamsOutOfSyncEventData Deserialize return new MediaLiveEventIncomingVideoStreamsOutOfSyncEventData(firstTimestamp, firstDuration, secondTimestamp, secondDuration, timescale); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventIncomingVideoStreamsOutOfSyncEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventIncomingVideoStreamsOutOfSyncEventData(document.RootElement); + } + internal partial class MediaLiveEventIncomingVideoStreamsOutOfSyncEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventIncomingVideoStreamsOutOfSyncEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventIncomingVideoStreamsOutOfSyncEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIngestHeartbeatEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIngestHeartbeatEventData.Serialization.cs index b4e51b37a58da..bb095194f44b0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIngestHeartbeatEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventIngestHeartbeatEventData.Serialization.cs @@ -170,12 +170,21 @@ internal static MediaLiveEventIngestHeartbeatEventData DeserializeMediaLiveEvent healthy); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventIngestHeartbeatEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventIngestHeartbeatEventData(document.RootElement); + } + internal partial class MediaLiveEventIngestHeartbeatEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventIngestHeartbeatEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventIngestHeartbeatEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventTrackDiscontinuityDetectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventTrackDiscontinuityDetectedEventData.Serialization.cs index 11ac4a4edfe75..1746d152a6f90 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventTrackDiscontinuityDetectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MediaLiveEventTrackDiscontinuityDetectedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static MediaLiveEventTrackDiscontinuityDetectedEventData DeserializeMed discontinuityGap); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaLiveEventTrackDiscontinuityDetectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaLiveEventTrackDiscontinuityDetectedEventData(document.RootElement); + } + internal partial class MediaLiveEventTrackDiscontinuityDetectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MediaLiveEventTrackDiscontinuityDetectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MediaLiveEventTrackDiscontinuityDetectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MicrosoftTeamsAppIdentifier.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MicrosoftTeamsAppIdentifier.Serialization.cs index 08ad8301016c7..81c6a2eb47333 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MicrosoftTeamsAppIdentifier.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MicrosoftTeamsAppIdentifier.Serialization.cs @@ -38,5 +38,13 @@ internal static MicrosoftTeamsAppIdentifier DeserializeMicrosoftTeamsAppIdentifi } return new MicrosoftTeamsAppIdentifier(appId, cloud); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MicrosoftTeamsAppIdentifier FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftTeamsAppIdentifier(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs index 201168697999f..303f91df0ebca 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/MicrosoftTeamsUserIdentifierModel.Serialization.cs @@ -48,5 +48,13 @@ internal static MicrosoftTeamsUserIdentifierModel DeserializeMicrosoftTeamsUserI } return new MicrosoftTeamsUserIdentifierModel(userId, isAnonymous, cloud); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MicrosoftTeamsUserIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftTeamsUserIdentifierModel(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs index 397ae178392f0..7dda3b70b9ce4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PhoneNumberIdentifierModel.Serialization.cs @@ -28,5 +28,13 @@ internal static PhoneNumberIdentifierModel DeserializePhoneNumberIdentifierModel } return new PhoneNumberIdentifierModel(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PhoneNumberIdentifierModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneNumberIdentifierModel(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateChangedEventData.Serialization.cs index 0e2d658a08d43..48934d26c969c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateChangedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateChangedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static PolicyInsightsPolicyStateChangedEventData DeserializePolicyInsig complianceReasonCode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyInsightsPolicyStateChangedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyInsightsPolicyStateChangedEventData(document.RootElement); + } + internal partial class PolicyInsightsPolicyStateChangedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PolicyInsightsPolicyStateChangedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override PolicyInsightsPolicyStateChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateCreatedEventData.Serialization.cs index 9614e9ac29276..c5d7f6f869829 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateCreatedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static PolicyInsightsPolicyStateCreatedEventData DeserializePolicyInsig complianceReasonCode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyInsightsPolicyStateCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyInsightsPolicyStateCreatedEventData(document.RootElement); + } + internal partial class PolicyInsightsPolicyStateCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PolicyInsightsPolicyStateCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override PolicyInsightsPolicyStateCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateDeletedEventData.Serialization.cs index 70a4d70cb908c..4866e2830c6ce 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/PolicyInsightsPolicyStateDeletedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static PolicyInsightsPolicyStateDeletedEventData DeserializePolicyInsig complianceReasonCode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolicyInsightsPolicyStateDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolicyInsightsPolicyStateDeletedEventData(document.RootElement); + } + internal partial class PolicyInsightsPolicyStateDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PolicyInsightsPolicyStateDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override PolicyInsightsPolicyStateDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisExportRdbCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisExportRdbCompletedEventData.Serialization.cs index a89a395afab55..578a0fa8976a1 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisExportRdbCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisExportRdbCompletedEventData.Serialization.cs @@ -48,12 +48,21 @@ internal static RedisExportRdbCompletedEventData DeserializeRedisExportRdbComple return new RedisExportRdbCompletedEventData(timestamp, name, status); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RedisExportRdbCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRedisExportRdbCompletedEventData(document.RootElement); + } + internal partial class RedisExportRdbCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RedisExportRdbCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RedisExportRdbCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisImportRdbCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisImportRdbCompletedEventData.Serialization.cs index 9c2d16247b04e..bdeb07040f7b5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisImportRdbCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisImportRdbCompletedEventData.Serialization.cs @@ -48,12 +48,21 @@ internal static RedisImportRdbCompletedEventData DeserializeRedisImportRdbComple return new RedisImportRdbCompletedEventData(timestamp, name, status); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RedisImportRdbCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRedisImportRdbCompletedEventData(document.RootElement); + } + internal partial class RedisImportRdbCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RedisImportRdbCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RedisImportRdbCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisPatchingCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisPatchingCompletedEventData.Serialization.cs index ba8307b894b15..57ac181cbd95f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisPatchingCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisPatchingCompletedEventData.Serialization.cs @@ -48,12 +48,21 @@ internal static RedisPatchingCompletedEventData DeserializeRedisPatchingComplete return new RedisPatchingCompletedEventData(timestamp, name, status); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RedisPatchingCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRedisPatchingCompletedEventData(document.RootElement); + } + internal partial class RedisPatchingCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RedisPatchingCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RedisPatchingCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisScalingCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisScalingCompletedEventData.Serialization.cs index 8d03eff02dd5e..8996e32ffdae8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisScalingCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/RedisScalingCompletedEventData.Serialization.cs @@ -48,12 +48,21 @@ internal static RedisScalingCompletedEventData DeserializeRedisScalingCompletedE return new RedisScalingCompletedEventData(timestamp, name, status); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RedisScalingCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRedisScalingCompletedEventData(document.RootElement); + } + internal partial class RedisScalingCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RedisScalingCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RedisScalingCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionCancelEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionCancelEventData.Serialization.cs index 7039380b083c8..c7afc9a53ac7e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionCancelEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionCancelEventData.Serialization.cs @@ -103,12 +103,21 @@ internal static ResourceActionCancelEventData DeserializeResourceActionCancelEve httpRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceActionCancelEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceActionCancelEventData(document.RootElement); + } + internal partial class ResourceActionCancelEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceActionCancelEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceActionCancelEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionFailureEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionFailureEventData.Serialization.cs index 693e81f213709..a4ce0b1d2a7fa 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionFailureEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionFailureEventData.Serialization.cs @@ -103,12 +103,21 @@ internal static ResourceActionFailureEventData DeserializeResourceActionFailureE httpRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceActionFailureEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceActionFailureEventData(document.RootElement); + } + internal partial class ResourceActionFailureEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceActionFailureEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceActionFailureEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionSuccessEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionSuccessEventData.Serialization.cs index 3ab629a4d6977..be6fd7401c9c9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionSuccessEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceActionSuccessEventData.Serialization.cs @@ -103,12 +103,21 @@ internal static ResourceActionSuccessEventData DeserializeResourceActionSuccessE httpRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceActionSuccessEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceActionSuccessEventData(document.RootElement); + } + internal partial class ResourceActionSuccessEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceActionSuccessEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceActionSuccessEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.Serialization.cs index 717a12b89ea7a..7986aa47c86fb 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceAuthorization.Serialization.cs @@ -50,5 +50,13 @@ internal static ResourceAuthorization DeserializeResourceAuthorization(JsonEleme } return new ResourceAuthorization(scope, action, evidence ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceAuthorization FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceAuthorization(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteCancelEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteCancelEventData.Serialization.cs index a941ae2be612f..400db514d8a85 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteCancelEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteCancelEventData.Serialization.cs @@ -103,12 +103,21 @@ internal static ResourceDeleteCancelEventData DeserializeResourceDeleteCancelEve httpRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceDeleteCancelEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceDeleteCancelEventData(document.RootElement); + } + internal partial class ResourceDeleteCancelEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceDeleteCancelEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceDeleteCancelEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteFailureEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteFailureEventData.Serialization.cs index b34a05c08f06c..55ab4d6c3c3d4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteFailureEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteFailureEventData.Serialization.cs @@ -103,12 +103,21 @@ internal static ResourceDeleteFailureEventData DeserializeResourceDeleteFailureE httpRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceDeleteFailureEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceDeleteFailureEventData(document.RootElement); + } + internal partial class ResourceDeleteFailureEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceDeleteFailureEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceDeleteFailureEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteSuccessEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteSuccessEventData.Serialization.cs index 964205fdb744e..46b25ffd1893f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteSuccessEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceDeleteSuccessEventData.Serialization.cs @@ -103,12 +103,21 @@ internal static ResourceDeleteSuccessEventData DeserializeResourceDeleteSuccessE httpRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceDeleteSuccessEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceDeleteSuccessEventData(document.RootElement); + } + internal partial class ResourceDeleteSuccessEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceDeleteSuccessEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceDeleteSuccessEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.Serialization.cs index 9cb1be9149d41..c9c21c53042f9 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceHttpRequest.Serialization.cs @@ -46,5 +46,13 @@ internal static ResourceHttpRequest DeserializeResourceHttpRequest(JsonElement e } return new ResourceHttpRequest(clientRequestId, clientIpAddress, method, url); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceHttpRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceHttpRequest(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsHealthResourcesAnnotatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsHealthResourcesAnnotatedEventData.Serialization.cs index 17b8c5531fcc6..51063c1e22f5c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsHealthResourcesAnnotatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsHealthResourcesAnnotatedEventData.Serialization.cs @@ -52,12 +52,21 @@ internal static ResourceNotificationsHealthResourcesAnnotatedEventData Deseriali return new ResourceNotificationsHealthResourcesAnnotatedEventData(resourceInfo, operationalInfo, apiVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ResourceNotificationsHealthResourcesAnnotatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsHealthResourcesAnnotatedEventData(document.RootElement); + } + internal partial class ResourceNotificationsHealthResourcesAnnotatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceNotificationsHealthResourcesAnnotatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceNotificationsHealthResourcesAnnotatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.Serialization.cs index e0b8b84fddc7b..30cf410d6c872 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData.Serialization.cs @@ -52,12 +52,21 @@ internal static ResourceNotificationsHealthResourcesAvailabilityStatusChangedEve return new ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData(resourceInfo, operationalInfo, apiVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData(document.RootElement); + } + internal partial class ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsOperationalDetails.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsOperationalDetails.Serialization.cs index 2b29d0150de94..3a9c3bff05852 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsOperationalDetails.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsOperationalDetails.Serialization.cs @@ -33,5 +33,13 @@ internal static ResourceNotificationsOperationalDetails DeserializeResourceNotif } return new ResourceNotificationsOperationalDetails(resourceEventTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceNotificationsOperationalDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsOperationalDetails(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceDeletedDetails.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceDeletedDetails.Serialization.cs index c3042ebe05215..e4fc93673c6e4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceDeletedDetails.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceDeletedDetails.Serialization.cs @@ -45,5 +45,13 @@ internal static ResourceNotificationsResourceDeletedDetails DeserializeResourceN } return new ResourceNotificationsResourceDeletedDetails(id, name, type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceNotificationsResourceDeletedDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsResourceDeletedDetails(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceDeletedEventData.Serialization.cs index 4f0c5b57ea7cd..70c3b6da77c78 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceDeletedEventData.Serialization.cs @@ -46,12 +46,21 @@ internal static ResourceNotificationsResourceDeletedEventData DeserializeResourc return new ResourceNotificationsResourceDeletedEventData(resourceInfo, operationalInfo); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceNotificationsResourceDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsResourceDeletedEventData(document.RootElement); + } + internal partial class ResourceNotificationsResourceDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceNotificationsResourceDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceNotificationsResourceDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.Serialization.cs index d7caa9951416c..8ba65e0baea3d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceManagementCreatedOrUpdatedEventData.Serialization.cs @@ -52,12 +52,21 @@ internal static ResourceNotificationsResourceManagementCreatedOrUpdatedEventData return new ResourceNotificationsResourceManagementCreatedOrUpdatedEventData(resourceInfo, operationalInfo, apiVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ResourceNotificationsResourceManagementCreatedOrUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsResourceManagementCreatedOrUpdatedEventData(document.RootElement); + } + internal partial class ResourceNotificationsResourceManagementCreatedOrUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceNotificationsResourceManagementCreatedOrUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceNotificationsResourceManagementCreatedOrUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceManagementDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceManagementDeletedEventData.Serialization.cs index a60a093338115..92dd5464faf5f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceManagementDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceManagementDeletedEventData.Serialization.cs @@ -46,12 +46,21 @@ internal static ResourceNotificationsResourceManagementDeletedEventData Deserial return new ResourceNotificationsResourceManagementDeletedEventData(resourceInfo, operationalInfo); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ResourceNotificationsResourceManagementDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsResourceManagementDeletedEventData(document.RootElement); + } + internal partial class ResourceNotificationsResourceManagementDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceNotificationsResourceManagementDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceNotificationsResourceManagementDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedDetails.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedDetails.Serialization.cs index 4ff4c7eb7e642..18ba3e8488830 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedDetails.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedDetails.Serialization.cs @@ -90,5 +90,13 @@ internal static ResourceNotificationsResourceUpdatedDetails DeserializeResourceN tags ?? new ChangeTrackingDictionary(), properties ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceNotificationsResourceUpdatedDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsResourceUpdatedDetails(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedEventData.Serialization.cs index 5df8a03cf817e..ee5d5756dae89 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedEventData.Serialization.cs @@ -52,12 +52,21 @@ internal static ResourceNotificationsResourceUpdatedEventData DeserializeResourc return new ResourceNotificationsResourceUpdatedEventData(resourceInfo, operationalInfo, apiVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceNotificationsResourceUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceNotificationsResourceUpdatedEventData(document.RootElement); + } + internal partial class ResourceNotificationsResourceUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceNotificationsResourceUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceNotificationsResourceUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteCancelEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteCancelEventData.Serialization.cs index 1d8eca6d482bd..dbebb9eef91ee 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteCancelEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteCancelEventData.Serialization.cs @@ -103,12 +103,21 @@ internal static ResourceWriteCancelEventData DeserializeResourceWriteCancelEvent httpRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceWriteCancelEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceWriteCancelEventData(document.RootElement); + } + internal partial class ResourceWriteCancelEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceWriteCancelEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceWriteCancelEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteFailureEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteFailureEventData.Serialization.cs index 8466ec571f554..25ad7d0018e2e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteFailureEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteFailureEventData.Serialization.cs @@ -103,12 +103,21 @@ internal static ResourceWriteFailureEventData DeserializeResourceWriteFailureEve httpRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceWriteFailureEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceWriteFailureEventData(document.RootElement); + } + internal partial class ResourceWriteFailureEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceWriteFailureEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceWriteFailureEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteSuccessEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteSuccessEventData.Serialization.cs index f27cb6231dfd3..b11ff89f060d7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteSuccessEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceWriteSuccessEventData.Serialization.cs @@ -103,12 +103,21 @@ internal static ResourceWriteSuccessEventData DeserializeResourceWriteSuccessEve httpRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceWriteSuccessEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceWriteSuccessEventData(document.RootElement); + } + internal partial class ResourceWriteSuccessEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResourceWriteSuccessEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ResourceWriteSuccessEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.Serialization.cs index ca7c9b75f87c7..e1c2cc7455209 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData subscriptionName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceBusActiveMessagesAvailablePeriodicNotificationsEventData(document.RootElement); + } + internal partial class ServiceBusActiveMessagesAvailablePeriodicNotificationsEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusActiveMessagesAvailableWithNoListenersEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusActiveMessagesAvailableWithNoListenersEventData.Serialization.cs index 48bcf536c3963..ce4a5aa8cce51 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusActiveMessagesAvailableWithNoListenersEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusActiveMessagesAvailableWithNoListenersEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static ServiceBusActiveMessagesAvailableWithNoListenersEventData Deseri subscriptionName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServiceBusActiveMessagesAvailableWithNoListenersEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceBusActiveMessagesAvailableWithNoListenersEventData(document.RootElement); + } + internal partial class ServiceBusActiveMessagesAvailableWithNoListenersEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ServiceBusActiveMessagesAvailableWithNoListenersEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ServiceBusActiveMessagesAvailableWithNoListenersEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.Serialization.cs index 942b135371dfa..60444c7868f43 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventD subscriptionName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData(document.RootElement); + } + internal partial class ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.Serialization.cs index d42bfbe606b2b..d5b1c891c8ce5 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ServiceBusDeadletterMessagesAvailableWithNoListenersEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static ServiceBusDeadletterMessagesAvailableWithNoListenersEventData De subscriptionName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServiceBusDeadletterMessagesAvailableWithNoListenersEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceBusDeadletterMessagesAvailableWithNoListenersEventData(document.RootElement); + } + internal partial class ServiceBusDeadletterMessagesAvailableWithNoListenersEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ServiceBusDeadletterMessagesAvailableWithNoListenersEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ServiceBusDeadletterMessagesAvailableWithNoListenersEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SignalRServiceClientConnectionConnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SignalRServiceClientConnectionConnectedEventData.Serialization.cs index bb0560d6c57b8..76912cd661155 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SignalRServiceClientConnectionConnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SignalRServiceClientConnectionConnectedEventData.Serialization.cs @@ -54,12 +54,21 @@ internal static SignalRServiceClientConnectionConnectedEventData DeserializeSign return new SignalRServiceClientConnectionConnectedEventData(timestamp, hubName, connectionId, userId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SignalRServiceClientConnectionConnectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSignalRServiceClientConnectionConnectedEventData(document.RootElement); + } + internal partial class SignalRServiceClientConnectionConnectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SignalRServiceClientConnectionConnectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SignalRServiceClientConnectionConnectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SignalRServiceClientConnectionDisconnectedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SignalRServiceClientConnectionDisconnectedEventData.Serialization.cs index 06efe4928aaee..cccfab3216f6d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SignalRServiceClientConnectionDisconnectedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SignalRServiceClientConnectionDisconnectedEventData.Serialization.cs @@ -60,12 +60,21 @@ internal static SignalRServiceClientConnectionDisconnectedEventData DeserializeS return new SignalRServiceClientConnectionDisconnectedEventData(timestamp, hubName, connectionId, userId, errorMessage); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SignalRServiceClientConnectionDisconnectedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSignalRServiceClientConnectionDisconnectedEventData(document.RootElement); + } + internal partial class SignalRServiceClientConnectionDisconnectedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SignalRServiceClientConnectionDisconnectedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SignalRServiceClientConnectionDisconnectedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageAsyncOperationInitiatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageAsyncOperationInitiatedEventData.Serialization.cs index e894c26192fe4..64cf57a774304 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageAsyncOperationInitiatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageAsyncOperationInitiatedEventData.Serialization.cs @@ -104,12 +104,21 @@ internal static StorageAsyncOperationInitiatedEventData DeserializeStorageAsyncO storageDiagnostics); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageAsyncOperationInitiatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageAsyncOperationInitiatedEventData(document.RootElement); + } + internal partial class StorageAsyncOperationInitiatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageAsyncOperationInitiatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageAsyncOperationInitiatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobCreatedEventData.Serialization.cs index 4f559cfa951ac..fd69094430b28 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobCreatedEventData.Serialization.cs @@ -122,12 +122,21 @@ internal static StorageBlobCreatedEventData DeserializeStorageBlobCreatedEventDa storageDiagnostics); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageBlobCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageBlobCreatedEventData(document.RootElement); + } + internal partial class StorageBlobCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageBlobCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageBlobCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobDeletedEventData.Serialization.cs index ab0534d790c27..6067269a7556a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobDeletedEventData.Serialization.cs @@ -93,12 +93,21 @@ internal static StorageBlobDeletedEventData DeserializeStorageBlobDeletedEventDa storageDiagnostics); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageBlobDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageBlobDeletedEventData(document.RootElement); + } + internal partial class StorageBlobDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageBlobDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageBlobDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobInventoryPolicyCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobInventoryPolicyCompletedEventData.Serialization.cs index bd5b3df9f34d0..2ed0a47dc3019 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobInventoryPolicyCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobInventoryPolicyCompletedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static StorageBlobInventoryPolicyCompletedEventData DeserializeStorageB manifestBlobUrl); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageBlobInventoryPolicyCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageBlobInventoryPolicyCompletedEventData(document.RootElement); + } + internal partial class StorageBlobInventoryPolicyCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageBlobInventoryPolicyCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageBlobInventoryPolicyCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobRenamedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobRenamedEventData.Serialization.cs index 276d7a71e7c47..3c324309dcc44 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobRenamedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobRenamedEventData.Serialization.cs @@ -86,12 +86,21 @@ internal static StorageBlobRenamedEventData DeserializeStorageBlobRenamedEventDa storageDiagnostics); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageBlobRenamedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageBlobRenamedEventData(document.RootElement); + } + internal partial class StorageBlobRenamedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageBlobRenamedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageBlobRenamedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobTierChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobTierChangedEventData.Serialization.cs index 23d3fb01b6b3e..c499115c5eb5a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobTierChangedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageBlobTierChangedEventData.Serialization.cs @@ -104,12 +104,21 @@ internal static StorageBlobTierChangedEventData DeserializeStorageBlobTierChange storageDiagnostics); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageBlobTierChangedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageBlobTierChangedEventData(document.RootElement); + } + internal partial class StorageBlobTierChangedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageBlobTierChangedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageBlobTierChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryCreatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryCreatedEventData.Serialization.cs index de23b09ca9aa0..df3d809a63822 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryCreatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryCreatedEventData.Serialization.cs @@ -86,12 +86,21 @@ internal static StorageDirectoryCreatedEventData DeserializeStorageDirectoryCrea storageDiagnostics); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageDirectoryCreatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageDirectoryCreatedEventData(document.RootElement); + } + internal partial class StorageDirectoryCreatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageDirectoryCreatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageDirectoryCreatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryDeletedEventData.Serialization.cs index 78d321335ae3e..6d26b686cf020 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryDeletedEventData.Serialization.cs @@ -86,12 +86,21 @@ internal static StorageDirectoryDeletedEventData DeserializeStorageDirectoryDele storageDiagnostics); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageDirectoryDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageDirectoryDeletedEventData(document.RootElement); + } + internal partial class StorageDirectoryDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageDirectoryDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageDirectoryDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryRenamedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryRenamedEventData.Serialization.cs index c2bdf6a264816..dd13faa5a4463 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryRenamedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageDirectoryRenamedEventData.Serialization.cs @@ -86,12 +86,21 @@ internal static StorageDirectoryRenamedEventData DeserializeStorageDirectoryRena storageDiagnostics); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageDirectoryRenamedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageDirectoryRenamedEventData(document.RootElement); + } + internal partial class StorageDirectoryRenamedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageDirectoryRenamedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageDirectoryRenamedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageLifecyclePolicyActionSummaryDetail.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageLifecyclePolicyActionSummaryDetail.Serialization.cs index 19b68262cba99..c07a88c428851 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageLifecyclePolicyActionSummaryDetail.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageLifecyclePolicyActionSummaryDetail.Serialization.cs @@ -48,5 +48,13 @@ internal static StorageLifecyclePolicyActionSummaryDetail DeserializeStorageLife } return new StorageLifecyclePolicyActionSummaryDetail(totalObjectsCount, successCount, errorList); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageLifecyclePolicyActionSummaryDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageLifecyclePolicyActionSummaryDetail(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageLifecyclePolicyCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageLifecyclePolicyCompletedEventData.Serialization.cs index 790cf1b27ee63..45bd5e792b923 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageLifecyclePolicyCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageLifecyclePolicyCompletedEventData.Serialization.cs @@ -62,12 +62,21 @@ internal static StorageLifecyclePolicyCompletedEventData DeserializeStorageLifec return new StorageLifecyclePolicyCompletedEventData(scheduleTime, deleteSummary, tierToCoolSummary, tierToArchiveSummary); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageLifecyclePolicyCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageLifecyclePolicyCompletedEventData(document.RootElement); + } + internal partial class StorageLifecyclePolicyCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageLifecyclePolicyCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageLifecyclePolicyCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskAssignmentCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskAssignmentCompletedEventData.Serialization.cs index a6922af27e1c0..8b45609859d18 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskAssignmentCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskAssignmentCompletedEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static StorageTaskAssignmentCompletedEventData DeserializeStorageTaskAs return new StorageTaskAssignmentCompletedEventData(status, completedDateTime, taskExecutionId, taskName, summaryReportBlobUrl); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageTaskAssignmentCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageTaskAssignmentCompletedEventData(document.RootElement); + } + internal partial class StorageTaskAssignmentCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageTaskAssignmentCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageTaskAssignmentCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskAssignmentQueuedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskAssignmentQueuedEventData.Serialization.cs index 38870328a2ed8..cd9feef6684ce 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskAssignmentQueuedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskAssignmentQueuedEventData.Serialization.cs @@ -42,12 +42,21 @@ internal static StorageTaskAssignmentQueuedEventData DeserializeStorageTaskAssig return new StorageTaskAssignmentQueuedEventData(queuedDateTime, taskExecutionId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageTaskAssignmentQueuedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageTaskAssignmentQueuedEventData(document.RootElement); + } + internal partial class StorageTaskAssignmentQueuedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageTaskAssignmentQueuedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageTaskAssignmentQueuedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskCompletedEventData.Serialization.cs index 3325ba679eef5..97082cd73c5cd 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskCompletedEventData.Serialization.cs @@ -68,12 +68,21 @@ internal static StorageTaskCompletedEventData DeserializeStorageTaskCompletedEve return new StorageTaskCompletedEventData(status, completedDateTime, taskExecutionId, taskName, summaryReportBlobUrl); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageTaskCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageTaskCompletedEventData(document.RootElement); + } + internal partial class StorageTaskCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageTaskCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageTaskCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskQueuedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskQueuedEventData.Serialization.cs index 61cd3bf6e4947..98165b8ebf89c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskQueuedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/StorageTaskQueuedEventData.Serialization.cs @@ -42,12 +42,21 @@ internal static StorageTaskQueuedEventData DeserializeStorageTaskQueuedEventData return new StorageTaskQueuedEventData(queuedDateTime, taskExecutionId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageTaskQueuedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageTaskQueuedEventData(document.RootElement); + } + internal partial class StorageTaskQueuedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StorageTaskQueuedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override StorageTaskQueuedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionDeletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionDeletedEventData.Serialization.cs index 4643df399c0b7..4498dbf698cf7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionDeletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionDeletedEventData.Serialization.cs @@ -32,12 +32,21 @@ internal static SubscriptionDeletedEventData DeserializeSubscriptionDeletedEvent return new SubscriptionDeletedEventData(eventSubscriptionId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SubscriptionDeletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSubscriptionDeletedEventData(document.RootElement); + } + internal partial class SubscriptionDeletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SubscriptionDeletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SubscriptionDeletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationEventData.Serialization.cs index 795dc322358a0..0eaa3f8ae7699 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationEventData.Serialization.cs @@ -38,12 +38,21 @@ internal static SubscriptionValidationEventData DeserializeSubscriptionValidatio return new SubscriptionValidationEventData(validationCode, validationUrl); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SubscriptionValidationEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSubscriptionValidationEventData(document.RootElement); + } + internal partial class SubscriptionValidationEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SubscriptionValidationEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SubscriptionValidationEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationResponse.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationResponse.Serialization.cs index a4c9cf60638e5..bf8054ef32d2a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationResponse.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationResponse.Serialization.cs @@ -44,12 +44,29 @@ internal static SubscriptionValidationResponse DeserializeSubscriptionValidation return new SubscriptionValidationResponse(validationResponse); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SubscriptionValidationResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSubscriptionValidationResponse(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SubscriptionValidationResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SubscriptionValidationResponse model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SubscriptionValidationResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/UnknownMediaJobOutput.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/UnknownMediaJobOutput.Serialization.cs index f4509b25c2d7e..58d138503a43d 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/UnknownMediaJobOutput.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/UnknownMediaJobOutput.Serialization.cs @@ -57,5 +57,13 @@ internal static UnknownMediaJobOutput DeserializeUnknownMediaJobOutput(JsonEleme } return new UnknownMediaJobOutput(odataType, error, label, progress, state); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownMediaJobOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownMediaJobOutput(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppServicePlanUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppServicePlanUpdatedEventData.Serialization.cs index ec1ff11ce2daa..693285d3e1a15 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppServicePlanUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppServicePlanUpdatedEventData.Serialization.cs @@ -90,12 +90,21 @@ internal static WebAppServicePlanUpdatedEventData DeserializeWebAppServicePlanUp verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebAppServicePlanUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebAppServicePlanUpdatedEventData(document.RootElement); + } + internal partial class WebAppServicePlanUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebAppServicePlanUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebAppServicePlanUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppServicePlanUpdatedEventDataSku.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppServicePlanUpdatedEventDataSku.Serialization.cs index 0704d12776a83..cf6b4d4101862 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppServicePlanUpdatedEventDataSku.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppServicePlanUpdatedEventDataSku.Serialization.cs @@ -52,5 +52,13 @@ internal static WebAppServicePlanUpdatedEventDataSku DeserializeWebAppServicePla } return new WebAppServicePlanUpdatedEventDataSku(name, tier, size, family, capacity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebAppServicePlanUpdatedEventDataSku FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebAppServicePlanUpdatedEventDataSku(document.RootElement); + } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppUpdatedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppUpdatedEventData.Serialization.cs index a9a623a8558fa..7a66b2d90acd8 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppUpdatedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebAppUpdatedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebAppUpdatedEventData DeserializeWebAppUpdatedEventData(JsonEle verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebAppUpdatedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebAppUpdatedEventData(document.RootElement); + } + internal partial class WebAppUpdatedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebAppUpdatedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebAppUpdatedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationCompletedEventData.Serialization.cs index 235e3bbc2af1c..d9b451802746a 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationCompletedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebBackupOperationCompletedEventData DeserializeWebBackupOperati verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebBackupOperationCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebBackupOperationCompletedEventData(document.RootElement); + } + internal partial class WebBackupOperationCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebBackupOperationCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebBackupOperationCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationFailedEventData.Serialization.cs index 951a9e47c463e..b813847ec6caf 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationFailedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebBackupOperationFailedEventData DeserializeWebBackupOperationF verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebBackupOperationFailedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebBackupOperationFailedEventData(document.RootElement); + } + internal partial class WebBackupOperationFailedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebBackupOperationFailedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebBackupOperationFailedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationStartedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationStartedEventData.Serialization.cs index a7a55731f6cbc..18b6908252317 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationStartedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebBackupOperationStartedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebBackupOperationStartedEventData DeserializeWebBackupOperation verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebBackupOperationStartedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebBackupOperationStartedEventData(document.RootElement); + } + internal partial class WebBackupOperationStartedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebBackupOperationStartedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebBackupOperationStartedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationCompletedEventData.Serialization.cs index 7dbfb7f265dbc..aa92eb101c413 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationCompletedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebRestoreOperationCompletedEventData DeserializeWebRestoreOpera verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebRestoreOperationCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebRestoreOperationCompletedEventData(document.RootElement); + } + internal partial class WebRestoreOperationCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebRestoreOperationCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebRestoreOperationCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationFailedEventData.Serialization.cs index 5ec479934d015..5f0a2dfbdc256 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationFailedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebRestoreOperationFailedEventData DeserializeWebRestoreOperatio verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebRestoreOperationFailedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebRestoreOperationFailedEventData(document.RootElement); + } + internal partial class WebRestoreOperationFailedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebRestoreOperationFailedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebRestoreOperationFailedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationStartedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationStartedEventData.Serialization.cs index a61745ba4b018..698ce61c761ad 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationStartedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebRestoreOperationStartedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebRestoreOperationStartedEventData DeserializeWebRestoreOperati verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebRestoreOperationStartedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebRestoreOperationStartedEventData(document.RootElement); + } + internal partial class WebRestoreOperationStartedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebRestoreOperationStartedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebRestoreOperationStartedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapCompletedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapCompletedEventData.Serialization.cs index 12adea66b64cd..c77b62398b685 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapCompletedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapCompletedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebSlotSwapCompletedEventData DeserializeWebSlotSwapCompletedEve verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebSlotSwapCompletedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebSlotSwapCompletedEventData(document.RootElement); + } + internal partial class WebSlotSwapCompletedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebSlotSwapCompletedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebSlotSwapCompletedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapFailedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapFailedEventData.Serialization.cs index a6e699e877a43..3f520ab8da6ab 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapFailedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapFailedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebSlotSwapFailedEventData DeserializeWebSlotSwapFailedEventData verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebSlotSwapFailedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebSlotSwapFailedEventData(document.RootElement); + } + internal partial class WebSlotSwapFailedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebSlotSwapFailedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebSlotSwapFailedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapStartedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapStartedEventData.Serialization.cs index d491f3ac9aad1..9b9c6b0acbfd4 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapStartedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapStartedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebSlotSwapStartedEventData DeserializeWebSlotSwapStartedEventDa verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebSlotSwapStartedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebSlotSwapStartedEventData(document.RootElement); + } + internal partial class WebSlotSwapStartedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebSlotSwapStartedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebSlotSwapStartedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapWithPreviewCancelledEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapWithPreviewCancelledEventData.Serialization.cs index eb7a7de9d76b5..d2436aafb0747 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapWithPreviewCancelledEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapWithPreviewCancelledEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebSlotSwapWithPreviewCancelledEventData DeserializeWebSlotSwapW verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebSlotSwapWithPreviewCancelledEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebSlotSwapWithPreviewCancelledEventData(document.RootElement); + } + internal partial class WebSlotSwapWithPreviewCancelledEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebSlotSwapWithPreviewCancelledEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebSlotSwapWithPreviewCancelledEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapWithPreviewStartedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapWithPreviewStartedEventData.Serialization.cs index d711c4d64e78d..78c323f2ead7b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapWithPreviewStartedEventData.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/WebSlotSwapWithPreviewStartedEventData.Serialization.cs @@ -79,12 +79,21 @@ internal static WebSlotSwapWithPreviewStartedEventData DeserializeWebSlotSwapWit verb); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebSlotSwapWithPreviewStartedEventData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebSlotSwapWithPreviewStartedEventData(document.RootElement); + } + internal partial class WebSlotSwapWithPreviewStartedEventDataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebSlotSwapWithPreviewStartedEventData model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override WebSlotSwapWithPreviewStartedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AddressValue.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AddressValue.Serialization.cs index 6b9d2d862a051..9fdf6df69a815 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AddressValue.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AddressValue.Serialization.cs @@ -120,5 +120,13 @@ internal static AddressValue DeserializeAddressValue(JsonElement element) house, level); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddressValue FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddressValue(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeDocumentRequest.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeDocumentRequest.Serialization.cs index 2d8a5df6ec7a3..cdd1897d6b755 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeDocumentRequest.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeDocumentRequest.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeOperationResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeOperationResult.Serialization.cs index d1d1ebe2c3639..cccb5ec455842 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeOperationResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeOperationResult.Serialization.cs @@ -52,5 +52,13 @@ internal static AnalyzeOperationResult DeserializeAnalyzeOperationResult(JsonEle } return new AnalyzeOperationResult(status, createdDateTime, lastUpdatedDateTime, analyzeResult); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzeOperationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeOperationResult(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.Serialization.cs index 0d0b621ec4ffc..65f2265c8c0a5 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResult.Serialization.cs @@ -159,5 +159,13 @@ internal static AnalyzeResult DeserializeAnalyzeResult(JsonElement element) languages ?? new ChangeTrackingList(), documents ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzeResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeResult(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResultOperation.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResultOperation.Serialization.cs index cdfa1f1db061f..26ddbec095dc0 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResultOperation.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzeResultOperation.Serialization.cs @@ -57,5 +57,13 @@ internal static AnalyzeResultOperation DeserializeAnalyzeResultOperation(JsonEle } return new AnalyzeResultOperation(status, createdDateTime, lastUpdatedDateTime, error, analyzeResult); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzeResultOperation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeResultOperation(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.Serialization.cs index 1e8d2c02f19e0..672921d851f51 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AnalyzedDocument.Serialization.cs @@ -76,5 +76,13 @@ internal static AnalyzedDocument DeserializeAnalyzedDocument(JsonElement element } return new AnalyzedDocument(docType, boundingRegions ?? new ChangeTrackingList(), spans, fields ?? new ChangeTrackingDictionary(), confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzedDocument FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzedDocument(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AuthorizeCopyRequest.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AuthorizeCopyRequest.Serialization.cs index 595b6720af5e5..2e7fa2075ec9b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AuthorizeCopyRequest.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/AuthorizeCopyRequest.Serialization.cs @@ -35,5 +35,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BlobContentSource.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BlobContentSource.Serialization.cs index f0d2335b5c602..4b19316445bd7 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BlobContentSource.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BlobContentSource.Serialization.cs @@ -49,5 +49,21 @@ internal static BlobContentSource DeserializeBlobContentSource(JsonElement eleme } return new BlobContentSource(containerUrl, prefix); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BlobContentSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBlobContentSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BlobFileListContentSource.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BlobFileListContentSource.Serialization.cs index 10f72cb08569c..45395ac8d1d75 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BlobFileListContentSource.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BlobFileListContentSource.Serialization.cs @@ -46,5 +46,21 @@ internal static BlobFileListContentSource DeserializeBlobFileListContentSource(J } return new BlobFileListContentSource(containerUrl, fileList); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BlobFileListContentSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBlobFileListContentSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BoundingRegion.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BoundingRegion.Serialization.cs index 6fba38d0a4bc9..5254c1fe3edee 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BoundingRegion.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BoundingRegion.Serialization.cs @@ -36,5 +36,13 @@ internal static BoundingRegion DeserializeBoundingRegion(JsonElement element) } return new BoundingRegion(pageNumber, polygon); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BoundingRegion FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBoundingRegion(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BuildDocumentClassifierRequest.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BuildDocumentClassifierRequest.Serialization.cs index 59d13fede5181..e92bd059e343c 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BuildDocumentClassifierRequest.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BuildDocumentClassifierRequest.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BuildDocumentModelRequest.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BuildDocumentModelRequest.Serialization.cs index 41c3799f10e83..d9f3f2930087f 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BuildDocumentModelRequest.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/BuildDocumentModelRequest.Serialization.cs @@ -47,5 +47,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ClassifierDocumentTypeDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ClassifierDocumentTypeDetails.Serialization.cs index 1f568dbdb16a7..75a25f88843ae 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ClassifierDocumentTypeDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ClassifierDocumentTypeDetails.Serialization.cs @@ -59,5 +59,21 @@ internal static ClassifierDocumentTypeDetails DeserializeClassifierDocumentTypeD } return new ClassifierDocumentTypeDetails(azureBlobSource, azureBlobFileListSource); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ClassifierDocumentTypeDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeClassifierDocumentTypeDetails(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ClassifyDocumentRequest.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ClassifyDocumentRequest.Serialization.cs index 2a50c1cbe9141..a920566d20cdb 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ClassifyDocumentRequest.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ClassifyDocumentRequest.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComponentDocumentModelDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComponentDocumentModelDetails.Serialization.cs index eacfaa550cc53..7596022061ffb 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComponentDocumentModelDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComponentDocumentModelDetails.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(ModelId); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComposeDocumentModelRequest.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComposeDocumentModelRequest.Serialization.cs index a66a2a6800e8a..e7d0a28a51c09 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComposeDocumentModelRequest.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComposeDocumentModelRequest.Serialization.cs @@ -42,5 +42,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComposeRequest.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComposeRequest.Serialization.cs index 0e094b6f6c920..9703cdc89ab84 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComposeRequest.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ComposeRequest.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyAuthorizationResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyAuthorizationResult.Serialization.cs index a6cba0daf5e8a..43835a0a17862 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyAuthorizationResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyAuthorizationResult.Serialization.cs @@ -53,5 +53,21 @@ internal static CopyAuthorizationResult DeserializeCopyAuthorizationResult(JsonE } return new CopyAuthorizationResult(modelId, accessToken, expirationDateTimeTicks); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CopyAuthorizationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCopyAuthorizationResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyOperationResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyOperationResult.Serialization.cs index 1f91f24ee1b75..7e7f93c23cc71 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyOperationResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyOperationResult.Serialization.cs @@ -51,5 +51,13 @@ internal static CopyOperationResult DeserializeCopyOperationResult(JsonElement e } return new CopyOperationResult(status, createdDateTime, lastUpdatedDateTime, copyResult); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CopyOperationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCopyOperationResult(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyRequest.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyRequest.Serialization.cs index a8a16951ffcdf..81c7832440aa0 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyRequest.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyRequest.Serialization.cs @@ -23,5 +23,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(CopyAuthorization); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.Serialization.cs index 07964d1b385e3..e0c41fe7765b9 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CopyResult.Serialization.cs @@ -45,5 +45,13 @@ internal static CopyResult DeserializeCopyResult(JsonElement element) } return new CopyResult(modelId, errors ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CopyResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCopyResult(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CurrencyValue.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CurrencyValue.Serialization.cs index 25e9e662415b7..f61a8cbe65208 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CurrencyValue.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CurrencyValue.Serialization.cs @@ -36,5 +36,13 @@ internal static CurrencyValue DeserializeCurrencyValue(JsonElement element) } return new CurrencyValue(amount, currencySymbol, currencyCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CurrencyValue FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCurrencyValue(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomDocumentModelsDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomDocumentModelsDetails.Serialization.cs index 1667bf83546a7..da036813ec0f6 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomDocumentModelsDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomDocumentModelsDetails.Serialization.cs @@ -34,5 +34,13 @@ internal static CustomDocumentModelsDetails DeserializeCustomDocumentModelsDetai } return new CustomDocumentModelsDetails(count, limit); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomDocumentModelsDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomDocumentModelsDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelField.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelField.Serialization.cs index a01edb3e146d2..23286aecd2696 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelField.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelField.Serialization.cs @@ -39,5 +39,13 @@ internal static CustomFormModelField DeserializeCustomFormModelField(JsonElement } return new CustomFormModelField(fieldName, accuracy); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomFormModelField FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomFormModelField(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelInfo.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelInfo.Serialization.cs index af4990633477d..418b46d901b4d 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelInfo.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelInfo.Serialization.cs @@ -69,5 +69,13 @@ internal static CustomFormModelInfo DeserializeCustomFormModelInfo(JsonElement e modelName, attributes); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomFormModelInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomFormModelInfo(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelProperties.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelProperties.Serialization.cs index c0a560605b585..26a5fac061139 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelProperties.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/CustomFormModelProperties.Serialization.cs @@ -32,5 +32,13 @@ internal static CustomFormModelProperties DeserializeCustomFormModelProperties(J } return new CustomFormModelProperties(isComposed); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomFormModelProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomFormModelProperties(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTable.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTable.Serialization.cs index 6e7e4aea16f5d..eba70f4662ecb 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTable.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTable.Serialization.cs @@ -57,5 +57,13 @@ internal static DataTable DeserializeDataTable(JsonElement element) } return new DataTable(rows, columns, cells, boundingBox); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataTable FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataTable(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTableCell.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTableCell.Serialization.cs index db9db214c8ea6..9ae9958841a3c 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTableCell.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DataTableCell.Serialization.cs @@ -5,9 +5,18 @@ #nullable disable +using System.Text.Json; + namespace Azure.AI.FormRecognizer.Models { internal partial class DataTableCell { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataTableCell FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataTableCell(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.Serialization.cs index f1ef72825b39e..08d0d20f5be6e 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentBarcode.Serialization.cs @@ -62,5 +62,13 @@ internal static DocumentBarcode DeserializeDocumentBarcode(JsonElement element) } return new DocumentBarcode(kind, value, polygon ?? new ChangeTrackingList(), span, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentBarcode FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentBarcode(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentClassifierBuildOperationDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentClassifierBuildOperationDetails.Serialization.cs index fb4984c15b864..80c66cd3cfa00 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentClassifierBuildOperationDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentClassifierBuildOperationDetails.Serialization.cs @@ -118,5 +118,13 @@ internal static DocumentClassifierBuildOperationDetails DeserializeDocumentClass error, result); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DocumentClassifierBuildOperationDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentClassifierBuildOperationDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentClassifierDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentClassifierDetails.Serialization.cs index 08af23b484f71..9ba8becac968a 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentClassifierDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentClassifierDetails.Serialization.cs @@ -75,5 +75,13 @@ internal static DocumentClassifierDetails DeserializeDocumentClassifierDetails(J apiVersion, docTypes); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentClassifierDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentClassifierDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentErrorResponse.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentErrorResponse.Serialization.cs index 3367aa1f32c01..dfba53417b903 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentErrorResponse.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static DocumentErrorResponse DeserializeDocumentErrorResponse(JsonEleme } return new DocumentErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentErrorResponse(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.Serialization.cs index 3c4fca1b5fef0..bd3c0005d57ad 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentField.Serialization.cs @@ -233,5 +233,13 @@ internal static DocumentField DeserializeDocumentField(JsonElement element) spans ?? new ChangeTrackingList(), confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentField FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentField(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFieldSchema.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFieldSchema.Serialization.cs index 14d8b3f545801..bc1dbbc814aeb 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFieldSchema.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFieldSchema.Serialization.cs @@ -66,5 +66,13 @@ internal static DocumentFieldSchema DeserializeDocumentFieldSchema(JsonElement e } return new DocumentFieldSchema(type, description, example, items, properties ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentFieldSchema FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentFieldSchema(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.Serialization.cs index 3764203253c57..3c5e1298a03a2 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentFormula.Serialization.cs @@ -62,5 +62,13 @@ internal static DocumentFormula DeserializeDocumentFormula(JsonElement element) } return new DocumentFormula(kind, value, polygon ?? new ChangeTrackingList(), span, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentFormula FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentFormula(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.Serialization.cs index f0f15b2d5553d..09b75a68f1ca3 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValueElement.Serialization.cs @@ -55,5 +55,13 @@ internal static DocumentKeyValueElement DeserializeDocumentKeyValueElement(JsonE } return new DocumentKeyValueElement(content, boundingRegions ?? new ChangeTrackingList(), spans); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentKeyValueElement FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentKeyValueElement(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValuePair.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValuePair.Serialization.cs index dcda9b1a329ee..64d0b07758769 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValuePair.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentKeyValuePair.Serialization.cs @@ -44,5 +44,13 @@ internal static DocumentKeyValuePair DeserializeDocumentKeyValuePair(JsonElement } return new DocumentKeyValuePair(key, value, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentKeyValuePair FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentKeyValuePair(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLanguage.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLanguage.Serialization.cs index ddca5ef3ab59d..cbd38ea78eb58 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLanguage.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLanguage.Serialization.cs @@ -46,5 +46,13 @@ internal static DocumentLanguage DeserializeDocumentLanguage(JsonElement element } return new DocumentLanguage(locale, spans, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentLanguage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentLanguage(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.Serialization.cs index 2acc21b85a361..7bb758c1c497b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentLine.Serialization.cs @@ -55,5 +55,13 @@ internal static DocumentLine DeserializeDocumentLine(JsonElement element) } return new DocumentLine(content, polygon ?? new ChangeTrackingList(), spans); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentLine FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentLine(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelBuildOperationDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelBuildOperationDetails.Serialization.cs index ec1dcded0fba9..27fc12fe66adb 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelBuildOperationDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelBuildOperationDetails.Serialization.cs @@ -118,5 +118,13 @@ internal static DocumentModelBuildOperationDetails DeserializeDocumentModelBuild error, result); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DocumentModelBuildOperationDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentModelBuildOperationDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelComposeOperationDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelComposeOperationDetails.Serialization.cs index e7ea5c78e15c5..572081db811f9 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelComposeOperationDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelComposeOperationDetails.Serialization.cs @@ -118,5 +118,13 @@ internal static DocumentModelComposeOperationDetails DeserializeDocumentModelCom error, result); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DocumentModelComposeOperationDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentModelComposeOperationDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelCopyAuthorization.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelCopyAuthorization.Serialization.cs index 39944c542b6fc..dfe2fe2487c1e 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelCopyAuthorization.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelCopyAuthorization.Serialization.cs @@ -84,5 +84,21 @@ internal static DocumentModelCopyAuthorization DeserializeDocumentModelCopyAutho accessToken, expirationDateTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentModelCopyAuthorization FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentModelCopyAuthorization(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelCopyToOperationDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelCopyToOperationDetails.Serialization.cs index 0cc5eeac20445..58f22a2d934ba 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelCopyToOperationDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelCopyToOperationDetails.Serialization.cs @@ -118,5 +118,13 @@ internal static DocumentModelCopyToOperationDetails DeserializeDocumentModelCopy error, result); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DocumentModelCopyToOperationDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentModelCopyToOperationDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelDetails.Serialization.cs index b833855b075be..98035dc248946 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelDetails.Serialization.cs @@ -95,5 +95,13 @@ internal static DocumentModelDetails DeserializeDocumentModelDetails(JsonElement tags ?? new ChangeTrackingDictionary(), docTypes ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentModelDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentModelDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelSummary.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelSummary.Serialization.cs index 6b3e2c9396e4c..a2e0ef750b20f 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelSummary.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentModelSummary.Serialization.cs @@ -79,5 +79,13 @@ internal static DocumentModelSummary DeserializeDocumentModelSummary(JsonElement apiVersion, tags ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentModelSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentModelSummary(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.Serialization.cs index 59d54479835e4..79d366f89a059 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentPage.Serialization.cs @@ -166,5 +166,13 @@ internal static DocumentPage DeserializeDocumentPage(JsonElement element) barcodes ?? new ChangeTrackingList(), formulas ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentPage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentPage(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.Serialization.cs index dc8ea87b98a04..3f86f6d4a6318 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentParagraph.Serialization.cs @@ -65,5 +65,13 @@ internal static DocumentParagraph DeserializeDocumentParagraph(JsonElement eleme } return new DocumentParagraph(role, content, boundingRegions ?? new ChangeTrackingList(), spans); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentParagraph FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentParagraph(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentResult.Serialization.cs index 415bbfa561c69..8df34faa245db 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentResult.Serialization.cs @@ -72,5 +72,13 @@ internal static DocumentResult DeserializeDocumentResult(JsonElement element) } return new DocumentResult(docType, modelId, pageRange, docTypeConfidence, fields); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentResult(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.Serialization.cs index 7bbd74e457494..0672489d74aea 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSelectionMark.Serialization.cs @@ -56,5 +56,13 @@ internal static DocumentSelectionMark DeserializeDocumentSelectionMark(JsonEleme } return new DocumentSelectionMark(state, polygon ?? new ChangeTrackingList(), span, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentSelectionMark FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentSelectionMark(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSpan.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSpan.Serialization.cs index 3f33346a6e0d1..1018ff7fc7d91 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSpan.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentSpan.Serialization.cs @@ -30,5 +30,13 @@ internal static DocumentSpan DeserializeDocumentSpan(JsonElement element) } return new DocumentSpan(offset, length); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentSpan FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentSpan(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentStyle.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentStyle.Serialization.cs index 62de8d8d3a393..9d4d1032e8901 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentStyle.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentStyle.Serialization.cs @@ -96,5 +96,13 @@ internal static DocumentStyle DeserializeDocumentStyle(JsonElement element) spans, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentStyle FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentStyle(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.Serialization.cs index e43284f1a1e27..ff8998efb3d65 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTable.Serialization.cs @@ -72,5 +72,13 @@ internal static DocumentTable DeserializeDocumentTable(JsonElement element) } return new DocumentTable(rowCount, columnCount, cells, boundingRegions ?? new ChangeTrackingList(), spans); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentTable FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentTable(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.Serialization.cs index 0ded22242499a..5a5c3380d3616 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTableCell.Serialization.cs @@ -105,5 +105,13 @@ internal static DocumentTableCell DeserializeDocumentTableCell(JsonElement eleme boundingRegions ?? new ChangeTrackingList(), spans); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentTableCell FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentTableCell(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTypeDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTypeDetails.Serialization.cs index e1b3044cffe64..aa265e333ffb2 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTypeDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentTypeDetails.Serialization.cs @@ -65,5 +65,13 @@ internal static DocumentTypeDetails DeserializeDocumentTypeDetails(JsonElement e } return new DocumentTypeDetails(description, buildMode, fieldSchema, fieldConfidence ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentTypeDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentTypeDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.Serialization.cs index ae52061f735af..46d52f48a0b69 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/DocumentWord.Serialization.cs @@ -56,5 +56,13 @@ internal static DocumentWord DeserializeDocumentWord(JsonElement element) } return new DocumentWord(content, polygon ?? new ChangeTrackingList(), span, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentWord FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentWord(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.Serialization.cs index 1548802a9451b..2f7451626927e 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Error.Serialization.cs @@ -66,5 +66,13 @@ internal static Error DeserializeError(JsonElement element) } return new Error(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Error FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeError(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ErrorResponse.Serialization.cs index 73e25fa281590..71f3dac9bbc2e 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.Serialization.cs index 77b3dd50f0754..382f4e6dfc5b8 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FieldValue_internal.Serialization.cs @@ -200,5 +200,13 @@ internal static FieldValue_internal DeserializeFieldValue_internal(JsonElement e elements ?? new ChangeTrackingList(), page); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FieldValue_internal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFieldValue_internal(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerError.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerError.Serialization.cs index 2f71489218524..222a02cb01790 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerError.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerError.Serialization.cs @@ -34,5 +34,13 @@ internal static FormRecognizerError DeserializeFormRecognizerError(JsonElement e } return new FormRecognizerError(code, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FormRecognizerError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFormRecognizerError(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetDocumentClassifiersResponse.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetDocumentClassifiersResponse.Serialization.cs index e8512eadbe6f2..d659c61a89d47 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetDocumentClassifiersResponse.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetDocumentClassifiersResponse.Serialization.cs @@ -45,5 +45,13 @@ internal static GetDocumentClassifiersResponse DeserializeGetDocumentClassifiers } return new GetDocumentClassifiersResponse(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GetDocumentClassifiersResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetDocumentClassifiersResponse(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetDocumentModelsResponse.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetDocumentModelsResponse.Serialization.cs index 7c4b9870a4049..b69d534cdf612 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetDocumentModelsResponse.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetDocumentModelsResponse.Serialization.cs @@ -45,5 +45,13 @@ internal static GetDocumentModelsResponse DeserializeGetDocumentModelsResponse(J } return new GetDocumentModelsResponse(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GetDocumentModelsResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetDocumentModelsResponse(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetOperationsResponse.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetOperationsResponse.Serialization.cs index c3be1cf0a7b78..ee890ba81c5dc 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetOperationsResponse.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/GetOperationsResponse.Serialization.cs @@ -45,5 +45,13 @@ internal static GetOperationsResponse DeserializeGetOperationsResponse(JsonEleme } return new GetOperationsResponse(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GetOperationsResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetOperationsResponse(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/InnerError.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/InnerError.Serialization.cs index 3aad96c803f2e..cd3affaea5c90 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/InnerError.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/InnerError.Serialization.cs @@ -44,5 +44,13 @@ internal static InnerError DeserializeInnerError(JsonElement element) } return new InnerError(code, message, innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InnerError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInnerError(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.Serialization.cs index 5cb9c9ca3d247..e83c44b1144c9 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValueElement.Serialization.cs @@ -71,5 +71,13 @@ internal static KeyValueElement DeserializeKeyValueElement(JsonElement element) } return new KeyValueElement(type, text, boundingBox ?? new ChangeTrackingList(), elements ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyValueElement FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyValueElement(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValuePair.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValuePair.Serialization.cs index 8979362d876d2..50f82ca9121f2 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValuePair.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeyValuePair.Serialization.cs @@ -46,5 +46,13 @@ internal static KeyValuePair DeserializeKeyValuePair(JsonElement element) } return new KeyValuePair(label, key, value, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyValuePair FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyValuePair(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeysResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeysResult.Serialization.cs index 9769eea50a2fe..394e8d786d654 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeysResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/KeysResult.Serialization.cs @@ -46,5 +46,13 @@ internal static KeysResult DeserializeKeysResult(JsonElement element) } return new KeysResult(clusters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeysResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeysResult(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.Serialization.cs index fce50a58142c5..f4743ab5ec0b4 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Model.Serialization.cs @@ -65,5 +65,13 @@ internal static Model DeserializeModel(JsonElement element) } return new Model(modelInfo, keys, trainResult, composedTrainResults ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Model FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeModel(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.Serialization.cs index 0856edb360de4..0e765c51270e0 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Models.Serialization.cs @@ -55,5 +55,13 @@ internal static Models DeserializeModels(JsonElement element) } return new Models(summary, modelList ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Models FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeModels(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ModelsSummary.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ModelsSummary.Serialization.cs index 3c0453cd2d88e..4633d833e7c25 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ModelsSummary.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ModelsSummary.Serialization.cs @@ -41,5 +41,13 @@ internal static ModelsSummary DeserializeModelsSummary(JsonElement element) } return new ModelsSummary(count, limit, lastUpdatedDateTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ModelsSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeModelsSummary(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationDetails.Serialization.cs index 9256537c21a65..7f5ddcd749e08 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationDetails.Serialization.cs @@ -30,5 +30,13 @@ internal static OperationDetails DeserializeOperationDetails(JsonElement element } return UnknownOperationDetails.DeserializeUnknownOperationDetails(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OperationDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOperationDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationSummary.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationSummary.Serialization.cs index fddaa4ad75303..1132ebdf5381c 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationSummary.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/OperationSummary.Serialization.cs @@ -100,5 +100,13 @@ internal static OperationSummary DeserializeOperationSummary(JsonElement element apiVersion, tags ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OperationSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOperationSummary(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.Serialization.cs index f83c78c9fdac6..fb1b973b186b5 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/PageResult.Serialization.cs @@ -70,5 +70,13 @@ internal static PageResult DeserializePageResult(JsonElement element) } return new PageResult(page, clusterId, keyValuePairs ?? new ChangeTrackingList(), tables ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PageResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePageResult(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs index b7834a803d4a6..eff35505f4b1f 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs @@ -91,5 +91,13 @@ internal static ReadResult DeserializeReadResult(JsonElement element) lines ?? new ChangeTrackingList(), selectionMarks ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ReadResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReadResult(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ResourceQuotaDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ResourceQuotaDetails.Serialization.cs index 650331d5847aa..56f83c939f209 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ResourceQuotaDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ResourceQuotaDetails.Serialization.cs @@ -41,5 +41,13 @@ internal static ResourceQuotaDetails DeserializeResourceQuotaDetails(JsonElement } return new ResourceQuotaDetails(used, quota, quotaResetDateTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ResourceQuotaDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResourceQuotaDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SelectionMark.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SelectionMark.Serialization.cs index 27e761303e694..e57d5859f8b1c 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SelectionMark.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SelectionMark.Serialization.cs @@ -46,5 +46,13 @@ internal static SelectionMark DeserializeSelectionMark(JsonElement element) } return new SelectionMark(boundingBox, confidence, state); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SelectionMark FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSelectionMark(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ServiceResourceDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ServiceResourceDetails.Serialization.cs index 95b1e90599add..28b325515b63e 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ServiceResourceDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ServiceResourceDetails.Serialization.cs @@ -38,5 +38,13 @@ internal static ServiceResourceDetails DeserializeServiceResourceDetails(JsonEle } return new ServiceResourceDetails(customDocumentModels, customNeuralDocumentModelBuilds); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServiceResourceDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceResourceDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SourcePath.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SourcePath.Serialization.cs index cb785a9c6c364..ed081bab84d9f 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SourcePath.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SourcePath.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Style.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Style.Serialization.cs index fee3ada238ccd..1c00e5a79accf 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Style.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Style.Serialization.cs @@ -34,5 +34,13 @@ internal static Style DeserializeStyle(JsonElement element) } return new Style(name, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Style FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStyle(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextAppearance.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextAppearance.Serialization.cs index 88e80ab3a03f1..c9429b8acaca8 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextAppearance.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextAppearance.Serialization.cs @@ -28,5 +28,13 @@ internal static TextAppearance DeserializeTextAppearance(JsonElement element) } return new TextAppearance(style); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TextAppearance FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextAppearance(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.Serialization.cs index 6b76eeabb9bd8..f70b4acbbf2f5 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.Serialization.cs @@ -61,5 +61,13 @@ internal static TextLine DeserializeTextLine(JsonElement element) } return new TextLine(text, boundingBox, words, appearance); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TextLine FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextLine(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextWord.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextWord.Serialization.cs index bde5fe4744289..0931c9ffb9420 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextWord.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextWord.Serialization.cs @@ -50,5 +50,13 @@ internal static TextWord DeserializeTextWord(JsonElement element) } return new TextWord(text, boundingBox, confidence); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TextWord FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextWord(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainRequest.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainRequest.Serialization.cs index 1ee352685733d..f9c6e1332e0f1 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainRequest.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainRequest.Serialization.cs @@ -35,5 +35,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.Serialization.cs index 9ddc60a430dd9..8aaed265c61af 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainResult.Serialization.cs @@ -81,5 +81,13 @@ internal static TrainResult DeserializeTrainResult(JsonElement element) } return new TrainResult(trainingDocuments, fields ?? new ChangeTrackingList(), averageModelAccuracy, modelId, errors ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TrainResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTrainResult(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingDocumentInfo.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingDocumentInfo.Serialization.cs index bb1789ac3c189..7bea4afd864f8 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingDocumentInfo.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingDocumentInfo.Serialization.cs @@ -53,5 +53,13 @@ internal static TrainingDocumentInfo DeserializeTrainingDocumentInfo(JsonElement } return new TrainingDocumentInfo(documentName, pages, errors, status); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TrainingDocumentInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTrainingDocumentInfo(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingFileFilter.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingFileFilter.Serialization.cs index 59a05a5ee7dea..255f930697eb6 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingFileFilter.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TrainingFileFilter.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteBooleanValue(IncludeSubfolders); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/UnknownOperationDetails.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/UnknownOperationDetails.Serialization.cs index 25a7f3fcb33ad..afbf8e4f3bf7b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/UnknownOperationDetails.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/UnknownOperationDetails.Serialization.cs @@ -108,5 +108,13 @@ internal static UnknownOperationDetails DeserializeUnknownOperationDetails(JsonE tags ?? new ChangeTrackingDictionary(), error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownOperationDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownOperationDetails(document.RootElement); + } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.Serialization.cs index 95fbe62a794f4..fa0bc2a058334 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/V2AnalyzeResult.Serialization.cs @@ -92,5 +92,13 @@ internal static V2AnalyzeResult DeserializeV2AnalyzeResult(JsonElement element) } return new V2AnalyzeResult(version, readResults ?? new ChangeTrackingList(), pageResults ?? new ChangeTrackingList(), documentResults ?? new ChangeTrackingList(), errors ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static V2AnalyzeResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeV2AnalyzeResult(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/AuthenticationMechanism.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/AuthenticationMechanism.Serialization.cs index 7860ac7b85d55..a4f8a1deed00b 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/AuthenticationMechanism.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/AuthenticationMechanism.Serialization.cs @@ -74,5 +74,21 @@ internal static AuthenticationMechanism DeserializeAuthenticationMechanism(JsonE } return new AuthenticationMechanism(symmetricKey, x509Thumbprint, type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AuthenticationMechanism FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAuthenticationMechanism(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.Serialization.cs index 9317652f115b5..7d0ce8127e6cc 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/BulkRegistryOperationResponse.Serialization.cs @@ -63,5 +63,13 @@ internal static BulkRegistryOperationResponse DeserializeBulkRegistryOperationRe } return new BulkRegistryOperationResponse(isSuccessful, errors ?? new ChangeTrackingList(), warnings ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BulkRegistryOperationResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBulkRegistryOperationResponse(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/CloudToDeviceMethodRequest.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/CloudToDeviceMethodRequest.Serialization.cs index 70d4aecc44c2e..394ec25abdb80 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/CloudToDeviceMethodRequest.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/CloudToDeviceMethodRequest.Serialization.cs @@ -85,5 +85,21 @@ internal static CloudToDeviceMethodRequest DeserializeCloudToDeviceMethodRequest } return new CloudToDeviceMethodRequest(methodName, payload, responseTimeoutInSeconds, connectTimeoutInSeconds); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CloudToDeviceMethodRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCloudToDeviceMethodRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/CloudToDeviceMethodResponse.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/CloudToDeviceMethodResponse.Serialization.cs index 97cf875a73e44..551e7d933581b 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/CloudToDeviceMethodResponse.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/CloudToDeviceMethodResponse.Serialization.cs @@ -42,5 +42,13 @@ internal static CloudToDeviceMethodResponse DeserializeCloudToDeviceMethodRespon } return new CloudToDeviceMethodResponse(status, payload); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CloudToDeviceMethodResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCloudToDeviceMethodResponse(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationContent.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationContent.Serialization.cs index 8c73805f483fb..9540521180d38 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationContent.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationContent.Serialization.cs @@ -167,5 +167,21 @@ internal static ConfigurationContent DeserializeConfigurationContent(JsonElement } return new ConfigurationContent(deviceContent ?? new ChangeTrackingDictionary(), modulesContent ?? new ChangeTrackingDictionary>(), moduleContent ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ConfigurationContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeConfigurationContent(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationMetrics.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationMetrics.Serialization.cs index 2505c1e67a9fd..c0b45cb904a79 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationMetrics.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationMetrics.Serialization.cs @@ -82,5 +82,21 @@ internal static ConfigurationMetrics DeserializeConfigurationMetrics(JsonElement } return new ConfigurationMetrics(results ?? new ChangeTrackingDictionary(), queries ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ConfigurationMetrics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeConfigurationMetrics(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationQueriesTestInput.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationQueriesTestInput.Serialization.cs index 238a23cd7a022..f85e618f7dfd5 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationQueriesTestInput.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationQueriesTestInput.Serialization.cs @@ -33,5 +33,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationQueriesTestResponse.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationQueriesTestResponse.Serialization.cs index fb1d211b3380b..25ce051ef287d 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationQueriesTestResponse.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ConfigurationQueriesTestResponse.Serialization.cs @@ -44,5 +44,13 @@ internal static ConfigurationQueriesTestResponse DeserializeConfigurationQueries } return new ConfigurationQueriesTestResponse(targetConditionError, customMetricQueryErrors ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ConfigurationQueriesTestResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeConfigurationQueriesTestResponse(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceCapabilities.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceCapabilities.Serialization.cs index 481b084fd264a..03b58b796603f 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceCapabilities.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceCapabilities.Serialization.cs @@ -44,5 +44,21 @@ internal static DeviceCapabilities DeserializeDeviceCapabilities(JsonElement ele } return new DeviceCapabilities(iotEdge); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceCapabilities FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceCapabilities(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceIdentity.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceIdentity.Serialization.cs index 1980563fb38bd..40f66e94f237d 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceIdentity.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceIdentity.Serialization.cs @@ -218,5 +218,21 @@ internal static DeviceIdentity DeserializeDeviceIdentity(JsonElement element) capabilities, deviceScope); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceIdentity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceJobStatistics.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceJobStatistics.Serialization.cs index c5e60e606907b..709e89875fcea 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceJobStatistics.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceJobStatistics.Serialization.cs @@ -72,5 +72,13 @@ internal static DeviceJobStatistics DeserializeDeviceJobStatistics(JsonElement e } return new DeviceJobStatistics(deviceCount, failedCount, succeededCount, runningCount, pendingCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceJobStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceJobStatistics(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceRegistryOperationError.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceRegistryOperationError.Serialization.cs index e63213081c2e6..8d0388b8f6d3d 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceRegistryOperationError.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceRegistryOperationError.Serialization.cs @@ -56,5 +56,13 @@ internal static DeviceRegistryOperationError DeserializeDeviceRegistryOperationE } return new DeviceRegistryOperationError(deviceId, errorCode, errorStatus, moduleId, operation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceRegistryOperationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceRegistryOperationError(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceRegistryOperationWarning.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceRegistryOperationWarning.Serialization.cs index cafe9e5b49197..c3ee840edacfb 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceRegistryOperationWarning.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DeviceRegistryOperationWarning.Serialization.cs @@ -44,5 +44,13 @@ internal static DeviceRegistryOperationWarning DeserializeDeviceRegistryOperatio } return new DeviceRegistryOperationWarning(deviceId, warningCode, warningStatus); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeviceRegistryOperationWarning FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeviceRegistryOperationWarning(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DevicesStatistics.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DevicesStatistics.Serialization.cs index b55f941fef950..79b7ab7c6f6de 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DevicesStatistics.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/DevicesStatistics.Serialization.cs @@ -52,5 +52,13 @@ internal static DevicesStatistics DeserializeDevicesStatistics(JsonElement eleme } return new DevicesStatistics(totalDeviceCount, enabledDeviceCount, disabledDeviceCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DevicesStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDevicesStatistics(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ExportImportDevice.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ExportImportDevice.Serialization.cs index 0dcda8c2987f0..a27e5785d67a1 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ExportImportDevice.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ExportImportDevice.Serialization.cs @@ -88,5 +88,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobProperties.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobProperties.Serialization.cs index 40e43029440c9..1ef4c950b5830 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobProperties.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobProperties.Serialization.cs @@ -242,5 +242,21 @@ internal static JobProperties DeserializeJobProperties(JsonElement element) includeConfigurations, configurationsBlobName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JobProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJobProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobRequest.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobRequest.Serialization.cs index f26df1a056644..71862e7935727 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobRequest.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobRequest.Serialization.cs @@ -52,5 +52,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobResponse.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobResponse.Serialization.cs index ef9b7efe8b89c..88f5a646f14b6 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobResponse.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/JobResponse.Serialization.cs @@ -150,5 +150,13 @@ internal static JobResponse DeserializeJobResponse(JsonElement element) statusMessage, deviceJobStatistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JobResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJobResponse(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ModuleIdentity.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ModuleIdentity.Serialization.cs index e0edf374f0856..c1b2fdc9e31bf 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ModuleIdentity.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ModuleIdentity.Serialization.cs @@ -170,5 +170,21 @@ internal static ModuleIdentity DeserializeModuleIdentity(JsonElement element) cloudToDeviceMessageCount, authentication); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ModuleIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeModuleIdentity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/PropertyContainer.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/PropertyContainer.Serialization.cs index 4b7265e26ceed..e5c18bdf1d650 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/PropertyContainer.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/PropertyContainer.Serialization.cs @@ -49,5 +49,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/PurgeMessageQueueResult.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/PurgeMessageQueueResult.Serialization.cs index f33b5c40521a4..6c1a4bffef7c1 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/PurgeMessageQueueResult.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/PurgeMessageQueueResult.Serialization.cs @@ -44,5 +44,13 @@ internal static PurgeMessageQueueResult DeserializePurgeMessageQueueResult(JsonE } return new PurgeMessageQueueResult(totalMessagesPurged, deviceId, moduleId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PurgeMessageQueueResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePurgeMessageQueueResult(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.Serialization.cs index 6aaae190e70c6..699429ade9eed 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QueryResult.Serialization.cs @@ -61,5 +61,13 @@ internal static QueryResult DeserializeQueryResult(JsonElement element) } return new QueryResult(type, items ?? new ChangeTrackingList(), continuationToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QueryResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQueryResult(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QuerySpecification.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QuerySpecification.Serialization.cs index ed2521142f85c..e30f573274fff 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QuerySpecification.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/QuerySpecification.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ServiceStatistics.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ServiceStatistics.Serialization.cs index add7cb77b48ed..28423170953f5 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ServiceStatistics.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/ServiceStatistics.Serialization.cs @@ -32,5 +32,13 @@ internal static ServiceStatistics DeserializeServiceStatistics(JsonElement eleme } return new ServiceStatistics(connectedDeviceCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServiceStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceStatistics(document.RootElement); + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/SymmetricKey.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/SymmetricKey.Serialization.cs index 90d8400948645..6fc7acbfe1aec 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/SymmetricKey.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/SymmetricKey.Serialization.cs @@ -51,5 +51,21 @@ internal static SymmetricKey DeserializeSymmetricKey(JsonElement element) } return new SymmetricKey(primaryKey, secondaryKey); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SymmetricKey FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSymmetricKey(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinConfiguration.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinConfiguration.Serialization.cs index a22705f3495d5..c99b17750a2c0 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinConfiguration.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinConfiguration.Serialization.cs @@ -202,5 +202,21 @@ internal static TwinConfiguration DeserializeTwinConfiguration(JsonElement eleme metrics, etag); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TwinConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTwinConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinData.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinData.Serialization.cs index 585ee45031b16..9d95eb290d7dc 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinData.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinData.Serialization.cs @@ -302,5 +302,21 @@ internal static TwinData DeserializeTwinData(JsonElement element) capabilities, deviceScope); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TwinData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTwinData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinProperties.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinProperties.Serialization.cs index fb16b7bdffc92..d5bf8e5d3120b 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinProperties.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/TwinProperties.Serialization.cs @@ -106,5 +106,21 @@ internal static TwinProperties DeserializeTwinProperties(JsonElement element) } return new TwinProperties(desired ?? new ChangeTrackingDictionary(), reported ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TwinProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTwinProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/X509Thumbprint.Serialization.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/X509Thumbprint.Serialization.cs index 219a6f72b99c7..9c487351cd0c4 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/X509Thumbprint.Serialization.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/Models/X509Thumbprint.Serialization.cs @@ -51,5 +51,21 @@ internal static X509Thumbprint DeserializeX509Thumbprint(JsonElement element) } return new X509Thumbprint(primaryThumbprint, secondaryThumbprint); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static X509Thumbprint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeX509Thumbprint(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/FullBackupDetailsInternal.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/FullBackupDetailsInternal.Serialization.cs index 1482009e2bf75..bc7ee692a33c2 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/FullBackupDetailsInternal.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/FullBackupDetailsInternal.Serialization.cs @@ -86,5 +86,13 @@ internal static FullBackupDetailsInternal DeserializeFullBackupDetailsInternal(J jobId, azureStorageBlobContainerUri); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FullBackupDetailsInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFullBackupDetailsInternal(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.Serialization.cs index df91e9f96f5ea..c5d997e1b5234 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/GetSettingsResult.Serialization.cs @@ -38,5 +38,13 @@ internal static GetSettingsResult DeserializeGetSettingsResult(JsonElement eleme } return new GetSettingsResult(settings ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GetSettingsResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetSettingsResult(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultError.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultError.Serialization.cs index 667bef587e7e0..4f5d042a8bc91 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultError.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultError.Serialization.cs @@ -33,5 +33,13 @@ internal static KeyVaultError DeserializeKeyVaultError(JsonElement element) } return new KeyVaultError(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultError(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultPermission.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultPermission.Serialization.cs index 475c591955264..b6c4f7dd1351f 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultPermission.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultPermission.Serialization.cs @@ -130,5 +130,21 @@ internal static KeyVaultPermission DeserializeKeyVaultPermission(JsonElement ele } return new KeyVaultPermission(actions ?? new ChangeTrackingList(), notActions ?? new ChangeTrackingList(), dataActions ?? new ChangeTrackingList(), notDataActions ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultPermission FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultPermission(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignment.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignment.Serialization.cs index d7149b1fb454d..7d09521e7c687 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignment.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignment.Serialization.cs @@ -50,5 +50,13 @@ internal static KeyVaultRoleAssignment DeserializeKeyVaultRoleAssignment(JsonEle } return new KeyVaultRoleAssignment(id, name, type, properties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultRoleAssignment FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultRoleAssignment(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignmentProperties.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignmentProperties.Serialization.cs index 6dd3924c7c9bb..b4ee364efd3a8 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignmentProperties.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignmentProperties.Serialization.cs @@ -44,5 +44,13 @@ internal static KeyVaultRoleAssignmentProperties DeserializeKeyVaultRoleAssignme } return new KeyVaultRoleAssignmentProperties(scope, roleDefinitionId, principalId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultRoleAssignmentProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultRoleAssignmentProperties(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignmentPropertiesInternal.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignmentPropertiesInternal.Serialization.cs index 27ebd8d7d11dc..e9887dbfe1ec9 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignmentPropertiesInternal.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleAssignmentPropertiesInternal.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(PrincipalId); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleDefinition.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleDefinition.Serialization.cs index 059453464f5de..bf5d14f5c6cf8 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleDefinition.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultRoleDefinition.Serialization.cs @@ -162,5 +162,21 @@ internal static KeyVaultRoleDefinition DeserializeKeyVaultRoleDefinition(JsonEle permissions ?? new ChangeTrackingList(), assignableScopes ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultRoleDefinition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultRoleDefinition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultServiceError.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultServiceError.Serialization.cs index b7ca8bb26b991..3015799edd339 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultServiceError.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultServiceError.Serialization.cs @@ -45,5 +45,13 @@ internal static KeyVaultServiceError DeserializeKeyVaultServiceError(JsonElement } return new KeyVaultServiceError(code, message, innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultServiceError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultServiceError(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultSetting.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultSetting.Serialization.cs index aebe0a0ebdb11..09bdc0815da50 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultSetting.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/KeyVaultSetting.Serialization.cs @@ -44,5 +44,13 @@ internal static KeyVaultSetting DeserializeKeyVaultSetting(JsonElement element) } return new KeyVaultSetting(name, value, type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultSetting FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultSetting(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RestoreDetailsInternal.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RestoreDetailsInternal.Serialization.cs index cfcbdc4507e58..6ab86cb338668 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RestoreDetailsInternal.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RestoreDetailsInternal.Serialization.cs @@ -79,5 +79,13 @@ internal static RestoreDetailsInternal DeserializeRestoreDetailsInternal(JsonEle startTime, endTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RestoreDetailsInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRestoreDetailsInternal(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RestoreOperationParameters.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RestoreOperationParameters.Serialization.cs index c253634e1befc..061289ebe0ec6 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RestoreOperationParameters.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RestoreOperationParameters.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(FolderToRestore); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentCreateParameters.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentCreateParameters.Serialization.cs index 2dd627a5eeece..d5846c7dc8b64 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentCreateParameters.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentCreateParameters.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(Properties); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.Serialization.cs index 4f432790471f7..c8263b8c3a6fe 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleAssignmentListResult.Serialization.cs @@ -44,5 +44,13 @@ internal static RoleAssignmentListResult DeserializeRoleAssignmentListResult(Jso } return new RoleAssignmentListResult(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RoleAssignmentListResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRoleAssignmentListResult(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionCreateParameters.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionCreateParameters.Serialization.cs index 18ff91208dc19..e9402cd9ea45f 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionCreateParameters.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionCreateParameters.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(Properties); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.Serialization.cs index 43a5796794d21..81786f213cc6a 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionListResult.Serialization.cs @@ -44,5 +44,13 @@ internal static RoleDefinitionListResult DeserializeRoleDefinitionListResult(Jso } return new RoleDefinitionListResult(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RoleDefinitionListResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRoleDefinitionListResult(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionProperties.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionProperties.Serialization.cs index 615fd2658e009..d96f861f7d45e 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionProperties.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/RoleDefinitionProperties.Serialization.cs @@ -52,5 +52,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SASTokenParameter.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SASTokenParameter.Serialization.cs index a71ec1a020f5d..fb53a49fd9b19 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SASTokenParameter.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SASTokenParameter.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SelectiveKeyRestoreDetailsInternal.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SelectiveKeyRestoreDetailsInternal.Serialization.cs index 8b4f9d4acb99a..2e2854411b244 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SelectiveKeyRestoreDetailsInternal.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SelectiveKeyRestoreDetailsInternal.Serialization.cs @@ -79,5 +79,13 @@ internal static SelectiveKeyRestoreDetailsInternal DeserializeSelectiveKeyRestor startTime, endTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SelectiveKeyRestoreDetailsInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSelectiveKeyRestoreDetailsInternal(document.RootElement); + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SelectiveKeyRestoreOperationParameters.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SelectiveKeyRestoreOperationParameters.Serialization.cs index 8c6d448add1de..57dddde74d7e3 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SelectiveKeyRestoreOperationParameters.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/SelectiveKeyRestoreOperationParameters.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Folder); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/UpdateSettingRequest.Serialization.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/UpdateSettingRequest.Serialization.cs index c35e114e4e1cb..12f2b2857cfc1 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/UpdateSettingRequest.Serialization.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/Models/UpdateSettingRequest.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Value); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/BackupStorageResult.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/BackupStorageResult.Serialization.cs index 19da7447736c0..dcc22b5900371 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/BackupStorageResult.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/BackupStorageResult.Serialization.cs @@ -33,5 +33,13 @@ internal static BackupStorageResult DeserializeBackupStorageResult(JsonElement e } return new BackupStorageResult(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BackupStorageResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBackupStorageResult(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionBundle.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionBundle.Serialization.cs index 8d932d659139a..03ba3f5da372e 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionBundle.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionBundle.Serialization.cs @@ -119,5 +119,13 @@ internal static DeletedSasDefinitionBundle DeserializeDeletedSasDefinitionBundle scheduledPurgeDate, deletedDate); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DeletedSasDefinitionBundle FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeletedSasDefinitionBundle(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionItem.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionItem.Serialization.cs index dddfe399e7d46..36770f8170eb3 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionItem.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionItem.Serialization.cs @@ -94,5 +94,13 @@ internal static DeletedSasDefinitionItem DeserializeDeletedSasDefinitionItem(Jso scheduledPurgeDate, deletedDate); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DeletedSasDefinitionItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeletedSasDefinitionItem(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.Serialization.cs index 091d27f747fb5..14d5d815770a6 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedSasDefinitionListResult.Serialization.cs @@ -44,5 +44,13 @@ internal static DeletedSasDefinitionListResult DeserializeDeletedSasDefinitionLi } return new DeletedSasDefinitionListResult(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeletedSasDefinitionListResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeletedSasDefinitionListResult(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageAccountItem.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageAccountItem.Serialization.cs index d4fc264baeb16..ddeaa8840c20e 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageAccountItem.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageAccountItem.Serialization.cs @@ -94,5 +94,13 @@ internal static DeletedStorageAccountItem DeserializeDeletedStorageAccountItem(J scheduledPurgeDate, deletedDate); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DeletedStorageAccountItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeletedStorageAccountItem(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageBundle.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageBundle.Serialization.cs index 45b103734c580..6edad9836aa31 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageBundle.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageBundle.Serialization.cs @@ -119,5 +119,13 @@ internal static DeletedStorageBundle DeserializeDeletedStorageBundle(JsonElement scheduledPurgeDate, deletedDate); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DeletedStorageBundle FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeletedStorageBundle(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.Serialization.cs index 8685786f0053d..52c0753e70139 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/DeletedStorageListResult.Serialization.cs @@ -44,5 +44,13 @@ internal static DeletedStorageListResult DeserializeDeletedStorageListResult(Jso } return new DeletedStorageListResult(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DeletedStorageListResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeletedStorageListResult(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/Error.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/Error.Serialization.cs index b807dd884cc72..bc7148acda438 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/Error.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/Error.Serialization.cs @@ -44,5 +44,13 @@ internal static Error DeserializeError(JsonElement element) } return new Error(code, message, innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Error FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeError(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/KeyVaultError.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/KeyVaultError.Serialization.cs index f22e7a199c63d..180a8ddb5931d 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/KeyVaultError.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/KeyVaultError.Serialization.cs @@ -32,5 +32,13 @@ internal static KeyVaultError DeserializeKeyVaultError(JsonElement element) } return new KeyVaultError(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyVaultError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyVaultError(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionAttributes.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionAttributes.Serialization.cs index 2f634b21ca36d..960ab8a98d7eb 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionAttributes.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionAttributes.Serialization.cs @@ -85,5 +85,21 @@ internal static SasDefinitionAttributes DeserializeSasDefinitionAttributes(JsonE } return new SasDefinitionAttributes(enabled, created, updated, recoverableDays, recoveryLevel); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SasDefinitionAttributes FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSasDefinitionAttributes(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionBundle.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionBundle.Serialization.cs index 2e633a2f70d9a..a06f48e5c2e46 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionBundle.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionBundle.Serialization.cs @@ -89,5 +89,13 @@ internal static SasDefinitionBundle DeserializeSasDefinitionBundle(JsonElement e attributes, tags ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SasDefinitionBundle FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSasDefinitionBundle(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionCreateParameters.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionCreateParameters.Serialization.cs index dd20ea4968897..b5d4dcc1ef6e6 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionCreateParameters.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionCreateParameters.Serialization.cs @@ -39,5 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionItem.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionItem.Serialization.cs index 53ecef8919da6..a786d006436eb 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionItem.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionItem.Serialization.cs @@ -60,5 +60,13 @@ internal static SasDefinitionItem DeserializeSasDefinitionItem(JsonElement eleme } return new SasDefinitionItem(id, sid, attributes, tags ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SasDefinitionItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSasDefinitionItem(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.Serialization.cs index 4f2cb8d2737f6..d204c3f199b4d 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionListResult.Serialization.cs @@ -44,5 +44,13 @@ internal static SasDefinitionListResult DeserializeSasDefinitionListResult(JsonE } return new SasDefinitionListResult(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SasDefinitionListResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSasDefinitionListResult(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionUpdateParameters.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionUpdateParameters.Serialization.cs index d70f68f8df284..9e4a64d38a9bd 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionUpdateParameters.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/SasDefinitionUpdateParameters.Serialization.cs @@ -48,5 +48,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountAttributes.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountAttributes.Serialization.cs index 4c5ae4ae0a157..b5c598ec4c69b 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountAttributes.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountAttributes.Serialization.cs @@ -85,5 +85,21 @@ internal static StorageAccountAttributes DeserializeStorageAccountAttributes(Jso } return new StorageAccountAttributes(enabled, created, updated, recoverableDays, recoveryLevel); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageAccountAttributes FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageAccountAttributes(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountCreateParameters.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountCreateParameters.Serialization.cs index 72d6c4712688d..702ebbe4efce2 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountCreateParameters.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountCreateParameters.Serialization.cs @@ -44,5 +44,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountItem.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountItem.Serialization.cs index 0074de18a3e42..7008f7edcd814 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountItem.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountItem.Serialization.cs @@ -60,5 +60,13 @@ internal static StorageAccountItem DeserializeStorageAccountItem(JsonElement ele } return new StorageAccountItem(id, resourceId, attributes, tags ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageAccountItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageAccountItem(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountRegenerteKeyParameters.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountRegenerteKeyParameters.Serialization.cs index 9d2f84398439f..2dbe59f74438f 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountRegenerteKeyParameters.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountRegenerteKeyParameters.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(KeyName); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountUpdateParameters.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountUpdateParameters.Serialization.cs index 1a47f65f57589..f4031cd9071eb 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountUpdateParameters.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageAccountUpdateParameters.Serialization.cs @@ -48,5 +48,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageBundle.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageBundle.Serialization.cs index 4624c19144a95..733d3c3450b31 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageBundle.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageBundle.Serialization.cs @@ -89,5 +89,13 @@ internal static StorageBundle DeserializeStorageBundle(JsonElement element) attributes, tags ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageBundle FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageBundle(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.Serialization.cs index 30e348610862a..45f19c05f7d8f 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageListResult.Serialization.cs @@ -44,5 +44,13 @@ internal static StorageListResult DeserializeStorageListResult(JsonElement eleme } return new StorageListResult(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageListResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageListResult(document.RootElement); + } } } diff --git a/sdk/keyvault/samples/sharelink/Generated/Models/StorageRestoreParameters.Serialization.cs b/sdk/keyvault/samples/sharelink/Generated/Models/StorageRestoreParameters.Serialization.cs index 4f2a855b6a622..dfc151972fccb 100644 --- a/sdk/keyvault/samples/sharelink/Generated/Models/StorageRestoreParameters.Serialization.cs +++ b/sdk/keyvault/samples/sharelink/Generated/Models/StorageRestoreParameters.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteBase64StringValue(StorageBundleBackup, "U"); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/CountryRegion.Serialization.cs b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/CountryRegion.Serialization.cs index 8e801f4d535d6..275233514e9bd 100644 --- a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/CountryRegion.Serialization.cs +++ b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/CountryRegion.Serialization.cs @@ -28,5 +28,13 @@ internal static CountryRegion DeserializeCountryRegion(JsonElement element) } return new CountryRegion(isoCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CountryRegion FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCountryRegion(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/CountryRegionResult.Serialization.cs b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/CountryRegionResult.Serialization.cs index 5bdeeb09a61af..5a8610da39a9c 100644 --- a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/CountryRegionResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/CountryRegionResult.Serialization.cs @@ -43,5 +43,13 @@ internal static CountryRegionResult DeserializeCountryRegionResult(JsonElement e } return new CountryRegionResult(countryRegion, ipAddress); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CountryRegionResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCountryRegionResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index 85e1d17b28c4c..dd5d4e49f4105 100644 --- a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -39,5 +39,13 @@ internal static ErrorAdditionalInfo DeserializeErrorAdditionalInfo(JsonElement e } return new ErrorAdditionalInfo(type, info); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorAdditionalInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorAdditionalInfo(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.Serialization.cs index 2d886c93a54fe..1a67a0de4fc67 100644 --- a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorDetail.Serialization.cs @@ -72,5 +72,13 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) } return new ErrorDetail(code, message, target, details ?? new ChangeTrackingList(), additionalInfo ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetail(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorResponse.Serialization.cs index 6be4e687189ef..c952348efbe3a 100644 --- a/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Geolocation/src/Generated/Models/ErrorResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/CopyrightCaption.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/CopyrightCaption.Serialization.cs index 65029792c5996..d04252624495b 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/CopyrightCaption.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/CopyrightCaption.Serialization.cs @@ -34,5 +34,13 @@ internal static CopyrightCaption DeserializeCopyrightCaption(JsonElement element } return new CopyrightCaption(formatVersion, copyrightsCaption); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CopyrightCaption FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCopyrightCaption(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index 2df37924f1438..c05ecab137b65 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -39,5 +39,13 @@ internal static ErrorAdditionalInfo DeserializeErrorAdditionalInfo(JsonElement e } return new ErrorAdditionalInfo(type, info); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorAdditionalInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorAdditionalInfo(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.Serialization.cs index de6a9298ddb10..75517eea20945 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorDetail.Serialization.cs @@ -72,5 +72,13 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) } return new ErrorDetail(code, message, target, details ?? new ChangeTrackingList(), additionalInfo ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetail(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorResponse.Serialization.cs index 24c1a83dac28e..90f4bb63ffc48 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/ErrorResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.Serialization.cs index 01a6cfdf9e9bd..ea00e19738484 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapAttribution.Serialization.cs @@ -39,5 +39,13 @@ internal static MapAttribution DeserializeMapAttribution(JsonElement element) } return new MapAttribution(copyrights ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MapAttribution FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMapAttribution(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.Serialization.cs index ae65093f37917..26885d2fe74e6 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/MapTileSet.Serialization.cs @@ -182,5 +182,13 @@ internal static MapTileSet DeserializeMapTileSet(JsonElement element) bounds ?? new ChangeTrackingList(), center ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MapTileSet FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMapTileSet(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.Serialization.cs index 71af20491c1fd..32011bb9aceda 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyright.Serialization.cs @@ -49,5 +49,13 @@ internal static RegionalCopyright DeserializeRegionalCopyright(JsonElement eleme } return new RegionalCopyright(copyrights ?? new ChangeTrackingList(), country); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RegionalCopyright FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRegionalCopyright(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyrightCountry.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyrightCountry.Serialization.cs index ab305916f437d..e0902dd413a80 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyrightCountry.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RegionalCopyrightCountry.Serialization.cs @@ -34,5 +34,13 @@ internal static RegionalCopyrightCountry DeserializeRegionalCopyrightCountry(Jso } return new RegionalCopyrightCountry(isO3, label); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RegionalCopyrightCountry FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRegionalCopyrightCountry(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.Serialization.cs b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.Serialization.cs index 2f83ec7666bf8..9fccc92b282da 100644 --- a/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.Serialization.cs +++ b/sdk/maps/Azure.Maps.Rendering/src/Generated/Models/RenderCopyright.Serialization.cs @@ -60,5 +60,13 @@ internal static RenderCopyright DeserializeRenderCopyright(JsonElement element) } return new RenderCopyright(formatVersion, generalCopyrights ?? new ChangeTrackingList(), regions ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RenderCopyright FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRenderCopyright(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.Serialization.cs index d822840a69b11..8116597d978ca 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequest.Serialization.cs @@ -28,5 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequestItem.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequestItem.Serialization.cs index e374f659c5137..d32e2fd883cf0 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequestItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchRequestItem.Serialization.cs @@ -23,5 +23,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResult.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResult.Serialization.cs index 5ab216a9b87aa..51b07ff0c87e6 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResult.Serialization.cs @@ -32,5 +32,13 @@ internal static BatchResult DeserializeBatchResult(JsonElement element) } return new BatchResult(summary); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BatchResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBatchResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultItem.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultItem.Serialization.cs index 4cebc8ac5012c..e4606ce30495e 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultItem.Serialization.cs @@ -32,5 +32,13 @@ internal static BatchResultItem DeserializeBatchResultItem(JsonElement element) } return new BatchResultItem(statusCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BatchResultItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBatchResultItem(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultSummary.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultSummary.Serialization.cs index 8ed409286468f..a05ace6f92416 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/BatchResultSummary.Serialization.cs @@ -42,5 +42,13 @@ internal static BatchResultSummary DeserializeBatchResultSummary(JsonElement ele } return new BatchResultSummary(successfulRequests, totalRequests); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BatchResultSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBatchResultSummary(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/EffectiveSetting.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/EffectiveSetting.Serialization.cs index 20c04eacaec1c..c12c28fd524ab 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/EffectiveSetting.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/EffectiveSetting.Serialization.cs @@ -34,5 +34,13 @@ internal static EffectiveSetting DeserializeEffectiveSetting(JsonElement element } return new EffectiveSetting(key, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EffectiveSetting FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEffectiveSetting(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index a01835f245f38..978d3013924d4 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -39,5 +39,13 @@ internal static ErrorAdditionalInfo DeserializeErrorAdditionalInfo(JsonElement e } return new ErrorAdditionalInfo(type, info); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorAdditionalInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorAdditionalInfo(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.Serialization.cs index 0ff3f951f7f72..5ef315a2187f4 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorDetail.Serialization.cs @@ -72,5 +72,13 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) } return new ErrorDetail(code, message, target, details ?? new ChangeTrackingList(), additionalInfo ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetail(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorResponse.Serialization.cs index 6ec61df0c3fad..9b7bac18be15d 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/ErrorResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.Serialization.cs index 03326b9a4ba48..01900f680ca70 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeature.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs index 57fdaa3e02528..d99a027d0c2a5 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs index b0f981f5e5112..27543c5f58ddf 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs @@ -25,5 +25,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.Serialization.cs index 6ccc6f499cbdc..46d1cdbea899b 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonFeatureData.Serialization.cs @@ -35,5 +35,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometry.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometry.Serialization.cs index dc464e39af5cb..6b8c05d66ae1a 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometry.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometry.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -19,5 +20,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs index 35219a6643f7c..a261354052cc5 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs index 294f4eb9d0862..dce18c6c06d44 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs @@ -25,5 +25,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.Serialization.cs index d051f435ef5e5..7c8c797437d69 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineString.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -36,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.Serialization.cs index 99f7d79d5f2ec..56387b3ef755d 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonLineStringData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -34,5 +35,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs index 81703477dd418..844f82dcfe1f0 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -46,5 +47,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs index 22cbc605e0879..245f5b06c3ba9 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -44,5 +45,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs index 67b7bc0d62e2a..4ae2d529b8be9 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -36,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs index 8d5c91c53d3e3..89ddbea9d9552 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -34,5 +35,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs index fbb8f5a760c3b..08dd560a18627 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -56,5 +57,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs index 85673237b1d3f..053c517664f99 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -54,5 +55,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObject.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObject.Serialization.cs index 4d375300d43e3..6197b9fabdb86 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObject.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonObject.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -19,5 +20,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.Serialization.cs index 5835fe0d07dde..1265c57b02e39 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPoint.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -26,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.Serialization.cs index 88b8f4f473676..f341f070cab6c 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPointData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -24,5 +25,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.Serialization.cs index 8bb0c445cebd4..e71d04fa3e946 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygon.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -46,5 +47,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Type.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.Serialization.cs index 27dbc1ed218b0..b832fd836cdc6 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/GeoJsonPolygonData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Routing.Models { @@ -44,5 +45,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/LatLongPair.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/LatLongPair.Serialization.cs index 7874913f65650..e97e735d9d759 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/LatLongPair.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/LatLongPair.Serialization.cs @@ -42,5 +42,13 @@ internal static LatLongPair DeserializeLatLongPair(JsonElement element) } return new LatLongPair(latitude, longitude); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LatLongPair FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLatLongPair(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.Serialization.cs index a09a7c59a9787..5530de7845151 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteData.Serialization.cs @@ -74,5 +74,13 @@ internal static RouteData DeserializeRouteData(JsonElement element) } return new RouteData(summary, legs ?? new ChangeTrackingList(), sections ?? new ChangeTrackingList(), guidance); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteData(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.Serialization.cs index 9b990edcf030f..417cc1086202e 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionParameters.Serialization.cs @@ -49,5 +49,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.Serialization.cs index de9591b344b97..27bcd9c35936f 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirections.Serialization.cs @@ -70,5 +70,13 @@ internal static RouteDirections DeserializeRouteDirections(JsonElement element) } return new RouteDirections(formatVersion, routes ?? new ChangeTrackingList(), optimizedWaypoints ?? new ChangeTrackingList(), report); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteDirections FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteDirections(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItem.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItem.Serialization.cs index 61d113ae598ca..e53acd4268469 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItem.Serialization.cs @@ -42,5 +42,13 @@ internal static RouteDirectionsBatchItem DeserializeRouteDirectionsBatchItem(Jso } return new RouteDirectionsBatchItem(statusCode, response); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RouteDirectionsBatchItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteDirectionsBatchItem(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItemResponse.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItemResponse.Serialization.cs index 6e9500a02b7d9..20535859f9f9b 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItemResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchItemResponse.Serialization.cs @@ -80,5 +80,13 @@ internal static RouteDirectionsBatchItemResponse DeserializeRouteDirectionsBatch } return new RouteDirectionsBatchItemResponse(formatVersion, routes ?? new ChangeTrackingList(), optimizedWaypoints ?? new ChangeTrackingList(), report, error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RouteDirectionsBatchItemResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteDirectionsBatchItemResponse(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.Serialization.cs index 82728c0d648b7..a464519373191 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteDirectionsBatchResult.Serialization.cs @@ -49,5 +49,13 @@ internal static RouteDirectionsBatchResult DeserializeRouteDirectionsBatchResult } return new RouteDirectionsBatchResult(summary, batchItems ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RouteDirectionsBatchResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteDirectionsBatchResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.Serialization.cs index a0c0c733027f1..4cb9c737381ba 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteGuidance.Serialization.cs @@ -54,5 +54,13 @@ internal static RouteGuidance DeserializeRouteGuidance(JsonElement element) } return new RouteGuidance(instructions ?? new ChangeTrackingList(), instructionGroups ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteGuidance FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteGuidance(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.Serialization.cs index 5b3e2791fac01..bc70459762770 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstruction.Serialization.cs @@ -206,5 +206,13 @@ internal static RouteInstruction DeserializeRouteInstruction(JsonElement element message, combinedMessage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteInstruction FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteInstruction(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstructionGroup.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstructionGroup.Serialization.cs index f4440b6253017..d4a524c3ea385 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstructionGroup.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteInstructionGroup.Serialization.cs @@ -58,5 +58,13 @@ internal static RouteInstructionGroup DeserializeRouteInstructionGroup(JsonEleme } return new RouteInstructionGroup(firstInstructionIndex, lastInstructionIndex, groupLengthInMeters, groupMessage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteInstructionGroup FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteInstructionGroup(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.Serialization.cs index ff69fe068c1ae..cae27add87121 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLeg.Serialization.cs @@ -49,5 +49,13 @@ internal static RouteLeg DeserializeRouteLeg(JsonElement element) } return new RouteLeg(summary, points ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteLeg FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteLeg(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLegSummary.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLegSummary.Serialization.cs index ba352667cb8a1..f9201ee15432a 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLegSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteLegSummary.Serialization.cs @@ -134,5 +134,13 @@ internal static RouteLegSummary DeserializeRouteLegSummary(JsonElement element) fuelConsumptionInLiters, batteryConsumptionInkWh); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteLegSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteLegSummary(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrix.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrix.Serialization.cs index 809be4d414673..b4a0ee8b7ddc0 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrix.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrix.Serialization.cs @@ -42,5 +42,13 @@ internal static RouteMatrix DeserializeRouteMatrix(JsonElement element) } return new RouteMatrix(statusCode, response); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteMatrix FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteMatrix(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixQuery.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixQuery.Serialization.cs index 3ab6f55e74728..a02256516b653 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixQuery.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixQuery.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.Serialization.cs index 8f710a7fd95f0..ce5bbb0e7107c 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResult.Serialization.cs @@ -67,5 +67,13 @@ internal static RouteMatrixResult DeserializeRouteMatrixResult(JsonElement eleme } return new RouteMatrixResult(formatVersion, matrix ?? new ChangeTrackingList>(), summary); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteMatrixResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteMatrixResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResultResponse.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResultResponse.Serialization.cs index f132aa353634d..7f3502655351f 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResultResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixResultResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static RouteMatrixResultResponse DeserializeRouteMatrixResultResponse(J } return new RouteMatrixResultResponse(routeSummary); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteMatrixResultResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteMatrixResultResponse(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixSummary.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixSummary.Serialization.cs index 33bbe9121d294..3e41d8adb9b40 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteMatrixSummary.Serialization.cs @@ -42,5 +42,13 @@ internal static RouteMatrixSummary DeserializeRouteMatrixSummary(JsonElement ele } return new RouteMatrixSummary(successfulRoutes, totalRoutes); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteMatrixSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteMatrixSummary(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteOptimizedWaypoint.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteOptimizedWaypoint.Serialization.cs index 800fe1c898e51..9a9c48d1c7727 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteOptimizedWaypoint.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteOptimizedWaypoint.Serialization.cs @@ -42,5 +42,13 @@ internal static RouteOptimizedWaypoint DeserializeRouteOptimizedWaypoint(JsonEle } return new RouteOptimizedWaypoint(providedIndex, optimizedIndex); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteOptimizedWaypoint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteOptimizedWaypoint(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.Serialization.cs index 83a87796027e1..d2c5ad194666d 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRange.Serialization.cs @@ -49,5 +49,13 @@ internal static RouteRange DeserializeRouteRange(JsonElement element) } return new RouteRange(center, boundary ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteRange FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteRange(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRangeResult.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRangeResult.Serialization.cs index a343981d467cd..66f59eebc8b54 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRangeResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteRangeResult.Serialization.cs @@ -48,5 +48,13 @@ internal static RouteRangeResult DeserializeRouteRangeResult(JsonElement element } return new RouteRangeResult(formatVersion, reachableRange, report); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteRangeResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteRangeResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.Serialization.cs index 8a39e19d01e72..4f8b32fa42bbb 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteReport.Serialization.cs @@ -39,5 +39,13 @@ internal static RouteReport DeserializeRouteReport(JsonElement element) } return new RouteReport(effectiveSettings ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteReport FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteReport(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSection.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSection.Serialization.cs index 73521332ebfbd..fe14f0101edf6 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSection.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSection.Serialization.cs @@ -121,5 +121,13 @@ internal static RouteSection DeserializeRouteSection(JsonElement element) magnitudeOfDelay, tec); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteSection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteSection(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.Serialization.cs index ea8304a11302f..bdbd48428fef5 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTec.Serialization.cs @@ -49,5 +49,13 @@ internal static RouteSectionTec DeserializeRouteSectionTec(JsonElement element) } return new RouteSectionTec(effectCode, causes ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteSectionTec FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteSectionTec(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTecCause.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTecCause.Serialization.cs index 5ba34c6f296e2..ae54a285f1a59 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTecCause.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSectionTecCause.Serialization.cs @@ -42,5 +42,13 @@ internal static RouteSectionTecCause DeserializeRouteSectionTecCause(JsonElement } return new RouteSectionTecCause(mainCauseCode, subCauseCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteSectionTecCause FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteSectionTecCause(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSummary.Serialization.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSummary.Serialization.cs index 282a888c353e1..ffb6ccc4aae80 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/Models/RouteSummary.Serialization.cs @@ -74,5 +74,13 @@ internal static RouteSummary DeserializeRouteSummary(JsonElement element) } return new RouteSummary(lengthInMeters, travelTimeInSeconds, trafficDelayInSeconds, departureTime, arrivalTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RouteSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRouteSummary(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/AddressRanges.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/AddressRanges.Serialization.cs index 6239799c994d9..233d9f81a7dd2 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/AddressRanges.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/AddressRanges.Serialization.cs @@ -54,5 +54,13 @@ internal static AddressRanges DeserializeAddressRanges(JsonElement element) } return new AddressRanges(rangeLeft, rangeRight, @from, to); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddressRanges FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddressRanges(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestInternal.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestInternal.Serialization.cs index 7a8bfc66bffc2..257ea628f540d 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestInternal.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestInternal.Serialization.cs @@ -28,5 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestItemInternal.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestItemInternal.Serialization.cs index 2216111508374..ba4ddf16b1712 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestItemInternal.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchRequestItemInternal.Serialization.cs @@ -23,5 +23,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResult.Serialization.cs index 31cb14a2d9ba7..a2c5a01f2ab65 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResult.Serialization.cs @@ -32,5 +32,13 @@ internal static BatchResult DeserializeBatchResult(JsonElement element) } return new BatchResult(summary); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BatchResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBatchResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResultItem.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResultItem.Serialization.cs index 5aa5ecbae9969..e7ef2b8cfc322 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResultItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResultItem.Serialization.cs @@ -32,5 +32,13 @@ internal static BatchResultItem DeserializeBatchResultItem(JsonElement element) } return new BatchResultItem(statusCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BatchResultItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBatchResultItem(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResultSummary.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResultSummary.Serialization.cs index 2687e9120fae8..eb3f5352e94ce 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResultSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BatchResultSummary.Serialization.cs @@ -42,5 +42,13 @@ internal static BatchResultSummary DeserializeBatchResultSummary(JsonElement ele } return new BatchResultSummary(successfulRequests, totalRequests); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BatchResultSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBatchResultSummary(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BoundingBox.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BoundingBox.Serialization.cs index 5c4574815034c..62e8f3c9be20c 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BoundingBox.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BoundingBox.Serialization.cs @@ -42,5 +42,13 @@ internal static BoundingBox DeserializeBoundingBox(JsonElement element) } return new BoundingBox(topLeftPoint, btmRightPoint); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BoundingBox FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBoundingBox(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BoundingBoxCompassNotation.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BoundingBoxCompassNotation.Serialization.cs index 09e1e60ffc536..28f7ee56c7bc4 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BoundingBoxCompassNotation.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BoundingBoxCompassNotation.Serialization.cs @@ -44,5 +44,13 @@ internal static BoundingBoxCompassNotation DeserializeBoundingBoxCompassNotation } return new BoundingBoxCompassNotation(northEast, southWest, entity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BoundingBoxCompassNotation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBoundingBoxCompassNotation(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BrandName.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BrandName.Serialization.cs index efad761d58987..cdf5f55fd758b 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/BrandName.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/BrandName.Serialization.cs @@ -28,5 +28,13 @@ internal static BrandName DeserializeBrandName(JsonElement element) } return new BrandName(name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BrandName FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBrandName(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ClassificationName.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ClassificationName.Serialization.cs index be3cad7cc0245..ef751bc482e7a 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ClassificationName.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ClassificationName.Serialization.cs @@ -34,5 +34,13 @@ internal static ClassificationName DeserializeClassificationName(JsonElement ele } return new ClassificationName(nameLocale, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ClassificationName FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeClassificationName(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index 24dbabb029d41..a99bd0ecc0cc5 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -39,5 +39,13 @@ internal static ErrorAdditionalInfo DeserializeErrorAdditionalInfo(JsonElement e } return new ErrorAdditionalInfo(type, info); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorAdditionalInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorAdditionalInfo(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.Serialization.cs index e7ac223d28c00..0ecfe1d1bd03f 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorDetail.Serialization.cs @@ -72,5 +72,13 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) } return new ErrorDetail(code, message, target, details ?? new ChangeTrackingList(), additionalInfo ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetail(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorResponse.Serialization.cs index a253684a4dbdb..767c9030673cd 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ErrorResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/FacilityEntryPoint.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/FacilityEntryPoint.Serialization.cs index fe5835ccf081d..928c358296cea 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/FacilityEntryPoint.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/FacilityEntryPoint.Serialization.cs @@ -42,5 +42,13 @@ internal static FacilityEntryPoint DeserializeFacilityEntryPoint(JsonElement ele } return new FacilityEntryPoint(type, position); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FacilityEntryPoint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFacilityEntryPoint(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeature.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeature.Serialization.cs index a8841e1e6f7c4..a1616dc2c861b 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeature.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeature.Serialization.cs @@ -83,5 +83,21 @@ internal static GeoJsonFeature DeserializeGeoJsonFeature(JsonElement element) } return new GeoJsonFeature(type, geometry, properties, id, featureType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonFeature FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonFeature(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs index 5000012f423c3..4e4e01af84317 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureCollection.Serialization.cs @@ -57,5 +57,21 @@ internal static GeoJsonFeatureCollection DeserializeGeoJsonFeatureCollection(Jso } return new GeoJsonFeatureCollection(type, features); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonFeatureCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonFeatureCollection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs index 782306c784bf8..515581416640c 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureCollectionData.Serialization.cs @@ -49,5 +49,21 @@ internal static GeoJsonFeatureCollectionData DeserializeGeoJsonFeatureCollection } return new GeoJsonFeatureCollectionData(features); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonFeatureCollectionData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonFeatureCollectionData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureData.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureData.Serialization.cs index 970b3b67fd495..3c43f9eeaad7d 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonFeatureData.Serialization.cs @@ -75,5 +75,21 @@ internal static GeoJsonFeatureData DeserializeGeoJsonFeatureData(JsonElement ele } return new GeoJsonFeatureData(geometry, properties, id, featureType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonFeatureData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonFeatureData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometry.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometry.Serialization.cs index a7b786a3550cc..581bb59df9521 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometry.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometry.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -50,5 +51,21 @@ internal static GeoJsonGeometry DeserializeGeoJsonGeometry(JsonElement element) } return new GeoJsonGeometry(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonGeometry FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonGeometry(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs index d9c0059dec9e1..5afda9bdc4e4e 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometryCollection.Serialization.cs @@ -57,5 +57,21 @@ internal static GeoJsonGeometryCollection DeserializeGeoJsonGeometryCollection(J } return new GeoJsonGeometryCollection(type, geometries); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonGeometryCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonGeometryCollection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs index 86f63c677d3f8..92e68d7977282 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonGeometryCollectionData.Serialization.cs @@ -49,5 +49,21 @@ internal static GeoJsonGeometryCollectionData DeserializeGeoJsonGeometryCollecti } return new GeoJsonGeometryCollectionData(geometries); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonGeometryCollectionData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonGeometryCollectionData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonLineString.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonLineString.Serialization.cs index fca5c2c0298c1..a26800ead8800 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonLineString.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonLineString.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -78,5 +79,21 @@ internal static GeoJsonLineString DeserializeGeoJsonLineString(JsonElement eleme } return new GeoJsonLineString(type, coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonLineString FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonLineString(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonLineStringData.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonLineStringData.Serialization.cs index 3f51525f7dc25..8b79584cd10e1 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonLineStringData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonLineStringData.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -70,5 +71,21 @@ internal static GeoJsonLineStringData DeserializeGeoJsonLineStringData(JsonEleme } return new GeoJsonLineStringData(coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonLineStringData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonLineStringData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs index 92c1bb31ffe39..196a748e31a90 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiLineString.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -100,5 +101,21 @@ internal static GeoJsonMultiLineString DeserializeGeoJsonMultiLineString(JsonEle } return new GeoJsonMultiLineString(type, coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonMultiLineString FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonMultiLineString(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs index fc8939639921f..11ceb9d2feb54 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiLineStringData.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -92,5 +93,21 @@ internal static GeoJsonMultiLineStringData DeserializeGeoJsonMultiLineStringData } return new GeoJsonMultiLineStringData(coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonMultiLineStringData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonMultiLineStringData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs index 5df3eb40b909d..83cf72a5b857f 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPoint.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -78,5 +79,21 @@ internal static GeoJsonMultiPoint DeserializeGeoJsonMultiPoint(JsonElement eleme } return new GeoJsonMultiPoint(type, coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonMultiPoint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonMultiPoint(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs index c020d88dc0bbf..2f137d118aa8c 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPointData.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -70,5 +71,21 @@ internal static GeoJsonMultiPointData DeserializeGeoJsonMultiPointData(JsonEleme } return new GeoJsonMultiPointData(coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonMultiPointData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonMultiPointData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs index 6cfe4807c8759..bc95c375a7f1f 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPolygon.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -122,5 +123,21 @@ internal static GeoJsonMultiPolygon DeserializeGeoJsonMultiPolygon(JsonElement e } return new GeoJsonMultiPolygon(type, coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonMultiPolygon FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonMultiPolygon(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs index 168e29ed49973..5ad8a1e1d1f21 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonMultiPolygonData.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -114,5 +115,21 @@ internal static GeoJsonMultiPolygonData DeserializeGeoJsonMultiPolygonData(JsonE } return new GeoJsonMultiPolygonData(coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonMultiPolygonData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonMultiPolygonData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonObject.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonObject.Serialization.cs index b911ce18f4c37..124aff6c46eb6 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonObject.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonObject.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -44,5 +45,21 @@ internal static GeoJsonObject DeserializeGeoJsonObject(JsonElement element) } return UnknownGeoJsonObject.DeserializeUnknownGeoJsonObject(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonObject FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonObject(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPoint.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPoint.Serialization.cs index 31ee8347d7207..a685c33c082ba 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPoint.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPoint.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -56,5 +57,21 @@ internal static GeoJsonPoint DeserializeGeoJsonPoint(JsonElement element) } return new GeoJsonPoint(type, coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonPoint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonPoint(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPointData.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPointData.Serialization.cs index 33c6ed2a45a0a..80c3a06d43174 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPointData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPointData.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -48,5 +49,21 @@ internal static GeoJsonPointData DeserializeGeoJsonPointData(JsonElement element } return new GeoJsonPointData(coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonPointData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonPointData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPolygon.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPolygon.Serialization.cs index 520bc95479e1b..dc12f57d7d304 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPolygon.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPolygon.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -100,5 +101,21 @@ internal static GeoJsonPolygon DeserializeGeoJsonPolygon(JsonElement element) } return new GeoJsonPolygon(type, coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GeoJsonPolygon FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonPolygon(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPolygonData.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPolygonData.Serialization.cs index dee0b475836b4..015028eb1ef04 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPolygonData.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeoJsonPolygonData.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -92,5 +93,21 @@ internal static GeoJsonPolygonData DeserializeGeoJsonPolygonData(JsonElement ele } return new GeoJsonPolygonData(coordinates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeoJsonPolygonData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeoJsonPolygonData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeometryIdentifier.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeometryIdentifier.Serialization.cs index 6d81a9c932289..34d3c72d4886a 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeometryIdentifier.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/GeometryIdentifier.Serialization.cs @@ -28,5 +28,13 @@ internal static GeometryIdentifier DeserializeGeometryIdentifier(JsonElement ele } return new GeometryIdentifier(id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GeometryIdentifier FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGeometryIdentifier(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/LatLongPairAbbreviated.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/LatLongPairAbbreviated.Serialization.cs index b6605f23c3620..e9097cdcaaa74 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/LatLongPairAbbreviated.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/LatLongPairAbbreviated.Serialization.cs @@ -42,5 +42,13 @@ internal static LatLongPairAbbreviated DeserializeLatLongPairAbbreviated(JsonEle } return new LatLongPairAbbreviated(lat, lon); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LatLongPairAbbreviated FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLatLongPairAbbreviated(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.Serialization.cs index 224f5f1c55cba..66ca8cf8617d0 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsAddress.Serialization.cs @@ -184,5 +184,13 @@ internal static MapsAddress DeserializeMapsAddress(JsonElement element) localName, boundingBox); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MapsAddress FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMapsAddress(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsDataSource.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsDataSource.Serialization.cs index f0560dc686085..b248653da2af5 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsDataSource.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/MapsDataSource.Serialization.cs @@ -32,5 +32,13 @@ internal static MapsDataSource DeserializeMapsDataSource(JsonElement element) } return new MapsDataSource(geometry); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MapsDataSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMapsDataSource(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.Serialization.cs index 98d3e2d43f21a..49bc5539716d2 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHours.Serialization.cs @@ -45,5 +45,13 @@ internal static OperatingHours DeserializeOperatingHours(JsonElement element) } return new OperatingHours(mode, timeRanges ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OperatingHours FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOperatingHours(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHoursTime.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHoursTime.Serialization.cs index 482d84c79a8ff..5f3b1f21ede45 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHoursTime.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHoursTime.Serialization.cs @@ -48,5 +48,13 @@ internal static OperatingHoursTime DeserializeOperatingHoursTime(JsonElement ele } return new OperatingHoursTime(date, hour, minute); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OperatingHoursTime FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOperatingHoursTime(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHoursTimeRange.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHoursTimeRange.Serialization.cs index 20109e86a3f79..a656eaef7489a 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHoursTimeRange.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/OperatingHoursTimeRange.Serialization.cs @@ -42,5 +42,13 @@ internal static OperatingHoursTimeRange DeserializeOperatingHoursTimeRange(JsonE } return new OperatingHoursTimeRange(startTime, endTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OperatingHoursTimeRange FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOperatingHoursTimeRange(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.Serialization.cs index 4c6bb53a4f9d8..5c76ad154c0dd 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterest.Serialization.cs @@ -120,5 +120,13 @@ internal static PointOfInterest DeserializePointOfInterest(JsonElement element) brands ?? new ChangeTrackingList(), openingHours); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PointOfInterest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePointOfInterest(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.Serialization.cs index cc7cc5f83962c..427ddbd97cd61 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategory.Serialization.cs @@ -70,5 +70,13 @@ internal static PointOfInterestCategory DeserializePointOfInterestCategory(JsonE } return new PointOfInterestCategory(id, name, childCategoryIds ?? new ChangeTrackingList(), synonyms ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PointOfInterestCategory FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePointOfInterestCategory(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategorySet.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategorySet.Serialization.cs index ee62b2005cbe7..3c221c544dfaa 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategorySet.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategorySet.Serialization.cs @@ -32,5 +32,13 @@ internal static PointOfInterestCategorySet DeserializePointOfInterestCategorySet } return new PointOfInterestCategorySet(id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PointOfInterestCategorySet FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePointOfInterestCategorySet(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.Serialization.cs index 54c252ee3aa4a..72c26495b31c3 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestCategoryTreeResult.Serialization.cs @@ -39,5 +39,13 @@ internal static PointOfInterestCategoryTreeResult DeserializePointOfInterestCate } return new PointOfInterestCategoryTreeResult(poiCategories ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PointOfInterestCategoryTreeResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePointOfInterestCategoryTreeResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.Serialization.cs index 2481418668ad2..9cb2ece9bdb9d 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PointOfInterestClassification.Serialization.cs @@ -45,5 +45,13 @@ internal static PointOfInterestClassification DeserializePointOfInterestClassifi } return new PointOfInterestClassification(code, names ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PointOfInterestClassification FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePointOfInterestClassification(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonObject.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonObject.Serialization.cs index 7b8c226d0df3d..508f93d317feb 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonObject.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonObject.Serialization.cs @@ -5,9 +5,18 @@ #nullable disable +using System.Text.Json; + namespace Azure.Maps.Search.Models { public partial class PolygonObject { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolygonObject FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolygonObject(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.Serialization.cs index 0fa17355f649e..694ab7e87cb67 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/PolygonResult.Serialization.cs @@ -39,5 +39,13 @@ internal static PolygonResult DeserializePolygonResult(JsonElement element) } return new PolygonResult(additionalData ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolygonResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolygonResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItem.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItem.Serialization.cs index 96829463eaa65..7fc19b5fb524c 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItem.Serialization.cs @@ -42,5 +42,13 @@ internal static ReverseSearchAddressBatchItem DeserializeReverseSearchAddressBat } return new ReverseSearchAddressBatchItem(statusCode, response); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ReverseSearchAddressBatchItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReverseSearchAddressBatchItem(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItemResponse.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItemResponse.Serialization.cs index c75cd17514505..6cc45cdba6d89 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItemResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchItemResponse.Serialization.cs @@ -59,5 +59,13 @@ internal static ReverseSearchAddressBatchItemResponse DeserializeReverseSearchAd } return new ReverseSearchAddressBatchItemResponse(summary, addresses ?? new ChangeTrackingList(), error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ReverseSearchAddressBatchItemResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReverseSearchAddressBatchItemResponse(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.Serialization.cs index 9e99ca49a39c0..38136f71664c6 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressBatchResult.Serialization.cs @@ -49,5 +49,13 @@ internal static ReverseSearchAddressBatchResult DeserializeReverseSearchAddressB } return new ReverseSearchAddressBatchResult(summary, batchItems ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ReverseSearchAddressBatchResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReverseSearchAddressBatchResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.Serialization.cs index a5ae9fae06434..c90e57d04cfbd 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressItem.Serialization.cs @@ -65,5 +65,13 @@ internal static ReverseSearchAddressItem DeserializeReverseSearchAddressItem(Jso } return new ReverseSearchAddressItem(address, position, roadUse ?? new ChangeTrackingList(), matchType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ReverseSearchAddressItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReverseSearchAddressItem(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.Serialization.cs index 08b3eec13d686..d634d5df37d11 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchAddressResult.Serialization.cs @@ -49,5 +49,13 @@ internal static ReverseSearchAddressResult DeserializeReverseSearchAddressResult } return new ReverseSearchAddressResult(summary, addresses ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ReverseSearchAddressResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReverseSearchAddressResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.Serialization.cs index a57b7440c28ee..c54fa429be6f6 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResult.Serialization.cs @@ -49,5 +49,13 @@ internal static ReverseSearchCrossStreetAddressResult DeserializeReverseSearchCr } return new ReverseSearchCrossStreetAddressResult(summary, addresses ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ReverseSearchCrossStreetAddressResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReverseSearchCrossStreetAddressResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResultItem.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResultItem.Serialization.cs index a033fdbb5a603..bb8524ea134c1 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResultItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/ReverseSearchCrossStreetAddressResultItem.Serialization.cs @@ -38,5 +38,13 @@ internal static ReverseSearchCrossStreetAddressResultItem DeserializeReverseSear } return new ReverseSearchCrossStreetAddressResultItem(address, position); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ReverseSearchCrossStreetAddressResultItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeReverseSearchCrossStreetAddressResultItem(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItem.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItem.Serialization.cs index 95762e4c777f3..a9c8f94bc6dac 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItem.Serialization.cs @@ -42,5 +42,13 @@ internal static SearchAddressBatchItem DeserializeSearchAddressBatchItem(JsonEle } return new SearchAddressBatchItem(statusCode, response); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SearchAddressBatchItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchAddressBatchItem(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItemResponse.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItemResponse.Serialization.cs index b08984453136c..0bcb0e1180e72 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItemResponse.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchItemResponse.Serialization.cs @@ -59,5 +59,13 @@ internal static SearchAddressBatchItemResponse DeserializeSearchAddressBatchItem } return new SearchAddressBatchItemResponse(summary, results ?? new ChangeTrackingList(), error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SearchAddressBatchItemResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchAddressBatchItemResponse(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.Serialization.cs index 375508e2e41a8..2e3b154a39850 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressBatchResult.Serialization.cs @@ -49,5 +49,13 @@ internal static SearchAddressBatchResult DeserializeSearchAddressBatchResult(Jso } return new SearchAddressBatchResult(summary, batchItems ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SearchAddressBatchResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchAddressBatchResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.Serialization.cs index 4b88a1684559c..a34130d28f9c6 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResult.Serialization.cs @@ -49,5 +49,13 @@ internal static SearchAddressResult DeserializeSearchAddressResult(JsonElement e } return new SearchAddressResult(summary, results ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchAddressResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchAddressResult(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.Serialization.cs index 3fe7c8ee00193..344a8ba811e7c 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAddressResultItem.Serialization.cs @@ -186,5 +186,13 @@ internal static SearchAddressResultItem DeserializeSearchAddressResultItem(JsonE matchType, detourTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchAddressResultItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchAddressResultItem(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAlongRouteRequest.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAlongRouteRequest.Serialization.cs index 7daf932ad8985..421d83830f264 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAlongRouteRequest.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchAlongRouteRequest.Serialization.cs @@ -23,5 +23,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchInsideGeometryRequest.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchInsideGeometryRequest.Serialization.cs index 271ad9c44ed23..976ff1e93fb3d 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchInsideGeometryRequest.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchInsideGeometryRequest.Serialization.cs @@ -23,5 +23,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchSummary.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchSummary.Serialization.cs index e96a3058c6c91..3874ee0517c00 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchSummary.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/SearchSummary.Serialization.cs @@ -117,5 +117,13 @@ internal static SearchSummary DeserializeSearchSummary(JsonElement element) fuzzyLevel, geoBias); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchSummary(document.RootElement); + } } } diff --git a/sdk/maps/Azure.Maps.Search/src/Generated/Models/UnknownGeoJsonObject.Serialization.cs b/sdk/maps/Azure.Maps.Search/src/Generated/Models/UnknownGeoJsonObject.Serialization.cs index f50d8885e1fab..7beee0a32b94f 100644 --- a/sdk/maps/Azure.Maps.Search/src/Generated/Models/UnknownGeoJsonObject.Serialization.cs +++ b/sdk/maps/Azure.Maps.Search/src/Generated/Models/UnknownGeoJsonObject.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Maps.Common; namespace Azure.Maps.Search.Models { @@ -37,5 +38,21 @@ internal static UnknownGeoJsonObject DeserializeUnknownGeoJsonObject(JsonElement } return new UnknownGeoJsonObject(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownGeoJsonObject FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownGeoJsonObject(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertResultList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertResultList.Serialization.cs index 98dfb152dd4cf..65e54f52cd235 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertResultList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertResultList.Serialization.cs @@ -40,5 +40,13 @@ internal static AlertResultList DeserializeAlertResultList(JsonElement element) } return new AlertResultList(nextLink, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AlertResultList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAlertResultList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs index b9bd13fa346ec..dcba074340eb4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AlertingResultQuery.Serialization.cs @@ -23,5 +23,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(TimeMode.ToSerialString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs index 0463c9a4220e3..334f7721484df 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlert.Serialization.cs @@ -47,5 +47,13 @@ internal static AnomalyAlert DeserializeAnomalyAlert(JsonElement element) } return new AnomalyAlert(alertId, timestamp, createdTime, modifiedTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyAlert FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyAlert(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertConfiguration.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertConfiguration.Serialization.cs index 81cdce25b73f9..4332a5e061c29 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertConfiguration.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertConfiguration.Serialization.cs @@ -138,5 +138,21 @@ internal static AnomalyAlertConfiguration DeserializeAnomalyAlertConfiguration(J hookIds, metricAlertingConfigurations); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyAlertConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyAlertConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs index 50f2c5cf915cb..f7e05c528a798 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationList.Serialization.cs @@ -44,5 +44,13 @@ internal static AnomalyAlertingConfigurationList DeserializeAnomalyAlertingConfi } return new AnomalyAlertingConfigurationList(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyAlertingConfigurationList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyAlertingConfigurationList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.Serialization.cs index 7e7eecd89fc88..36306dc7f959c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyAlertingConfigurationPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AnomalyAlertingConfigurationPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfiguration.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfiguration.Serialization.cs index 77121e63b4d54..2aedfe83e2bab 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfiguration.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfiguration.Serialization.cs @@ -128,5 +128,21 @@ internal static AnomalyDetectionConfiguration DeserializeAnomalyDetectionConfigu dimensionGroupOverrideConfigurations ?? new ChangeTrackingList(), seriesOverrideConfigurations ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyDetectionConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyDetectionConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs index a593a1e59395e..b92a2ab0aed34 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationList.Serialization.cs @@ -44,5 +44,13 @@ internal static AnomalyDetectionConfigurationList DeserializeAnomalyDetectionCon } return new AnomalyDetectionConfigurationList(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyDetectionConfigurationList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyDetectionConfigurationList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationPatch.Serialization.cs index 88f9874660f25..891907b88dc64 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDetectionConfigurationPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AnomalyDetectionConfigurationPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionList.Serialization.cs index adc6695bfe51d..38732102c02c6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionList.Serialization.cs @@ -40,5 +40,13 @@ internal static AnomalyDimensionList DeserializeAnomalyDimensionList(JsonElement } return new AnomalyDimensionList(nextLink, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyDimensionList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyDimensionList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs index 61b5c86bb2fe1..b669258b132bc 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyDimensionQuery.Serialization.cs @@ -28,5 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs index 5e564fb8c362a..6693f4e3e41a4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyFeedbackValue.Serialization.cs @@ -37,5 +37,21 @@ internal static AnomalyFeedbackValue DeserializeAnomalyFeedbackValue(JsonElement } return new AnomalyFeedbackValue(anomalyValue); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyFeedbackValue FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyFeedbackValue(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyIncident.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyIncident.Serialization.cs index e133a5ecf0183..6b043945aefc8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyIncident.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyIncident.Serialization.cs @@ -79,5 +79,13 @@ internal static AnomalyIncident DeserializeAnomalyIncident(JsonElement element) rootNode, property); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyIncident FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyIncident(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs index 109215cdd3813..3c8a751efe8ae 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyProperty.Serialization.cs @@ -55,5 +55,13 @@ internal static AnomalyProperty DeserializeAnomalyProperty(JsonElement element) } return new AnomalyProperty(anomalySeverity, anomalyStatus, value, expectedValue); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyProperty FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyProperty(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyResultList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyResultList.Serialization.cs index 79cf5b2feb817..9b4feb23f81d9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyResultList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AnomalyResultList.Serialization.cs @@ -40,5 +40,13 @@ internal static AnomalyResultList DeserializeAnomalyResultList(JsonElement eleme } return new AnomalyResultList(nextLink, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnomalyResultList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnomalyResultList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs index c49427b9a17f1..3861f8f16079f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static AzureApplicationInsightsDataFeed DeserializeAzureApplicationInsi credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureApplicationInsightsDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureApplicationInsightsDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs index 9f4ae2988394b..9a9a822fdf630 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureApplicationInsightsDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs index 21da252a4052f..7a06b6b2f120d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameter.Serialization.cs @@ -118,5 +118,21 @@ internal static AzureApplicationInsightsParameter DeserializeAzureApplicationIns } return new AzureApplicationInsightsParameter(azureCloud, applicationId, apiKey, query); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureApplicationInsightsParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureApplicationInsightsParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameterPatch.Serialization.cs index ba2f9db608e2a..f7e6283515314 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureApplicationInsightsParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureApplicationInsightsParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs index 1cb66b127af6d..83031752a2b92 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static AzureBlobDataFeed DeserializeAzureBlobDataFeed(JsonElement eleme credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs index b6271fc29fb2e..a497bc99ac9af 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureBlobDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs index 63d2105cfe37b..c9dbab4c4f5f3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameter.Serialization.cs @@ -92,5 +92,21 @@ internal static AzureBlobParameter DeserializeAzureBlobParameter(JsonElement ele } return new AzureBlobParameter(connectionString, container, blobTemplate); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureBlobParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameterPatch.Serialization.cs index 76e6ee72ac6ef..e5ba87d80fa8c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureBlobParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureBlobParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs index 3b7b439323abd..42a03f384d458 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static AzureCosmosDBDataFeed DeserializeAzureCosmosDBDataFeed(JsonEleme credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureCosmosDBDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureCosmosDBDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs index 2dc3901d51cf4..234137cb1c947 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureCosmosDBDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs index 225ec0cc497af..6287133406bba 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameter.Serialization.cs @@ -112,5 +112,21 @@ internal static AzureCosmosDBParameter DeserializeAzureCosmosDBParameter(JsonEle } return new AzureCosmosDBParameter(connectionString, sqlQuery, database, collectionId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureCosmosDBParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureCosmosDBParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameterPatch.Serialization.cs index 0dcfc5a0c0e05..e69a6cb81ddc1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureCosmosDBParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureCosmosDBParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs index 93ec33f774b6d..bd92cd4c3b5d6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static AzureDataExplorerDataFeed DeserializeAzureDataExplorerDataFeed(J credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataExplorerDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataExplorerDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs index 5c52755e443b2..64426c864d635 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataExplorerDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureDataExplorerDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs index a543ea3a84195..bbc9545c10d50 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static AzureDataLakeStorageGen2DataFeed DeserializeAzureDataLakeStorage credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataLakeStorageGen2DataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeStorageGen2DataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs index 53a744babff4d..ca27acd50210d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2DataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureDataLakeStorageGen2DataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs index 29854ea0b742d..f269eacd100d4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2Parameter.Serialization.cs @@ -135,5 +135,21 @@ internal static AzureDataLakeStorageGen2Parameter DeserializeAzureDataLakeStorag } return new AzureDataLakeStorageGen2Parameter(accountName, accountKey, fileSystemName, directoryTemplate, fileTemplate); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureDataLakeStorageGen2Parameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeStorageGen2Parameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2ParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2ParameterPatch.Serialization.cs index 638aa9124f310..5748e63beccd1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2ParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureDataLakeStorageGen2ParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureDataLakeStorageGen2ParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsDataFeed.Serialization.cs index 00da9d40b3b75..f97219bb9cd3d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static AzureEventHubsDataFeed DeserializeAzureEventHubsDataFeed(JsonEle credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureEventHubsDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureEventHubsDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsDataFeedPatch.Serialization.cs index a7ff85e0477d5..542e53003806f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureEventHubsDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsParameter.Serialization.cs index 6ce8c80e34f81..f683c6d2e3fa3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsParameter.Serialization.cs @@ -48,5 +48,21 @@ internal static AzureEventHubsParameter DeserializeAzureEventHubsParameter(JsonE } return new AzureEventHubsParameter(connectionString, consumerGroup); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureEventHubsParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureEventHubsParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsParameterPatch.Serialization.cs index c23f9be2ac486..d3940ca3911f0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureEventHubsParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureEventHubsParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsDataFeed.Serialization.cs index 13b64861e6502..0971accdfcb8a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static AzureLogAnalyticsDataFeed DeserializeAzureLogAnalyticsDataFeed(J credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureLogAnalyticsDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureLogAnalyticsDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsDataFeedPatch.Serialization.cs index cbe5a60a3f3c5..6ad65b736baea 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureLogAnalyticsDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsParameter.Serialization.cs index 20facbbb143ed..1824fe6d549c7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsParameter.Serialization.cs @@ -78,5 +78,21 @@ internal static AzureLogAnalyticsParameter DeserializeAzureLogAnalyticsParameter } return new AzureLogAnalyticsParameter(tenantId, clientId, clientSecret, workspaceId, query); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureLogAnalyticsParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureLogAnalyticsParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsParameterPatch.Serialization.cs index c3a04c7db01fa..ed32aa3dc358b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureLogAnalyticsParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureLogAnalyticsParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringCredentialPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringCredentialPatch.Serialization.cs index 084151b469a08..a7aedca2b22e0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringCredentialPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringCredentialPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureSQLConnectionStringCredentialPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringParam.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringParam.Serialization.cs index effd55316952c..f2a22bb5db156 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringParam.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringParam.Serialization.cs @@ -40,5 +40,21 @@ internal static AzureSQLConnectionStringParam DeserializeAzureSQLConnectionStrin } return new AzureSQLConnectionStringParam(connectionString); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureSQLConnectionStringParam FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSQLConnectionStringParam(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringParamPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringParamPatch.Serialization.cs index 29558fd3ad183..9fec1b7c3e21e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringParamPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureSQLConnectionStringParamPatch.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs index 1dc59a771bb8a..9411d63c553e2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static AzureTableDataFeed DeserializeAzureTableDataFeed(JsonElement ele credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureTableDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureTableDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs index cd385ff0619d7..e148a57a6632d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureTableDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs index 2c8c09eb9b541..f076ea80c4e4e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameter.Serialization.cs @@ -92,5 +92,21 @@ internal static AzureTableParameter DeserializeAzureTableParameter(JsonElement e } return new AzureTableParameter(connectionString, table, query); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureTableParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureTableParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameterPatch.Serialization.cs index a58b1d5f07e1f..d4fae599c83b2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/AzureTableParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class AzureTableParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs index 8a0ca9541f524..f2f88ab5ed5d2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangePointFeedbackValue.Serialization.cs @@ -37,5 +37,21 @@ internal static ChangePointFeedbackValue DeserializeChangePointFeedbackValue(Jso } return new ChangePointFeedbackValue(changePointValue); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChangePointFeedbackValue FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChangePointFeedbackValue(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangeThresholdCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangeThresholdCondition.Serialization.cs index 9482dfda228ab..2b2b12d35e13c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangeThresholdCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangeThresholdCondition.Serialization.cs @@ -69,5 +69,21 @@ internal static ChangeThresholdCondition DeserializeChangeThresholdCondition(Jso } return new ChangeThresholdCondition(changePercentage, shiftPoint, withinRange, anomalyDetectorDirection, suppressCondition); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ChangeThresholdCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChangeThresholdCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangeThresholdConditionPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangeThresholdConditionPatch.Serialization.cs index e789172b4b1ab..113ad4b50813b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangeThresholdConditionPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ChangeThresholdConditionPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class ChangeThresholdConditionPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs index 09f5ae5325226..f6ad4d6cc7bae 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/CommentFeedbackValue.Serialization.cs @@ -37,5 +37,21 @@ internal static CommentFeedbackValue DeserializeCommentFeedbackValue(JsonElement } return new CommentFeedbackValue(commentValue); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CommentFeedbackValue FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommentFeedbackValue(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs index aed2e7edc0abe..dde1a55786a32 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetail.Serialization.cs @@ -187,5 +187,21 @@ internal static DataFeedDetail DeserializeDataFeedDetail(JsonElement element) } return UnknownDataFeedDetail.DeserializeUnknownDataFeedDetail(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFeedDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFeedDetail(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetailPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetailPatch.Serialization.cs index 79bd31fae8a43..6e2222204a6d1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetailPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDetailPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class DataFeedDetailPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDimension.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDimension.Serialization.cs index 9eb8c2b8878f2..4f041a3b64a00 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDimension.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedDimension.Serialization.cs @@ -48,5 +48,21 @@ internal static DataFeedDimension DeserializeDataFeedDimension(JsonElement eleme } return new DataFeedDimension(dimensionName, dimensionDisplayName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFeedDimension FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFeedDimension(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs index b4c7ec2d26f56..8cfd56f5b39be 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionProgress.Serialization.cs @@ -45,5 +45,13 @@ internal static DataFeedIngestionProgress DeserializeDataFeedIngestionProgress(J } return new DataFeedIngestionProgress(latestSuccessTimestamp, latestActiveTimestamp); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFeedIngestionProgress FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFeedIngestionProgress(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs index 6a2a3caa5703c..4c8e22d95297c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedIngestionStatus.Serialization.cs @@ -41,5 +41,13 @@ internal static DataFeedIngestionStatus DeserializeDataFeedIngestionStatus(JsonE } return new DataFeedIngestionStatus(timestamp, status, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFeedIngestionStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFeedIngestionStatus(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.Serialization.cs index 1f54d3253e7aa..2f5a6e9e83a27 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedList.Serialization.cs @@ -44,5 +44,13 @@ internal static DataFeedList DeserializeDataFeedList(JsonElement element) } return new DataFeedList(nextLink, value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFeedList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFeedList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedMetric.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedMetric.Serialization.cs index 9e4e00e33015b..89ec35615817b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedMetric.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataFeedMetric.Serialization.cs @@ -65,5 +65,21 @@ internal static DataFeedMetric DeserializeDataFeedMetric(JsonElement element) } return new DataFeedMetric(metricId, metricName, metricDisplayName, metricDescription); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFeedMetric FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFeedMetric(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyCredentialPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyCredentialPatch.Serialization.cs index 0ce920d9dad1a..f0b30b16a015a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyCredentialPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyCredentialPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class DataLakeGen2SharedKeyCredentialPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyParam.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyParam.Serialization.cs index 06b2ee67ba83d..34b48bd529ba7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyParam.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyParam.Serialization.cs @@ -40,5 +40,21 @@ internal static DataLakeGen2SharedKeyParam DeserializeDataLakeGen2SharedKeyParam } return new DataLakeGen2SharedKeyParam(accountKey); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataLakeGen2SharedKeyParam FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataLakeGen2SharedKeyParam(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyParamPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyParamPatch.Serialization.cs index cde9fbe971163..802ee5b5b86c5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyParamPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeGen2SharedKeyParamPatch.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeSharedKeyCredentialEntity.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeSharedKeyCredentialEntity.Serialization.cs index f2697a3d572b7..6b7e651fe1a4f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeSharedKeyCredentialEntity.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataLakeSharedKeyCredentialEntity.Serialization.cs @@ -71,5 +71,21 @@ internal static DataLakeSharedKeyCredentialEntity DeserializeDataLakeSharedKeyCr } return new DataLakeSharedKeyCredentialEntity(dataSourceCredentialType, dataSourceCredentialId, dataSourceCredentialName, dataSourceCredentialDescription, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DataLakeSharedKeyCredentialEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataLakeSharedKeyCredentialEntity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataPointAnomaly.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataPointAnomaly.Serialization.cs index 4716cd73a745b..66efb5e8d7f28 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataPointAnomaly.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataPointAnomaly.Serialization.cs @@ -93,5 +93,13 @@ internal static DataPointAnomaly DeserializeDataPointAnomaly(JsonElement element dimension, property); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataPointAnomaly FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataPointAnomaly(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialEntity.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialEntity.Serialization.cs index 9051e2d61f255..e1191f06ab8e3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialEntity.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialEntity.Serialization.cs @@ -26,5 +26,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataSourceCredentialEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataSourceCredentialEntity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.Serialization.cs index fc379625eb00e..a2cd450b4a838 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialList.Serialization.cs @@ -45,5 +45,13 @@ internal static DataSourceCredentialList DeserializeDataSourceCredentialList(Jso } return new DataSourceCredentialList(nextLink, value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataSourceCredentialList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataSourceCredentialList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialPatch.Serialization.cs index bdfe7b38887db..863d5c3cf4b29 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DataSourceCredentialPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class DataSourceCredentialPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs index 87d248d756426..2f690e77b34b7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyFilterCondition.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs index ddd2f7d48e4b3..736be2ca3c08a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionAnomalyResultQuery.Serialization.cs @@ -26,5 +26,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs index 775550840c2ab..ee87664839f85 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentFilterCondition.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs index fafd1f93fd183..3f2b37e587195 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionIncidentResultQuery.Serialization.cs @@ -26,5 +26,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs index 83ee0fb546f64..81974f8e34889 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DetectionSeriesQuery.Serialization.cs @@ -28,5 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DimensionKey.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DimensionKey.Serialization.cs index 5ef3a0b9e13d8..eb19d0969ee5b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DimensionKey.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/DimensionKey.Serialization.cs @@ -49,5 +49,21 @@ internal static DimensionKey DeserializeDimensionKey(JsonElement element) } return new DimensionKey(dimension); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DimensionKey FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDimensionKey(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs index 64062a655427a..3fa31fe35e0bb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookInfoPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class EmailHookInfoPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs index f64dc2daa28b1..1f82cdb4f4247 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameter.Serialization.cs @@ -48,5 +48,21 @@ internal static EmailHookParameter DeserializeEmailHookParameter(JsonElement ele } return new EmailHookParameter(toList); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EmailHookParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEmailHookParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameterPatch.Serialization.cs index 4e6431f2c9f96..20238d129d01e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailHookParameterPatch.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailNotificationHook.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailNotificationHook.Serialization.cs index 37d76977f8941..77d110c4bfe17 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailNotificationHook.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EmailNotificationHook.Serialization.cs @@ -115,5 +115,21 @@ internal static EmailNotificationHook DeserializeEmailNotificationHook(JsonEleme admins ?? new ChangeTrackingList(), hookParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EmailNotificationHook FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEmailNotificationHook(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs index 81f0f7f875ea9..999786bdcb256 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatus.Serialization.cs @@ -41,5 +41,13 @@ internal static EnrichmentStatus DeserializeEnrichmentStatus(JsonElement element } return new EnrichmentStatus(timestamp, status, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EnrichmentStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEnrichmentStatus(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.Serialization.cs index a1856af163361..9195231a23500 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusList.Serialization.cs @@ -44,5 +44,13 @@ internal static EnrichmentStatusList DeserializeEnrichmentStatusList(JsonElement } return new EnrichmentStatusList(nextLink, value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EnrichmentStatusList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEnrichmentStatusList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs index a71694174299d..fd7494a137104 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/EnrichmentStatusQueryOption.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(EndTime, "O"); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ErrorCode.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ErrorCode.Serialization.cs index 21112e984bb1c..361678a5342d8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ErrorCode.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ErrorCode.Serialization.cs @@ -34,5 +34,13 @@ internal static ErrorCode DeserializeErrorCode(JsonElement element) } return new ErrorCode(message, code); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorCode FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorCode(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackFilter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackFilter.Serialization.cs index 3bc0eed1c5f73..7347b5e8b4e5b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackFilter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/FeedbackFilter.Serialization.cs @@ -49,5 +49,21 @@ internal static FeedbackFilter DeserializeFeedbackFilter(JsonElement element) } return new FeedbackFilter(dimension); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FeedbackFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFeedbackFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HardThresholdCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HardThresholdCondition.Serialization.cs index 62090a3c2f42e..4923d8b400ed9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HardThresholdCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HardThresholdCondition.Serialization.cs @@ -75,5 +75,21 @@ internal static HardThresholdCondition DeserializeHardThresholdCondition(JsonEle } return new HardThresholdCondition(lowerBound, upperBound, anomalyDetectorDirection, suppressCondition); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HardThresholdCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHardThresholdCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HardThresholdConditionPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HardThresholdConditionPatch.Serialization.cs index 1abaa31f399a3..8e0b8d37f8e24 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HardThresholdConditionPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HardThresholdConditionPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class HardThresholdConditionPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.Serialization.cs index 205950f7d8f44..43594ddb5a83f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookInfoPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class HookInfoPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.Serialization.cs index 7ad566cc94678..43e4523dd862c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/HookList.Serialization.cs @@ -45,5 +45,13 @@ internal static HookList DeserializeHookList(JsonElement element) } return new HookList(nextLink, value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HookList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHookList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs index 505762c8b7ef3..105ab82b3ca5c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentProperty.Serialization.cs @@ -51,5 +51,13 @@ internal static IncidentProperty DeserializeIncidentProperty(JsonElement element } return new IncidentProperty(maxSeverity, incidentStatus, valueOfRootNode, expectedValueOfRootNode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IncidentProperty FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIncidentProperty(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentResultList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentResultList.Serialization.cs index e6ea2f9e246bc..e0495781a149c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentResultList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentResultList.Serialization.cs @@ -40,5 +40,13 @@ internal static IncidentResultList DeserializeIncidentResultList(JsonElement ele } return new IncidentResultList(nextLink, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IncidentResultList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIncidentResultList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentRootCause.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentRootCause.Serialization.cs index 3913c0d559de4..e8ca7001f9876 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentRootCause.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IncidentRootCause.Serialization.cs @@ -52,5 +52,13 @@ internal static IncidentRootCause DeserializeIncidentRootCause(JsonElement eleme } return new IncidentRootCause(rootCause, path, score, description); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IncidentRootCause FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIncidentRootCause(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs index 252caf4d4b1bb..29c505a7d8697 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static InfluxDBDataFeed DeserializeInfluxDBDataFeed(JsonElement element credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new InfluxDBDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInfluxDBDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs index ba77c92553c45..272cf6bb4d556 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class InfluxDBDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs index fddcc27ede063..6c3db38063377 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameter.Serialization.cs @@ -141,5 +141,21 @@ internal static InfluxDBParameter DeserializeInfluxDBParameter(JsonElement eleme } return new InfluxDBParameter(connectionString, database, userName, password, query); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InfluxDBParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInfluxDBParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameterPatch.Serialization.cs index c3b13559085a3..870e79b7f01d2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/InfluxDBParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class InfluxDBParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs index 6d731c13c89b2..979d5939c597b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionProgressResetOptions.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(EndTime, "O"); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.Serialization.cs index e60c49a2489e3..5a4c41f19be85 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusList.Serialization.cs @@ -44,5 +44,13 @@ internal static IngestionStatusList DeserializeIngestionStatusList(JsonElement e } return new IngestionStatusList(nextLink, value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IngestionStatusList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIngestionStatusList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs index e904827338a06..740efeefd81df 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/IngestionStatusQueryOptions.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(EndTime, "O"); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAlertConfiguration.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAlertConfiguration.Serialization.cs index 636f07415641d..ecdccac524444 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAlertConfiguration.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAlertConfiguration.Serialization.cs @@ -143,5 +143,21 @@ internal static MetricAlertConfiguration DeserializeMetricAlertConfiguration(Jso snoozeFilter, valueFilter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricAlertConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricAlertConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyAlertSnoozeCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyAlertSnoozeCondition.Serialization.cs index 68eabc8bb1146..902028f19885d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyAlertSnoozeCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyAlertSnoozeCondition.Serialization.cs @@ -53,5 +53,21 @@ internal static MetricAnomalyAlertSnoozeCondition DeserializeMetricAnomalyAlertS } return new MetricAnomalyAlertSnoozeCondition(autoSnooze, snoozeScope, onlyForSuccessive); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricAnomalyAlertSnoozeCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricAnomalyAlertSnoozeCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs index cd1e88b5ba276..667f08bd68f66 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricAnomalyFeedback.Serialization.cs @@ -158,5 +158,21 @@ internal static MetricAnomalyFeedback DeserializeMetricAnomalyFeedback(JsonEleme anomalyDetectionConfigurationId, anomalyDetectionConfigurationSnapshot); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MetricAnomalyFeedback FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricAnomalyFeedback(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricBoundaryCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricBoundaryCondition.Serialization.cs index 63c52c819c29c..e3bdd5235ded6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricBoundaryCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricBoundaryCondition.Serialization.cs @@ -114,5 +114,21 @@ internal static MetricBoundaryCondition DeserializeMetricBoundaryCondition(JsonE metricId, triggerForMissing); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricBoundaryCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricBoundaryCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricChangePointFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricChangePointFeedback.Serialization.cs index a3c73a5375b55..7fead9785b4c8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricChangePointFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricChangePointFeedback.Serialization.cs @@ -110,5 +110,21 @@ internal static MetricChangePointFeedback DeserializeMetricChangePointFeedback(J endTime, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MetricChangePointFeedback FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricChangePointFeedback(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs index fa31441a3d11f..13873b7bff530 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricCommentFeedback.Serialization.cs @@ -140,5 +140,21 @@ internal static MetricCommentFeedback DeserializeMetricCommentFeedback(JsonEleme endTime, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MetricCommentFeedback FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricCommentFeedback(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs index 4f6e4a2fe4189..7583db47d664a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataList.Serialization.cs @@ -38,5 +38,13 @@ internal static MetricDataList DeserializeMetricDataList(JsonElement element) } return new MetricDataList(value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricDataList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricDataList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs index 136b90e165925..eb4a4f5c4aef2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDataQueryOptions.Serialization.cs @@ -39,5 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.Serialization.cs index 3a8fdc5c389b0..18ce9c395dece 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionList.Serialization.cs @@ -44,5 +44,13 @@ internal static MetricDimensionList DeserializeMetricDimensionList(JsonElement e } return new MetricDimensionList(nextLink, value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricDimensionList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricDimensionList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs index 216bec8c0e3b3..5139366b35ba7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricDimensionQueryOptions.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricEnrichedSeriesData.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricEnrichedSeriesData.Serialization.cs index 18f61c4dff329..3418fa85a6aa7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricEnrichedSeriesData.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricEnrichedSeriesData.Serialization.cs @@ -150,5 +150,13 @@ internal static MetricEnrichedSeriesData DeserializeMetricEnrichedSeriesData(Jso lowerBoundaryList, upperBoundaryList); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricEnrichedSeriesData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricEnrichedSeriesData(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.Serialization.cs index 214f869f75164..95a1e087b6866 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedback.Serialization.cs @@ -23,5 +23,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(DimensionFilter); writer.WriteEndObject(); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricFeedback FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricFeedback(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs index 348ba849d306e..5737d255a39c1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackFilter.Serialization.cs @@ -44,5 +44,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.Serialization.cs index 07c0026c601de..5f7da097f0784 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricFeedbackList.Serialization.cs @@ -44,5 +44,13 @@ internal static MetricFeedbackList DeserializeMetricFeedbackList(JsonElement ele } return new MetricFeedbackList(nextLink, value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricFeedbackList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricFeedbackList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricPeriodFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricPeriodFeedback.Serialization.cs index 898dd2b4d413b..d07326f0a2b0d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricPeriodFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricPeriodFeedback.Serialization.cs @@ -92,5 +92,21 @@ internal static MetricPeriodFeedback DeserializeMetricPeriodFeedback(JsonElement dimensionFilter, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MetricPeriodFeedback FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricPeriodFeedback(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs index d6e672b9a8c96..3a0d7c49e5126 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesData.Serialization.cs @@ -52,5 +52,13 @@ internal static MetricSeriesData DeserializeMetricSeriesData(JsonElement element } return new MetricSeriesData(id, timestampList, valueList); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricSeriesData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricSeriesData(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs index 5a8fe68fbd3fb..b5e15add141f6 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesDefinition.Serialization.cs @@ -40,5 +40,13 @@ internal static MetricSeriesDefinition DeserializeMetricSeriesDefinition(JsonEle } return new MetricSeriesDefinition(metricId, dimension); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricSeriesDefinition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricSeriesDefinition(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesGroupDetectionCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesGroupDetectionCondition.Serialization.cs index 502ef19cfe792..5e76cca2af041 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesGroupDetectionCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesGroupDetectionCondition.Serialization.cs @@ -97,5 +97,21 @@ internal static MetricSeriesGroupDetectionCondition DeserializeMetricSeriesGroup } return new MetricSeriesGroupDetectionCondition(conditionOperator, smartDetectionCondition, hardThresholdCondition, changeThresholdCondition, group); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MetricSeriesGroupDetectionCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricSeriesGroupDetectionCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.Serialization.cs index 305040543c53c..9c76a0afafd58 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesList.Serialization.cs @@ -44,5 +44,13 @@ internal static MetricSeriesList DeserializeMetricSeriesList(JsonElement element } return new MetricSeriesList(nextLink, value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricSeriesList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricSeriesList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs index 87b0551cc2011..ad897be3a2b86 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSeriesQueryOptions.Serialization.cs @@ -40,5 +40,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSingleSeriesDetectionCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSingleSeriesDetectionCondition.Serialization.cs index d3b7de3a7614a..28310d4128367 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSingleSeriesDetectionCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricSingleSeriesDetectionCondition.Serialization.cs @@ -97,5 +97,21 @@ internal static MetricSingleSeriesDetectionCondition DeserializeMetricSingleSeri } return new MetricSingleSeriesDetectionCondition(conditionOperator, smartDetectionCondition, hardThresholdCondition, changeThresholdCondition, series); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MetricSingleSeriesDetectionCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricSingleSeriesDetectionCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricWholeSeriesDetectionCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricWholeSeriesDetectionCondition.Serialization.cs index 3012c8ff7d0ad..6b293bfb5dd63 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricWholeSeriesDetectionCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MetricWholeSeriesDetectionCondition.Serialization.cs @@ -89,5 +89,21 @@ internal static MetricWholeSeriesDetectionCondition DeserializeMetricWholeSeries } return new MetricWholeSeriesDetectionCondition(conditionOperator, smartDetectionCondition, hardThresholdCondition, changeThresholdCondition); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricWholeSeriesDetectionCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricWholeSeriesDetectionCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs index 3c5c195664e00..41eb43280a608 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static MongoDBDataFeed DeserializeMongoDBDataFeed(JsonElement element) credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDBDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDBDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs index 0c17307f0cb9d..bafc1529c52eb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class MongoDBDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs index d51e3ceb85065..d759e4a5e97c7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameter.Serialization.cs @@ -95,5 +95,21 @@ internal static MongoDBParameter DeserializeMongoDBParameter(JsonElement element } return new MongoDBParameter(connectionString, database, command); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MongoDBParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDBParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameterPatch.Serialization.cs index 0001ad3bc4c39..7c4a0031273a0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MongoDBParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class MongoDBParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs index 436f3a54cb5b0..5721234057074 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static MySqlDataFeed DeserializeMySqlDataFeed(JsonElement element) credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MySqlDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMySqlDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs index a8c0b30b12fe1..309112322ed6b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/MySqlDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class MySqlDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/NotificationHook.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/NotificationHook.Serialization.cs index 838bd727646a4..06219a34a0d44 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/NotificationHook.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/NotificationHook.Serialization.cs @@ -41,5 +41,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotificationHook FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotificationHook(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs index 33e35b13dfdd6..5cb3aa49c2f2f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PeriodFeedbackValue.Serialization.cs @@ -45,5 +45,21 @@ internal static PeriodFeedbackValue DeserializePeriodFeedbackValue(JsonElement e } return new PeriodFeedbackValue(periodType, periodValue); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PeriodFeedbackValue FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePeriodFeedbackValue(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs index d29b7efd07648..58aa5da189ee2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static PostgreSqlDataFeed DeserializePostgreSqlDataFeed(JsonElement ele credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PostgreSqlDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePostgreSqlDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs index 985868c4d18f0..9be9c84bfd97f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/PostgreSqlDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class PostgreSqlDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs index 7d15f7844baf7..f3a42c3400a16 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/RootCauseList.Serialization.cs @@ -34,5 +34,13 @@ internal static RootCauseList DeserializeRootCauseList(JsonElement element) } return new RootCauseList(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RootCauseList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRootCauseList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs index 563e816a3d7c3..d2b1d97fe8564 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeed.Serialization.cs @@ -490,5 +490,21 @@ internal static SQLServerDataFeed DeserializeSQLServerDataFeed(JsonElement eleme credentialId, dataSourceParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SQLServerDataFeed FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSQLServerDataFeed(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs index da8a0ee11aa0c..5252a7ca3c0a3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLServerDataFeedPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class SQLServerDataFeedPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLSourceParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLSourceParameterPatch.Serialization.cs index 4603500c0b2d6..0a4092b96ae77 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLSourceParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SQLSourceParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class SQLSourceParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs index 7cc967ffd1164..c0fffea4276f5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesIdentity.Serialization.cs @@ -49,5 +49,21 @@ internal static SeriesIdentity DeserializeSeriesIdentity(JsonElement element) } return new SeriesIdentity(dimension); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SeriesIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSeriesIdentity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs index 82bc8cbc8339f..7974744a4e32a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeriesResultList.Serialization.cs @@ -34,5 +34,13 @@ internal static SeriesResultList DeserializeSeriesResultList(JsonElement element } return new SeriesResultList(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SeriesResultList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSeriesResultList(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalCredentialEntity.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalCredentialEntity.Serialization.cs index 5e4ed242f1f5a..3f03493d75a24 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalCredentialEntity.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalCredentialEntity.Serialization.cs @@ -71,5 +71,21 @@ internal static ServicePrincipalCredentialEntity DeserializeServicePrincipalCred } return new ServicePrincipalCredentialEntity(dataSourceCredentialType, dataSourceCredentialId, dataSourceCredentialName, dataSourceCredentialDescription, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ServicePrincipalCredentialEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServicePrincipalCredentialEntity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalCredentialPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalCredentialPatch.Serialization.cs index a643bc4d912a9..1bf0ba9de8f98 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalCredentialPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalCredentialPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class ServicePrincipalCredentialPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVCredentialPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVCredentialPatch.Serialization.cs index 64643296efad6..c1bbf7964c1a0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVCredentialPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVCredentialPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class ServicePrincipalInKVCredentialPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVParam.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVParam.Serialization.cs index e78c3a8e9f08b..dbee0111380f5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVParam.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVParam.Serialization.cs @@ -86,5 +86,21 @@ internal static ServicePrincipalInKVParam DeserializeServicePrincipalInKVParam(J servicePrincipalSecretNameInKV, tenantId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServicePrincipalInKVParam FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServicePrincipalInKVParam(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVParamPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVParamPatch.Serialization.cs index 5722f3614b4a5..f7c0b5f698fd1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVParamPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKVParamPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class ServicePrincipalInKVParamPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKeyVaultCredentialEntity.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKeyVaultCredentialEntity.Serialization.cs index f4da3034b9f47..8711772002f3f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKeyVaultCredentialEntity.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalInKeyVaultCredentialEntity.Serialization.cs @@ -71,5 +71,21 @@ internal static ServicePrincipalInKeyVaultCredentialEntity DeserializeServicePri } return new ServicePrincipalInKeyVaultCredentialEntity(dataSourceCredentialType, dataSourceCredentialId, dataSourceCredentialName, dataSourceCredentialDescription, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ServicePrincipalInKeyVaultCredentialEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServicePrincipalInKeyVaultCredentialEntity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalParam.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalParam.Serialization.cs index 2de9bc42127d0..6ce49b7297619 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalParam.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalParam.Serialization.cs @@ -56,5 +56,21 @@ internal static ServicePrincipalParam DeserializeServicePrincipalParam(JsonEleme } return new ServicePrincipalParam(clientId, clientSecret, tenantId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServicePrincipalParam FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServicePrincipalParam(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalParamPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalParamPatch.Serialization.cs index e1afd1ebe264f..f7aebc5bd6520 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalParamPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/ServicePrincipalParamPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class ServicePrincipalParamPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityCondition.Serialization.cs index 38fba645b585b..1b9fe29fd21c5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityCondition.Serialization.cs @@ -45,5 +45,21 @@ internal static SeverityCondition DeserializeSeverityCondition(JsonElement eleme } return new SeverityCondition(minAlertSeverity, maxAlertSeverity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SeverityCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSeverityCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs index 041c628fe626c..aa20e570ee3ff 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SeverityFilterCondition.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Max.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SmartDetectionCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SmartDetectionCondition.Serialization.cs index c68b4f733ec10..063fdb16363f9 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SmartDetectionCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SmartDetectionCondition.Serialization.cs @@ -53,5 +53,21 @@ internal static SmartDetectionCondition DeserializeSmartDetectionCondition(JsonE } return new SmartDetectionCondition(sensitivity, anomalyDetectorDirection, suppressCondition); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SmartDetectionCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSmartDetectionCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SmartDetectionConditionPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SmartDetectionConditionPatch.Serialization.cs index 27e8ead210087..608ac34ae5860 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SmartDetectionConditionPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SmartDetectionConditionPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class SmartDetectionConditionPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlConnectionStringCredentialEntity.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlConnectionStringCredentialEntity.Serialization.cs index f14853529eb85..151cd74e340ac 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlConnectionStringCredentialEntity.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlConnectionStringCredentialEntity.Serialization.cs @@ -71,5 +71,21 @@ internal static SqlConnectionStringCredentialEntity DeserializeSqlConnectionStri } return new SqlConnectionStringCredentialEntity(dataSourceCredentialType, dataSourceCredentialId, dataSourceCredentialName, dataSourceCredentialDescription, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlConnectionStringCredentialEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlConnectionStringCredentialEntity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs index 545da354db9a4..f41680ba8c868 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SqlSourceParameter.Serialization.cs @@ -72,5 +72,21 @@ internal static SqlSourceParameter DeserializeSqlSourceParameter(JsonElement ele } return new SqlSourceParameter(connectionString, query); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlSourceParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlSourceParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SuppressCondition.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SuppressCondition.Serialization.cs index 6c06d166a9022..919432ea0e64b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SuppressCondition.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SuppressCondition.Serialization.cs @@ -45,5 +45,21 @@ internal static SuppressCondition DeserializeSuppressCondition(JsonElement eleme } return new SuppressCondition(minNumber, minRatio); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SuppressCondition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSuppressCondition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SuppressConditionPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SuppressConditionPatch.Serialization.cs index fa453df2125be..a351abad1ad62 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SuppressConditionPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/SuppressConditionPatch.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/TopNGroupScope.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/TopNGroupScope.Serialization.cs index 4f705b5caefc2..c210ecfeaf813 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/TopNGroupScope.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/TopNGroupScope.Serialization.cs @@ -53,5 +53,21 @@ internal static TopNGroupScope DeserializeTopNGroupScope(JsonElement element) } return new TopNGroupScope(top, period, minTopCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TopNGroupScope FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTopNGroupScope(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownDataFeedDetail.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownDataFeedDetail.Serialization.cs index f732935885bd6..8790c618fae2b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownDataFeedDetail.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownDataFeedDetail.Serialization.cs @@ -481,5 +481,21 @@ internal static UnknownDataFeedDetail DeserializeUnknownDataFeedDetail(JsonEleme authenticationType, credentialId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDataFeedDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDataFeedDetail(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownDataSourceCredential.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownDataSourceCredential.Serialization.cs index 2e9b2227a98be..0d8af9b133d51 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownDataSourceCredential.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownDataSourceCredential.Serialization.cs @@ -62,5 +62,21 @@ internal static UnknownDataSourceCredential DeserializeUnknownDataSourceCredenti } return new UnknownDataSourceCredential(dataSourceCredentialType, dataSourceCredentialId, dataSourceCredentialName, dataSourceCredentialDescription); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDataSourceCredential FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDataSourceCredential(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownHookInfo.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownHookInfo.Serialization.cs index 5df83dc56e6a8..d85fb733eaff0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownHookInfo.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownHookInfo.Serialization.cs @@ -105,5 +105,21 @@ internal static UnknownHookInfo DeserializeUnknownHookInfo(JsonElement element) externalLink, admins ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownHookInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownHookInfo(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownMetricFeedback.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownMetricFeedback.Serialization.cs index 8956f34d2ee68..8c8f5ea7ace22 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownMetricFeedback.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UnknownMetricFeedback.Serialization.cs @@ -82,5 +82,21 @@ internal static UnknownMetricFeedback DeserializeUnknownMetricFeedback(JsonEleme metricId, dimensionFilter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownMetricFeedback FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownMetricFeedback(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs index 5f38aafd2ae65..4d600a508b5eb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/UsageStats.Serialization.cs @@ -73,5 +73,13 @@ internal static UsageStats DeserializeUsageStats(JsonElement element) } return new UsageStats(timestamp, activeSeriesCount, allSeriesCount, metricsCount, dataFeedCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static UsageStats FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUsageStats(document.RootElement); + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebNotificationHook.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebNotificationHook.Serialization.cs index f56ae46b05b08..98ca5b7efdf1e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebNotificationHook.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebNotificationHook.Serialization.cs @@ -115,5 +115,21 @@ internal static WebNotificationHook DeserializeWebNotificationHook(JsonElement e admins ?? new ChangeTrackingList(), hookParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebNotificationHook FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebNotificationHook(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs index 77a6867a0f426..39bd442e674e4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookInfoPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class WebhookHookInfoPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameter.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameter.Serialization.cs index 44c9248bddb66..6507883b6bea3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameter.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameter.Serialization.cs @@ -114,5 +114,21 @@ internal static WebhookHookParameter DeserializeWebhookHookParameter(JsonElement certificateKey, certificatePassword); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebhookHookParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebhookHookParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameterPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameterPatch.Serialization.cs index 5ab37db2dc406..f4cad5643b2ec 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameterPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WebhookHookParameterPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class WebhookHookParameterPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WholeMetricConfigurationPatch.Serialization.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WholeMetricConfigurationPatch.Serialization.cs index ba2f065d38d5d..18541da531c51 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WholeMetricConfigurationPatch.Serialization.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/Models/WholeMetricConfigurationPatch.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.AI.MetricsAdvisor.Models { internal partial class WholeMetricConfigurationPatch : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/Models/StsTokenResponseMessage.Serialization.cs b/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/Models/StsTokenResponseMessage.Serialization.cs index 9992f793bbc4e..24c18fb2906a0 100644 --- a/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/Models/StsTokenResponseMessage.Serialization.cs +++ b/sdk/mixedreality/Azure.MixedReality.Authentication/src/Generated/Models/StsTokenResponseMessage.Serialization.cs @@ -28,5 +28,13 @@ internal static StsTokenResponseMessage DeserializeStsTokenResponseMessage(JsonE } return new StsTokenResponseMessage(accessToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StsTokenResponseMessage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStsTokenResponseMessage(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/AvailabilityData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/AvailabilityData.Serialization.cs index 77d44f913411e..cc40a36327dc9 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/AvailabilityData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/AvailabilityData.Serialization.cs @@ -64,5 +64,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MessageData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MessageData.Serialization.cs index 80a0961106fc6..064d9c7275784 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MessageData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MessageData.Serialization.cs @@ -53,5 +53,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MetricDataPoint.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MetricDataPoint.Serialization.cs index c5468d1f7ca13..2298927ecd563 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MetricDataPoint.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MetricDataPoint.Serialization.cs @@ -79,5 +79,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MetricsData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MetricsData.Serialization.cs index df71a2da8730f..2eeb0ae00f781 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MetricsData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MetricsData.Serialization.cs @@ -42,5 +42,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MonitorBase.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MonitorBase.Serialization.cs index 3d64883dabac1..2803ec31d9b4f 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MonitorBase.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MonitorBase.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MonitorDomain.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MonitorDomain.Serialization.cs index dcc529829792e..27352854299f0 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MonitorDomain.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/MonitorDomain.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/PageViewData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/PageViewData.Serialization.cs index b048863887ff4..007dfbbb85c3e 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/PageViewData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/PageViewData.Serialization.cs @@ -65,5 +65,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/PageViewPerfData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/PageViewPerfData.Serialization.cs index f7ee84c228e70..9764da35d8e42 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/PageViewPerfData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/PageViewPerfData.Serialization.cs @@ -85,5 +85,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/RemoteDependencyData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/RemoteDependencyData.Serialization.cs index b4bfa110998d3..9c83f1a03a56f 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/RemoteDependencyData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/RemoteDependencyData.Serialization.cs @@ -80,5 +80,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/RequestData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/RequestData.Serialization.cs index 6a436b927ec93..2d8c2ae685c42 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/RequestData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/RequestData.Serialization.cs @@ -69,5 +69,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/StackFrame.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/StackFrame.Serialization.cs index 35519c1ad053c..a12e0b6b7e430 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/StackFrame.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/StackFrame.Serialization.cs @@ -36,5 +36,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryErrorDetails.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryErrorDetails.Serialization.cs index ac47080b0295d..55afda5427a3f 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryErrorDetails.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryErrorDetails.Serialization.cs @@ -48,5 +48,13 @@ internal static TelemetryErrorDetails DeserializeTelemetryErrorDetails(JsonEleme } return new TelemetryErrorDetails(index, statusCode, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TelemetryErrorDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTelemetryErrorDetails(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryEventData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryEventData.Serialization.cs index 7b027a03353a0..60dbc4270fb70 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryEventData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryEventData.Serialization.cs @@ -48,5 +48,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionData.Serialization.cs index e2118c49d558d..02cff10d93608 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionData.Serialization.cs @@ -70,5 +70,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionDetails.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionDetails.Serialization.cs index 2b141c5f144d5..4657442545ea9 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionDetails.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryExceptionDetails.Serialization.cs @@ -54,5 +54,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryItem.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryItem.Serialization.cs index 71f95d8e3d4ac..25b706f890935 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryItem.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TelemetryItem.Serialization.cs @@ -57,5 +57,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.Serialization.cs index 8d403b73057ac..fc2eb3657326b 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Generated/Models/TrackResponse.Serialization.cs @@ -58,5 +58,13 @@ internal static TrackResponse DeserializeTrackResponse(JsonElement element) } return new TrackResponse(itemsReceived, itemsAccepted, errors ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TrackResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTrackResponse(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationError.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationError.Serialization.cs index 21584fa6a72f9..73202fec2d0cf 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationError.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationError.Serialization.cs @@ -42,5 +42,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.Serialization.cs index 3a9550b038a9d..bee6e3d4b2e80 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/CollectionConfigurationInfo.Serialization.cs @@ -69,5 +69,13 @@ internal static CollectionConfigurationInfo DeserializeCollectionConfigurationIn } return new CollectionConfigurationInfo(etag, metrics ?? new ChangeTrackingList(), documentStreams ?? new ChangeTrackingList(), quotaInfo); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CollectionConfigurationInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCollectionConfigurationInfo(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.Serialization.cs index 6c3560ede4d88..b011ae6ddd287 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DerivedMetricInfo.Serialization.cs @@ -66,5 +66,13 @@ internal static DerivedMetricInfo DeserializeDerivedMetricInfo(JsonElement eleme } return new DerivedMetricInfo(id, telemetryType, filterGroups ?? new ChangeTrackingList(), projection, aggregation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DerivedMetricInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDerivedMetricInfo(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentFilterConjunctionGroupInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentFilterConjunctionGroupInfo.Serialization.cs index 7faa44f8bb274..e9cc5ab7e9d33 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentFilterConjunctionGroupInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentFilterConjunctionGroupInfo.Serialization.cs @@ -42,5 +42,13 @@ internal static DocumentFilterConjunctionGroupInfo DeserializeDocumentFilterConj } return new DocumentFilterConjunctionGroupInfo(telemetryType, filters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentFilterConjunctionGroupInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentFilterConjunctionGroupInfo(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentIngress.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentIngress.Serialization.cs index cc77ddd9915af..54bf1e39fbe05 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentIngress.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentIngress.Serialization.cs @@ -39,5 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.Serialization.cs index 7c9b97e9ef82a..aa7e8c7726b92 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/DocumentStreamInfo.Serialization.cs @@ -44,5 +44,13 @@ internal static DocumentStreamInfo DeserializeDocumentStreamInfo(JsonElement ele } return new DocumentStreamInfo(id, documentFilterGroups ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentStreamInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentStreamInfo(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Event.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Event.Serialization.cs index 8b5d60229296f..b6b914682b9b7 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Event.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Event.Serialization.cs @@ -44,5 +44,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Exception.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Exception.Serialization.cs index 388cf5cf54725..1e488fb8d586f 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Exception.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Exception.Serialization.cs @@ -49,5 +49,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.Serialization.cs index f4994ea610d3b..e7df7d76aa85e 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterConjunctionGroupInfo.Serialization.cs @@ -38,5 +38,13 @@ internal static FilterConjunctionGroupInfo DeserializeFilterConjunctionGroupInfo } return new FilterConjunctionGroupInfo(filters ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FilterConjunctionGroupInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFilterConjunctionGroupInfo(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterInfo.Serialization.cs index 6f135bd4a8de4..105f4b483a0ac 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/FilterInfo.Serialization.cs @@ -44,5 +44,13 @@ internal static FilterInfo DeserializeFilterInfo(JsonElement element) } return new FilterInfo(fieldName, predicate, comparand); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FilterInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFilterInfo(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/KeyValuePairString.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/KeyValuePairString.Serialization.cs index e1177642fbf1c..7498d3682b25c 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/KeyValuePairString.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/KeyValuePairString.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MetricPoint.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MetricPoint.Serialization.cs index d1c257968f8d1..6a18ce10a2b80 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MetricPoint.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MetricPoint.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MonitoringDataPoint.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MonitoringDataPoint.Serialization.cs index 1291d30eb97af..80e6aa151cdb6 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MonitoringDataPoint.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/MonitoringDataPoint.Serialization.cs @@ -107,5 +107,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/ProcessCpuData.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/ProcessCpuData.Serialization.cs index bb67299131319..d22f0fc3d2b83 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/ProcessCpuData.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/ProcessCpuData.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/QuotaConfigurationInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/QuotaConfigurationInfo.Serialization.cs index 421517a3fe753..484e18a43c78d 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/QuotaConfigurationInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/QuotaConfigurationInfo.Serialization.cs @@ -44,5 +44,13 @@ internal static QuotaConfigurationInfo DeserializeQuotaConfigurationInfo(JsonEle } return new QuotaConfigurationInfo(initialQuota, maxQuota, quotaAccrualRatePerSec); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QuotaConfigurationInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuotaConfigurationInfo(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/RemoteDependency.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/RemoteDependency.Serialization.cs index 24dd3f7908450..38881539f1b46 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/RemoteDependency.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/RemoteDependency.Serialization.cs @@ -59,5 +59,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Request.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Request.Serialization.cs index 4b14620614833..7230d8fd3156f 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Request.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Request.Serialization.cs @@ -59,5 +59,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/ServiceError.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/ServiceError.Serialization.cs index 8243046f2a58c..f21bc92b7227a 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/ServiceError.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/ServiceError.Serialization.cs @@ -57,5 +57,13 @@ internal static ServiceError DeserializeServiceError(JsonElement element) } return new ServiceError(requestId, responseDateTime, code, message, exception); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServiceError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceError(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Trace.Serialization.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Trace.Serialization.cs index 0b73c46cbebdd..c4b5df89e5232 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Trace.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics/src/Generated/Models/Trace.Serialization.cs @@ -44,5 +44,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.Serialization.cs index 9477617f98740..fa399ae176d9c 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryRequest.Serialization.cs @@ -38,5 +38,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Workspace); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryResponse.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryResponse.Serialization.cs index 65a6db2a9d4f6..30222a9f20ecf 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryResponse.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchQueryResponse.Serialization.cs @@ -64,5 +64,13 @@ internal static BatchQueryResponse DeserializeBatchQueryResponse(JsonElement ele } return new BatchQueryResponse(id, status, body, headers ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BatchQueryResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBatchQueryResponse(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchRequest.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchRequest.Serialization.cs index f6b78d17affe5..fb13ee26497ce 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchRequest.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchRequest.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.Serialization.cs index 7f5426ca21f9f..a9fcb69aa6d34 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/BatchResponse.Serialization.cs @@ -38,5 +38,13 @@ internal static BatchResponse DeserializeBatchResponse(JsonElement element) } return new BatchResponse(responses ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BatchResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBatchResponse(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index f5576c06897e2..3c68a2b33f179 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -38,5 +38,13 @@ internal static ErrorAdditionalInfo DeserializeErrorAdditionalInfo(JsonElement e } return new ErrorAdditionalInfo(type, info); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorAdditionalInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorAdditionalInfo(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.Serialization.cs index 1508fa811f453..41547c626c0ac 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetail.Serialization.cs @@ -71,5 +71,13 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) } return new ErrorDetail(code, message, target, details ?? new ChangeTrackingList(), additionalInfo ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetail(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetailAutoGenerated.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetailAutoGenerated.Serialization.cs index 9d8ef5a0718fb..d859584c19f3e 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetailAutoGenerated.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorDetailAutoGenerated.Serialization.cs @@ -78,5 +78,13 @@ internal static ErrorDetailAutoGenerated DeserializeErrorDetailAutoGenerated(Jso resources ?? new ChangeTrackingList(), additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetailAutoGenerated FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetailAutoGenerated(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.Serialization.cs index 2eebff7b9ac58..b4ddb322f7a2e 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorInfo.Serialization.cs @@ -70,5 +70,13 @@ internal static ErrorInfo DeserializeErrorInfo(JsonElement element) } return new ErrorInfo(code, message, details ?? new ChangeTrackingList(), innererror, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorInfo(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponse.Serialization.cs index c66f7fca5d527..90376ab3d0fb7 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponse.Serialization.cs @@ -71,5 +71,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(code, message, target, details ?? new ChangeTrackingList(), additionalInfo ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated.Serialization.cs index df0c605a3b178..5e9fe5e4ed985 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated.Serialization.cs @@ -34,5 +34,13 @@ internal static ErrorResponseAutoGenerated DeserializeErrorResponseAutoGenerated } return new ErrorResponseAutoGenerated(code, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponseAutoGenerated FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponseAutoGenerated(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated2.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated2.Serialization.cs index b1adb58b8bbc9..90b86fe8b91f8 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated2.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated2.Serialization.cs @@ -32,5 +32,13 @@ internal static ErrorResponseAutoGenerated2 DeserializeErrorResponseAutoGenerate } return new ErrorResponseAutoGenerated2(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponseAutoGenerated2 FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponseAutoGenerated2(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated3.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated3.Serialization.cs index 7d54b4483a26e..fce560c9187d5 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated3.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ErrorResponseAutoGenerated3.Serialization.cs @@ -28,5 +28,13 @@ internal static ErrorResponseAutoGenerated3 DeserializeErrorResponseAutoGenerate } return new ErrorResponseAutoGenerated3(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponseAutoGenerated3 FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponseAutoGenerated3(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LocalizableString.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LocalizableString.Serialization.cs index 7e501360cb81f..9994d86933727 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LocalizableString.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LocalizableString.Serialization.cs @@ -34,5 +34,13 @@ internal static LocalizableString DeserializeLocalizableString(JsonElement eleme } return new LocalizableString(value, localizedValue); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LocalizableString FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLocalizableString(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsBatchQueryResult.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsBatchQueryResult.Serialization.cs index 18ddcc833f69d..6a803c1f688f8 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsBatchQueryResult.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsBatchQueryResult.Serialization.cs @@ -5,9 +5,18 @@ #nullable disable +using System.Text.Json; + namespace Azure.Monitor.Query.Models { public partial class LogsBatchQueryResult { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LogsBatchQueryResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLogsBatchQueryResult(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsQueryResult.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsQueryResult.Serialization.cs index c8e8b236e70cb..59a3a891f16ad 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsQueryResult.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsQueryResult.Serialization.cs @@ -52,5 +52,13 @@ internal static LogsQueryResult DeserializeLogsQueryResult(JsonElement element) } return new LogsQueryResult(tables, statistics, render, error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LogsQueryResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLogsQueryResult(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsTable.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsTable.Serialization.cs index 20a93f5af80e1..494333c3b5196 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsTable.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsTable.Serialization.cs @@ -46,5 +46,13 @@ internal static LogsTable DeserializeLogsTable(JsonElement element) } return new LogsTable(name, columns, rows); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LogsTable FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLogsTable(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsTableColumn.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsTableColumn.Serialization.cs index 80c8c8cf4c62b..60a3f1259cb74 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsTableColumn.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/LogsTableColumn.Serialization.cs @@ -34,5 +34,13 @@ internal static LogsTableColumn DeserializeLogsTableColumn(JsonElement element) } return new LogsTableColumn(name, type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LogsTableColumn FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLogsTableColumn(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataValue.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataValue.Serialization.cs index 4e835f98528f2..92732047e686a 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataValue.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetadataValue.Serialization.cs @@ -38,5 +38,13 @@ internal static MetadataValue DeserializeMetadataValue(JsonElement element) } return new MetadataValue(name, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetadataValue FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetadataValue(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricAvailability.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricAvailability.Serialization.cs index 226ea04684ce8..e83e35bd8f3f7 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricAvailability.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricAvailability.Serialization.cs @@ -43,5 +43,13 @@ internal static MetricAvailability DeserializeMetricAvailability(JsonElement ele } return new MetricAvailability(timeGrain, retention); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricAvailability FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricAvailability(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.Serialization.cs index fb7f4aaad00b9..b7297cb7a7f0d 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinition.Serialization.cs @@ -161,5 +161,13 @@ internal static MetricDefinition DeserializeMetricDefinition(JsonElement element id, dimensions ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricDefinition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricDefinition(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinitionCollection.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinitionCollection.Serialization.cs index 6e51219fc94de..9ce3ca62193bc 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinitionCollection.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricDefinitionCollection.Serialization.cs @@ -34,5 +34,13 @@ internal static MetricDefinitionCollection DeserializeMetricDefinitionCollection } return new MetricDefinitionCollection(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricDefinitionCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricDefinitionCollection(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespace.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespace.Serialization.cs index 98d186c424cd6..803a17d663641 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespace.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespace.Serialization.cs @@ -60,5 +60,13 @@ internal static MetricNamespace DeserializeMetricNamespace(JsonElement element) } return new MetricNamespace(id, type, name, classification, properties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricNamespace FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricNamespace(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespaceCollection.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespaceCollection.Serialization.cs index 67c16d749c0cf..24f0ffc8589f8 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespaceCollection.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespaceCollection.Serialization.cs @@ -34,5 +34,13 @@ internal static MetricNamespaceCollection DeserializeMetricNamespaceCollection(J } return new MetricNamespaceCollection(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricNamespaceCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricNamespaceCollection(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespaceName.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespaceName.Serialization.cs index 3c7f3b162d5f2..9411ee75aa28a 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespaceName.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricNamespaceName.Serialization.cs @@ -28,5 +28,13 @@ internal static MetricNamespaceName DeserializeMetricNamespaceName(JsonElement e } return new MetricNamespaceName(metricNamespaceName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricNamespaceName FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricNamespaceName(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricResult.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricResult.Serialization.cs index 1a559ef6311c5..aedc59d26ef4b 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricResult.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricResult.Serialization.cs @@ -84,5 +84,13 @@ internal static MetricResult DeserializeMetricResult(JsonElement element) unit, timeseries); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricResult(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.Serialization.cs index 32921ccea52c7..f17c2a70ae74c 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricTimeSeriesElement.Serialization.cs @@ -53,5 +53,13 @@ internal static MetricTimeSeriesElement DeserializeMetricTimeSeriesElement(JsonE } return new MetricTimeSeriesElement(metadatavalues ?? new ChangeTrackingList(), data ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricTimeSeriesElement FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricTimeSeriesElement(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricValue.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricValue.Serialization.cs index 0bb6642967ee7..45e5356accf77 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricValue.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricValue.Serialization.cs @@ -85,5 +85,13 @@ internal static MetricValue DeserializeMetricValue(JsonElement element) total, count); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricValue FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricValue(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResultValues.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResultValues.Serialization.cs index 4b040431dfd6c..f255a798f5f91 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResultValues.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsBatchResultValues.Serialization.cs @@ -77,5 +77,13 @@ internal static MetricsBatchResultValues DeserializeMetricsBatchResultValues(Jso resourceid, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricsBatchResultValues FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricsBatchResultValues(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsQueryResourcesResult.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsQueryResourcesResult.Serialization.cs index 0abcfa1a513db..bb72ad69efa38 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsQueryResourcesResult.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsQueryResourcesResult.Serialization.cs @@ -38,5 +38,13 @@ internal static MetricsQueryResourcesResult DeserializeMetricsQueryResourcesResu } return new MetricsQueryResourcesResult(values ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricsQueryResourcesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricsQueryResourcesResult(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsQueryResult.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsQueryResult.Serialization.cs index 0a2c064708cd6..d5b37c4766971 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsQueryResult.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/MetricsQueryResult.Serialization.cs @@ -79,5 +79,13 @@ internal static MetricsQueryResult DeserializeMetricsQueryResult(JsonElement ele resourceregion, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetricsQueryResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetricsQueryResult(document.RootElement); + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.Serialization.cs index 0c7b9b7837e22..5dc6f64587120 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/QueryBody.Serialization.cs @@ -34,5 +34,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResourceIdList.Serialization.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResourceIdList.Serialization.cs index af0752eb8195a..5b6bffd2709e3 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResourceIdList.Serialization.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/Models/ResourceIdList.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionConfiguration.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionConfiguration.Serialization.cs index b2c6cdcbe5ca6..c9543dbb8b199 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionConfiguration.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionConfiguration.Serialization.cs @@ -244,5 +244,21 @@ internal static AssetConversionConfiguration DeserializeAssetConversionConfigura supportingPlane, testTrajectory ?? new Common.ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AssetConversionConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAssetConversionConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.Serialization.cs index c17655bf9ec86..7cd1d6dc71f3d 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.Serialization.cs @@ -154,5 +154,21 @@ internal static AssetConversionProperties DeserializeAssetConversionProperties(J ingestionConfiguration, scaledAssetDimensions); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AssetConversionProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAssetConversionProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetUploadUriResult.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetUploadUriResult.Serialization.cs index b2ae82853c7a0..0386f99c52e1e 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetUploadUriResult.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetUploadUriResult.Serialization.cs @@ -28,5 +28,13 @@ internal static AssetUploadUriResult DeserializeAssetUploadUriResult(JsonElement } return new AssetUploadUriResult(inputAssetUri); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AssetUploadUriResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAssetUploadUriResult(document.RootElement); + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.Serialization.cs index 745e904465cfe..b36ee0674bdb1 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorDetail.Serialization.cs @@ -67,5 +67,13 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) } return new ErrorDetail(code, message, target, details ?? new ChangeTrackingList(), innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetail(document.RootElement); + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorResponse.Serialization.cs index 8161d8e8397c7..e644f6628a637 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/InnerError.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/InnerError.Serialization.cs index 8a74b2d6b406d..c3d29662024ba 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/InnerError.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/InnerError.Serialization.cs @@ -38,5 +38,13 @@ internal static InnerError DeserializeInnerError(JsonElement element) } return new InnerError(code, innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InnerError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInnerError(document.RootElement); + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Quaternion.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Quaternion.Serialization.cs index e4032b731cd69..39e906242802f 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Quaternion.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Quaternion.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.MixedReality.Common; namespace Azure.MixedReality.ObjectAnchors.Conversion.Models { @@ -71,5 +72,21 @@ internal static Quaternion DeserializeQuaternion(JsonElement element) } return new Quaternion(x, y, z, w, isIdentity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Quaternion FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuaternion(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/TrajectoryPose.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/TrajectoryPose.Serialization.cs index 569c8a87332bf..8b12175c59e03 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/TrajectoryPose.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/TrajectoryPose.Serialization.cs @@ -43,5 +43,21 @@ internal static TrajectoryPose DeserializeTrajectoryPose(JsonElement element) } return new TrajectoryPose(rotation, translation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TrajectoryPose FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTrajectoryPose(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Vector3.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Vector3.Serialization.cs index b1ea2673988d9..183d751923c94 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Vector3.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Vector3.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.MixedReality.Common; namespace Azure.MixedReality.ObjectAnchors.Conversion.Models { @@ -53,5 +54,21 @@ internal static Vector3 DeserializeVector3(JsonElement element) } return new Vector3(x, y, z); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Vector3 FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVector3(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Vector4.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Vector4.Serialization.cs index 1f206ae17edf3..a4b30c4e3c9ef 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Vector4.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/Vector4.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.MixedReality.Common; namespace Azure.MixedReality.ObjectAnchors.Conversion.Models { @@ -61,5 +62,21 @@ internal static Vector4 DeserializeVector4(JsonElement element) } return new Vector4(x, y, z, w); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Vector4 FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVector4(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/BlobDetails.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/BlobDetails.Serialization.cs index 2a791c6066408..5263588bba472 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/BlobDetails.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/BlobDetails.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.Serialization.cs index 30b94c295aa35..be2d6ed6c6ab8 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/CostEstimate.Serialization.cs @@ -54,5 +54,13 @@ internal static CostEstimate DeserializeCostEstimate(JsonElement element) } return new CostEstimate(currencyCode, events ?? new ChangeTrackingList(), estimatedTotal); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CostEstimate FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCostEstimate(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ErrorData.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ErrorData.Serialization.cs index dcffa0575e3d8..b8e922bd83b4b 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ErrorData.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ErrorData.Serialization.cs @@ -34,5 +34,13 @@ internal static ErrorData DeserializeErrorData(JsonElement element) } return new ErrorData(code, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorData(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetails.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetails.Serialization.cs index cfb171de0ae9c..0618bde9cdd6d 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetails.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetails.Serialization.cs @@ -292,5 +292,21 @@ internal static JobDetails DeserializeJobDetails(JsonElement element) errorData, tags ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JobDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJobDetails(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.Serialization.cs index 82cc6c2bf6a3f..4dc060a72aa19 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JobDetailsList.Serialization.cs @@ -54,5 +54,13 @@ internal static JobDetailsList DeserializeJobDetailsList(JsonElement element) } return new JobDetailsList(value ?? new ChangeTrackingList(), count, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JobDetailsList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJobDetailsList(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JsonPatchDocument.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JsonPatchDocument.Serialization.cs index fa6aa7083bee2..4b505b98c43d2 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JsonPatchDocument.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/JsonPatchDocument.Serialization.cs @@ -31,5 +31,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.Serialization.cs index e3f0596a71753..f14f2eefb0efe 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatus.Serialization.cs @@ -54,5 +54,13 @@ internal static ProviderStatus DeserializeProviderStatus(JsonElement element) } return new ProviderStatus(id, currentAvailability, targets ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ProviderStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeProviderStatus(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.Serialization.cs index df1034f8aacf3..130b5c3e8e97c 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/ProviderStatusList.Serialization.cs @@ -44,5 +44,13 @@ internal static ProviderStatusList DeserializeProviderStatusList(JsonElement ele } return new ProviderStatusList(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ProviderStatusList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeProviderStatusList(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuota.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuota.Serialization.cs index 2032d97302977..0567f772c392e 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuota.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuota.Serialization.cs @@ -91,5 +91,13 @@ internal static QuantumJobQuota DeserializeQuantumJobQuota(JsonElement element) limit, period); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QuantumJobQuota FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuantumJobQuota(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.Serialization.cs index 070864ddcb677..434d797f73252 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/QuantumJobQuotaList.Serialization.cs @@ -44,5 +44,13 @@ internal static QuantumJobQuotaList DeserializeQuantumJobQuotaList(JsonElement e } return new QuantumJobQuotaList(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QuantumJobQuotaList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuantumJobQuotaList(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/RestError.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/RestError.Serialization.cs index 6d8d60446edd3..85e782d579cdb 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/RestError.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/RestError.Serialization.cs @@ -32,5 +32,13 @@ internal static RestError DeserializeRestError(JsonElement element) } return new RestError(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RestError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRestError(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/SasUriResponse.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/SasUriResponse.Serialization.cs index 19d90ab113004..93389ab54a3cf 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/SasUriResponse.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/SasUriResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static SasUriResponse DeserializeSasUriResponse(JsonElement element) } return new SasUriResponse(sasUri); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SasUriResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSasUriResponse(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/TargetStatus.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/TargetStatus.Serialization.cs index ae4530ef957cc..d5d8bdf8c9117 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/TargetStatus.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/TargetStatus.Serialization.cs @@ -54,5 +54,13 @@ internal static TargetStatus DeserializeTargetStatus(JsonElement element) } return new TargetStatus(id, currentAvailability, averageQueueTime, statusPage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TargetStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTargetStatus(document.RootElement); + } } } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/UsageEvent.Serialization.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/UsageEvent.Serialization.cs index 99d6ef3cff779..f24ea1d14b557 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/UsageEvent.Serialization.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/Models/UsageEvent.Serialization.cs @@ -76,5 +76,13 @@ internal static UsageEvent DeserializeUsageEvent(JsonElement element) amountConsumed, unitPrice); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static UsageEvent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUsageEvent(document.RootElement); + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversion.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversion.Serialization.cs index 54cd31e77bb18..b7eb296d20cbc 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversion.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversion.Serialization.cs @@ -74,5 +74,13 @@ internal static AssetConversion DeserializeAssetConversion(JsonElement element) status, creationTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AssetConversion FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAssetConversion(document.RootElement); + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionInputOptions.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionInputOptions.Serialization.cs index fdd278949f13d..096eac008cbbd 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionInputOptions.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionInputOptions.Serialization.cs @@ -68,5 +68,21 @@ internal static AssetConversionInputOptions DeserializeAssetConversionInputOptio } return new AssetConversionInputOptions(storageContainerUri, storageContainerReadListSas, blobPrefix, relativeInputAssetPath); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AssetConversionInputOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAssetConversionInputOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOptions.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOptions.Serialization.cs index 6272f8de933d2..284186f99f31b 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOptions.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOptions.Serialization.cs @@ -45,5 +45,21 @@ internal static AssetConversionOptions DeserializeAssetConversionOptions(JsonEle } return new AssetConversionOptions(inputLocation, outputLocation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AssetConversionOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAssetConversionOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOutput.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOutput.Serialization.cs index e614cd0e18d4b..b55f2a4334bd3 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOutput.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOutput.Serialization.cs @@ -28,5 +28,13 @@ internal static AssetConversionOutput DeserializeAssetConversionOutput(JsonEleme } return new AssetConversionOutput(outputAssetUri); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AssetConversionOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAssetConversionOutput(document.RootElement); + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOutputOptions.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOutputOptions.Serialization.cs index 75a3ac044cb75..4c9500cbf22df 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOutputOptions.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/AssetConversionOutputOptions.Serialization.cs @@ -71,5 +71,21 @@ internal static AssetConversionOutputOptions DeserializeAssetConversionOutputOpt } return new AssetConversionOutputOptions(storageContainerUri, storageContainerWriteSas, blobPrefix, outputAssetFilename); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AssetConversionOutputOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAssetConversionOutputOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/ConversionList.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/ConversionList.Serialization.cs index 88067eb3fe340..cbe39b8041779 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/ConversionList.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/ConversionList.Serialization.cs @@ -40,5 +40,13 @@ internal static ConversionList DeserializeConversionList(JsonElement element) } return new ConversionList(conversions, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ConversionList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeConversionList(document.RootElement); + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/CreateConversionSettings.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/CreateConversionSettings.Serialization.cs index 05e6e2153c53b..7810d9c5b58b9 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/CreateConversionSettings.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/CreateConversionSettings.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(Settings); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/ErrorResponse.Serialization.cs index 89fbd1e912c7e..a893878186519 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/ErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.Serialization.cs index bb995a9b68f84..a3ff10b9ca154 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RemoteRenderingServiceError.Serialization.cs @@ -66,5 +66,13 @@ internal static RemoteRenderingServiceError DeserializeRemoteRenderingServiceErr } return new RemoteRenderingServiceError(code, message, details ?? new ChangeTrackingList(), target, innerError); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoteRenderingServiceError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteRenderingServiceError(document.RootElement); + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RenderingSession.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RenderingSession.Serialization.cs index b4f22d2425bc4..bd7d74b9ecbd6 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RenderingSession.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RenderingSession.Serialization.cs @@ -129,5 +129,13 @@ internal static RenderingSession DeserializeRenderingSession(JsonElement element error, creationTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RenderingSession FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRenderingSession(document.RootElement); + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RenderingSessionOptions.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RenderingSessionOptions.Serialization.cs index b4e481991065e..53ebd0ea91942 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RenderingSessionOptions.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/RenderingSessionOptions.Serialization.cs @@ -21,5 +21,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Size.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/SessionsList.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/SessionsList.Serialization.cs index 936742cbada57..28259c970a623 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/SessionsList.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/SessionsList.Serialization.cs @@ -40,5 +40,13 @@ internal static SessionsList DeserializeSessionsList(JsonElement element) } return new SessionsList(sessions, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SessionsList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSessionsList(document.RootElement); + } } } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/UpdateSessionOptions.Serialization.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/UpdateSessionOptions.Serialization.cs index 9fcc726a37bd1..26b7796c1d1fb 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/UpdateSessionOptions.Serialization.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/Models/UpdateSessionOptions.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteNumberValue(MaxLeaseTimeMinutes); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmPlan.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmPlan.Serialization.cs index dd6b517b4661d..88ee395f05d4b 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmPlan.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmPlan.Serialization.cs @@ -268,6 +268,7 @@ public override void Write(Utf8JsonWriter writer, ArmPlan model, JsonSerializerO { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override ArmPlan Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSku.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSku.Serialization.cs index a2a16688e8498..425d21f3e7a08 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSku.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/ArmSku.Serialization.cs @@ -266,6 +266,7 @@ public override void Write(Utf8JsonWriter writer, ArmSku model, JsonSerializerOp { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override ArmSku Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/EncryptionProperties.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/EncryptionProperties.Serialization.cs index 4e81eebd64f11..89e9d9e93000e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/EncryptionProperties.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/EncryptionProperties.Serialization.cs @@ -170,6 +170,7 @@ public override void Write(Utf8JsonWriter writer, EncryptionProperties model, Js { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override EncryptionProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/KeyVaultProperties.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/KeyVaultProperties.Serialization.cs index 080f77eb74621..41993d27015aa 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/KeyVaultProperties.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/KeyVaultProperties.Serialization.cs @@ -178,6 +178,7 @@ public override void Write(Utf8JsonWriter writer, KeyVaultProperties model, Json { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override KeyVaultProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.Serialization.cs index d1a207ee31a00..902d39d34ac1c 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/OperationStatusResult.Serialization.cs @@ -381,6 +381,7 @@ public override void Write(Utf8JsonWriter writer, OperationStatusResult model, J { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override OperationStatusResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemAssignedServiceIdentity.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemAssignedServiceIdentity.Serialization.cs index 50a162fff4227..1416016a20967 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemAssignedServiceIdentity.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemAssignedServiceIdentity.Serialization.cs @@ -189,6 +189,7 @@ public override void Write(Utf8JsonWriter writer, SystemAssignedServiceIdentity { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override SystemAssignedServiceIdentity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemData.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemData.Serialization.cs index a9486faa827a0..3a68a1a021897 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemData.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/SystemData.Serialization.cs @@ -302,6 +302,7 @@ public override void Write(Utf8JsonWriter writer, SystemData model, JsonSerializ { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override SystemData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/UserAssignedIdentity.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/UserAssignedIdentity.Serialization.cs index ae166fb766b63..5f35036f9fbaa 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/UserAssignedIdentity.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Common/Generated/Models/UserAssignedIdentity.Serialization.cs @@ -170,6 +170,7 @@ public override void Write(Utf8JsonWriter writer, UserAssignedIdentity model, Js { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override UserAssignedIdentity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExtendedLocation.Serialization.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExtendedLocation.Serialization.cs index e3bbbdf3fab2a..1a9eabba1d46d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExtendedLocation.Serialization.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Models/ExtendedLocation.Serialization.cs @@ -174,6 +174,7 @@ public override void Write(Utf8JsonWriter writer, ExtendedLocation model, JsonSe { writer.WriteObjectValue(model, new ModelReaderWriterOptions("W")); } + public override ExtendedLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/Error.Serialization.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/Error.Serialization.cs index dcd2b7443057b..0201b18b6c3fd 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/Error.Serialization.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/Error.Serialization.cs @@ -28,5 +28,13 @@ internal static Error DeserializeError(JsonElement element) } return new Error(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Error FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeError(document.RootElement); + } } } diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.Serialization.cs index c84cfc9b227ae..a7860ae5bccf4 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/ErrorDetail.Serialization.cs @@ -50,5 +50,13 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) } return new ErrorDetail(code, message, details ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetail(document.RootElement); + } } } diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.Serialization.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.Serialization.cs index 335256f7df516..236ed73c7837e 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.Serialization.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaGroups.Serialization.cs @@ -44,5 +44,13 @@ internal static SchemaGroups DeserializeSchemaGroups(JsonElement element) } return new SchemaGroups(schemaGroups ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SchemaGroups FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSchemaGroups(document.RootElement); + } } } diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.Serialization.cs b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.Serialization.cs index dc06e60785733..025787606dcad 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.Serialization.cs +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/Generated/Models/SchemaVersions.Serialization.cs @@ -44,5 +44,13 @@ internal static SchemaVersions DeserializeSchemaVersions(JsonElement element) } return new SchemaVersions(schemaVersions ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SchemaVersions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSchemaVersions(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeResult.Serialization.cs index ad037c60c0b5d..c91c54671a0b9 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeResult.Serialization.cs @@ -34,5 +34,13 @@ internal static AnalyzeResult DeserializeAnalyzeResult(JsonElement element) } return new AnalyzeResult(tokens); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzeResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeTextOptions.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeTextOptions.Serialization.cs index e63acf9d323fa..4e0b8a29861aa 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeTextOptions.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzeTextOptions.Serialization.cs @@ -54,5 +54,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzedTokenInfo.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzedTokenInfo.Serialization.cs index d987a97672440..81b1da7588f2e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzedTokenInfo.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AnalyzedTokenInfo.Serialization.cs @@ -46,5 +46,13 @@ internal static AnalyzedTokenInfo DeserializeAnalyzedTokenInfo(JsonElement eleme } return new AnalyzedTokenInfo(token, startOffset, endOffset, position); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzedTokenInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzedTokenInfo(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AsciiFoldingTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AsciiFoldingTokenFilter.Serialization.cs index 6e5d541248233..e97c379c6e45e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AsciiFoldingTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AsciiFoldingTokenFilter.Serialization.cs @@ -60,5 +60,21 @@ internal static AsciiFoldingTokenFilter DeserializeAsciiFoldingTokenFilter(JsonE } return new AsciiFoldingTokenFilter(odataType, name, preserveOriginal); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AsciiFoldingTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAsciiFoldingTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteItem.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteItem.Serialization.cs index 6df3aa7a9163a..4576db493b36b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteItem.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteItem.Serialization.cs @@ -34,5 +34,13 @@ internal static AutocompleteItem DeserializeAutocompleteItem(JsonElement element } return new AutocompleteItem(text, queryPlusText); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AutocompleteItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAutocompleteItem(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteOptions.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteOptions.Serialization.cs index 0aa59619e2927..5661172cc0847 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteOptions.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteOptions.Serialization.cs @@ -62,5 +62,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteResults.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteResults.Serialization.cs index c2193ff5c93da..b292a7a92793f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteResults.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AutocompleteResults.Serialization.cs @@ -44,5 +44,13 @@ internal static AutocompleteResults DeserializeAutocompleteResults(JsonElement e } return new AutocompleteResults(searchCoverage, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AutocompleteResults FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAutocompleteResults(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureActiveDirectoryApplicationCredentials.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureActiveDirectoryApplicationCredentials.Serialization.cs index 56008e79120b6..8bd653ef0ebeb 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureActiveDirectoryApplicationCredentials.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureActiveDirectoryApplicationCredentials.Serialization.cs @@ -48,5 +48,21 @@ internal static AzureActiveDirectoryApplicationCredentials DeserializeAzureActiv } return new AzureActiveDirectoryApplicationCredentials(applicationId, applicationSecret); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureActiveDirectoryApplicationCredentials FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureActiveDirectoryApplicationCredentials(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureMachineLearningSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureMachineLearningSkill.Serialization.cs index 60fee0b76ac94..ca5b70c5a133c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureMachineLearningSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureMachineLearningSkill.Serialization.cs @@ -258,5 +258,21 @@ internal static AzureMachineLearningSkill DeserializeAzureMachineLearningSkill(J region, degreeOfParallelism); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMachineLearningSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMachineLearningSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIEmbeddingSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIEmbeddingSkill.Serialization.cs index a51fa9fcd2013..ed6240124fa32 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIEmbeddingSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIEmbeddingSkill.Serialization.cs @@ -178,5 +178,21 @@ internal static AzureOpenAIEmbeddingSkill DeserializeAzureOpenAIEmbeddingSkill(J apiKey, authIdentity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureOpenAIEmbeddingSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureOpenAIEmbeddingSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIParameters.Serialization.cs index 54c07e0ea66cc..deb89600c6e86 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIParameters.Serialization.cs @@ -90,5 +90,21 @@ internal static AzureOpenAIParameters DeserializeAzureOpenAIParameters(JsonEleme } return new AzureOpenAIParameters(resourceUri, deploymentId, apiKey, authIdentity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureOpenAIParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureOpenAIParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIVectorizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIVectorizer.Serialization.cs index bb60855975941..3c330e994a02d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIVectorizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIVectorizer.Serialization.cs @@ -60,5 +60,21 @@ internal static AzureOpenAIVectorizer DeserializeAzureOpenAIVectorizer(JsonEleme } return new AzureOpenAIVectorizer(name, kind, azureOpenAIParameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureOpenAIVectorizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureOpenAIVectorizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/BM25Similarity.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/BM25Similarity.Serialization.cs index 7835f6ad9f66c..0780620e7f095 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/BM25Similarity.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/BM25Similarity.Serialization.cs @@ -83,5 +83,21 @@ internal static BM25Similarity DeserializeBM25Similarity(JsonElement element) } return new BM25Similarity(odataType, k1, b); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BM25Similarity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBM25Similarity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CharFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CharFilter.Serialization.cs index b54263a366eb1..928c658646104 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CharFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CharFilter.Serialization.cs @@ -39,5 +39,21 @@ internal static CharFilter DeserializeCharFilter(JsonElement element) } return UnknownCharFilter.DeserializeUnknownCharFilter(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CharFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCharFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilter.Serialization.cs index 270ffcd045483..e12320682dbd6 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CjkBigramTokenFilter.Serialization.cs @@ -86,5 +86,21 @@ internal static CjkBigramTokenFilter DeserializeCjkBigramTokenFilter(JsonElement } return new CjkBigramTokenFilter(odataType, name, ignoreScripts ?? new ChangeTrackingList(), outputUnigrams); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CjkBigramTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCjkBigramTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ClassicSimilarity.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ClassicSimilarity.Serialization.cs index e5be423e6f2c1..391d113d47b00 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ClassicSimilarity.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ClassicSimilarity.Serialization.cs @@ -37,5 +37,21 @@ internal static ClassicSimilarity DeserializeClassicSimilarity(JsonElement eleme } return new ClassicSimilarity(odataType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ClassicSimilarity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeClassicSimilarity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ClassicTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ClassicTokenizer.Serialization.cs index bd9635a44ca3e..c308cd7ba7bda 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ClassicTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ClassicTokenizer.Serialization.cs @@ -60,5 +60,21 @@ internal static ClassicTokenizer DeserializeClassicTokenizer(JsonElement element } return new ClassicTokenizer(odataType, name, maxTokenLength); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ClassicTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeClassicTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CognitiveServicesAccount.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CognitiveServicesAccount.Serialization.cs index b559a6f2b1867..a9844ff7a6756 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CognitiveServicesAccount.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CognitiveServicesAccount.Serialization.cs @@ -42,5 +42,21 @@ internal static CognitiveServicesAccount DeserializeCognitiveServicesAccount(Jso } return UnknownCognitiveServicesAccount.DeserializeUnknownCognitiveServicesAccount(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CognitiveServicesAccount FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCognitiveServicesAccount(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CognitiveServicesAccountKey.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CognitiveServicesAccountKey.Serialization.cs index 14afe75e67783..85ec70d17531d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CognitiveServicesAccountKey.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CognitiveServicesAccountKey.Serialization.cs @@ -56,5 +56,21 @@ internal static CognitiveServicesAccountKey DeserializeCognitiveServicesAccountK } return new CognitiveServicesAccountKey(odataType, description, key); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CognitiveServicesAccountKey FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCognitiveServicesAccountKey(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CommonGramTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CommonGramTokenFilter.Serialization.cs index 5268ad19ee8ce..2052530e592fe 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CommonGramTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CommonGramTokenFilter.Serialization.cs @@ -94,5 +94,21 @@ internal static CommonGramTokenFilter DeserializeCommonGramTokenFilter(JsonEleme } return new CommonGramTokenFilter(odataType, name, commonWords, ignoreCase, queryMode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CommonGramTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommonGramTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ConditionalSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ConditionalSkill.Serialization.cs index 9c4eda6a0abf5..9ad500c82c1bb 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ConditionalSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ConditionalSkill.Serialization.cs @@ -113,5 +113,21 @@ internal static ConditionalSkill DeserializeConditionalSkill(JsonElement element inputs, outputs); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ConditionalSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeConditionalSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CorsOptions.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CorsOptions.Serialization.cs index 0bb752b1183bd..0b2f068860108 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CorsOptions.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CorsOptions.Serialization.cs @@ -71,5 +71,21 @@ internal static CorsOptions DeserializeCorsOptions(JsonElement element) } return new CorsOptions(allowedOrigins, maxAgeInSeconds); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CorsOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCorsOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomAnalyzer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomAnalyzer.Serialization.cs index bed6ff67749af..4196cc4476c70 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomAnalyzer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomAnalyzer.Serialization.cs @@ -104,5 +104,21 @@ internal static CustomAnalyzer DeserializeCustomAnalyzer(JsonElement element) } return new CustomAnalyzer(odataType, name, tokenizer, tokenFilters ?? new ChangeTrackingList(), charFilters ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomAnalyzer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomAnalyzer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntity.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntity.Serialization.cs index 6ff21859489dc..6216a0a7a583f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntity.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntity.Serialization.cs @@ -313,5 +313,21 @@ internal static CustomEntity DeserializeCustomEntity(JsonElement element) defaultFuzzyEditDistance, aliases ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomEntity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityAlias.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityAlias.Serialization.cs index 8802d9e62b14f..1585c472bbd72 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityAlias.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityAlias.Serialization.cs @@ -106,5 +106,21 @@ internal static CustomEntityAlias DeserializeCustomEntityAlias(JsonElement eleme } return new CustomEntityAlias(text, caseSensitive, accentSensitive, fuzzyEditDistance); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomEntityAlias FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomEntityAlias(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityLookupSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityLookupSkill.Serialization.cs index 15fd92f44691d..15456e8f796a9 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityLookupSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomEntityLookupSkill.Serialization.cs @@ -268,5 +268,21 @@ internal static CustomEntityLookupSkill DeserializeCustomEntityLookupSkill(JsonE globalDefaultAccentSensitive, globalDefaultFuzzyEditDistance); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomEntityLookupSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomEntityLookupSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomNormalizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomNormalizer.Serialization.cs index ed6676990fad0..4ba0e186a621c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomNormalizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomNormalizer.Serialization.cs @@ -96,5 +96,21 @@ internal static CustomNormalizer DeserializeCustomNormalizer(JsonElement element } return new CustomNormalizer(odataType, name, tokenFilters ?? new ChangeTrackingList(), charFilters ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomNormalizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomNormalizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomVectorizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomVectorizer.Serialization.cs index c56879578d924..5019c56db7500 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomVectorizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomVectorizer.Serialization.cs @@ -60,5 +60,21 @@ internal static CustomVectorizer DeserializeCustomVectorizer(JsonElement element } return new CustomVectorizer(name, kind, customWebApiParameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomVectorizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomVectorizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomWebApiParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomWebApiParameters.Serialization.cs index 2b5d0a8caf4b6..69a8f1b1a5519 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomWebApiParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CustomWebApiParameters.Serialization.cs @@ -150,5 +150,21 @@ internal static CustomWebApiParameters DeserializeCustomWebApiParameters(JsonEle authResourceId, authIdentity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomWebApiParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomWebApiParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/DataChangeDetectionPolicy.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/DataChangeDetectionPolicy.Serialization.cs index 652f00428ec55..f66ec969af7dd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/DataChangeDetectionPolicy.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/DataChangeDetectionPolicy.Serialization.cs @@ -37,5 +37,21 @@ internal static DataChangeDetectionPolicy DeserializeDataChangeDetectionPolicy(J } return UnknownDataChangeDetectionPolicy.DeserializeUnknownDataChangeDetectionPolicy(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataChangeDetectionPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataChangeDetectionPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/DataDeletionDetectionPolicy.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/DataDeletionDetectionPolicy.Serialization.cs index 30529ab847706..46172c91446f5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/DataDeletionDetectionPolicy.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/DataDeletionDetectionPolicy.Serialization.cs @@ -37,5 +37,21 @@ internal static DataDeletionDetectionPolicy DeserializeDataDeletionDetectionPoli } return UnknownDataDeletionDetectionPolicy.DeserializeUnknownDataDeletionDetectionPolicy(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataDeletionDetectionPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataDeletionDetectionPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/DataSourceCredentials.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/DataSourceCredentials.Serialization.cs index 3d16d04b3a2a5..5c47c5e3f712f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/DataSourceCredentials.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/DataSourceCredentials.Serialization.cs @@ -40,5 +40,21 @@ internal static DataSourceCredentials DeserializeDataSourceCredentials(JsonEleme } return new DataSourceCredentials(connectionString); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataSourceCredentials FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataSourceCredentials(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/DefaultCognitiveServicesAccount.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/DefaultCognitiveServicesAccount.Serialization.cs index fe6a1a0bcb894..302118591828b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/DefaultCognitiveServicesAccount.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/DefaultCognitiveServicesAccount.Serialization.cs @@ -48,5 +48,21 @@ internal static DefaultCognitiveServicesAccount DeserializeDefaultCognitiveServi } return new DefaultCognitiveServicesAccount(odataType, description); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DefaultCognitiveServicesAccount FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDefaultCognitiveServicesAccount(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/DictionaryDecompounderTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/DictionaryDecompounderTokenFilter.Serialization.cs index 291db1d0e7806..0fb8222105566 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/DictionaryDecompounderTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/DictionaryDecompounderTokenFilter.Serialization.cs @@ -131,5 +131,21 @@ internal static DictionaryDecompounderTokenFilter DeserializeDictionaryDecompoun maxSubwordSize, onlyLongestMatch); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DictionaryDecompounderTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDictionaryDecompounderTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/DistanceScoringFunction.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/DistanceScoringFunction.Serialization.cs index 41caa1eed401d..e178dd1bc6aab 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/DistanceScoringFunction.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/DistanceScoringFunction.Serialization.cs @@ -76,5 +76,21 @@ internal static DistanceScoringFunction DeserializeDistanceScoringFunction(JsonE } return new DistanceScoringFunction(type, fieldName, boost, interpolation, distance); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DistanceScoringFunction FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDistanceScoringFunction(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/DistanceScoringParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/DistanceScoringParameters.Serialization.cs index c87764678f5c0..3ef791e5eb33d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/DistanceScoringParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/DistanceScoringParameters.Serialization.cs @@ -45,5 +45,21 @@ internal static DistanceScoringParameters DeserializeDistanceScoringParameters(J } return new DistanceScoringParameters(referencePointParameter, boostingDistance); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DistanceScoringParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDistanceScoringParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/DocumentDebugInfo.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/DocumentDebugInfo.Serialization.cs index 112d538b2a7fe..41cfea5bf6fd2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/DocumentDebugInfo.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/DocumentDebugInfo.Serialization.cs @@ -32,5 +32,13 @@ internal static DocumentDebugInfo DeserializeDocumentDebugInfo(JsonElement eleme } return new DocumentDebugInfo(semantic); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentDebugInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentDebugInfo(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/DocumentExtractionSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/DocumentExtractionSkill.Serialization.cs index 2755b32dfa0f8..05302fe3d19cc 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/DocumentExtractionSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/DocumentExtractionSkill.Serialization.cs @@ -208,5 +208,21 @@ internal static DocumentExtractionSkill DeserializeDocumentExtractionSkill(JsonE dataToExtract, configuration ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DocumentExtractionSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentExtractionSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenFilter.Serialization.cs index 170f84a66c6e3..74871e2954c0e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenFilter.Serialization.cs @@ -12,5 +12,20 @@ namespace Azure.Search.Documents.Indexes.Models { public partial class EdgeNGramTokenFilter : IUtf8JsonSerializable { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EdgeNGramTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEdgeNGramTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenizer.Serialization.cs index 0221b338ac9f8..d0bd584ae1c22 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/EdgeNGramTokenizer.Serialization.cs @@ -101,5 +101,21 @@ internal static EdgeNGramTokenizer DeserializeEdgeNGramTokenizer(JsonElement ele } return new EdgeNGramTokenizer(odataType, name, minGram, maxGram, tokenChars ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EdgeNGramTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEdgeNGramTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ElisionTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ElisionTokenFilter.Serialization.cs index 877541cc5c428..83d4ddd7b2aa1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ElisionTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ElisionTokenFilter.Serialization.cs @@ -71,5 +71,21 @@ internal static ElisionTokenFilter DeserializeElisionTokenFilter(JsonElement ele } return new ElisionTokenFilter(odataType, name, articles ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ElisionTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeElisionTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityLinkingSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityLinkingSkill.Serialization.cs index 9222c5b9e9412..6ea168133b95b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityLinkingSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityLinkingSkill.Serialization.cs @@ -185,5 +185,21 @@ internal static EntityLinkingSkill DeserializeEntityLinkingSkill(JsonElement ele minimumPrecision, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityLinkingSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityLinkingSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkill.Serialization.cs index 3021b9124d85e..973c9ced32f7a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkill.Serialization.cs @@ -211,5 +211,21 @@ internal static EntityRecognitionSkill DeserializeEntityRecognitionSkill(JsonEle includeTypelessEntities, minimumPrecision); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityRecognitionSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityRecognitionSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkillV3.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkillV3.Serialization.cs index 06821ddf0d7f6..1e70e3c3efbb1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkillV3.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/EntityRecognitionSkillV3.Serialization.cs @@ -211,5 +211,21 @@ internal static EntityRecognitionSkillV3 DeserializeEntityRecognitionSkillV3(Jso minimumPrecision, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityRecognitionSkillV3 FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityRecognitionSkillV3(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index 0d1fac39a4175..575b6a42b1d32 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -38,5 +38,13 @@ internal static ErrorAdditionalInfo DeserializeErrorAdditionalInfo(JsonElement e } return new ErrorAdditionalInfo(type, info); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorAdditionalInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorAdditionalInfo(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.Serialization.cs index 717b44ce1e07c..1dd91b26aac05 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorDetail.Serialization.cs @@ -71,5 +71,13 @@ internal static ErrorDetail DeserializeErrorDetail(JsonElement element) } return new ErrorDetail(code, message, target, details ?? new ChangeTrackingList(), additionalInfo ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorDetail(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorResponse.Serialization.cs index aac8b77b364c1..34cebadb4b851 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ErrorResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ExhaustiveKnnAlgorithmConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ExhaustiveKnnAlgorithmConfiguration.Serialization.cs index e234c46e7ddff..6f14366a90f3c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ExhaustiveKnnAlgorithmConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ExhaustiveKnnAlgorithmConfiguration.Serialization.cs @@ -60,5 +60,21 @@ internal static ExhaustiveKnnAlgorithmConfiguration DeserializeExhaustiveKnnAlgo } return new ExhaustiveKnnAlgorithmConfiguration(name, kind, exhaustiveKnnParameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExhaustiveKnnAlgorithmConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExhaustiveKnnAlgorithmConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ExhaustiveKnnParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ExhaustiveKnnParameters.Serialization.cs index 4341d15902bb6..d66bd14fe42cf 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ExhaustiveKnnParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ExhaustiveKnnParameters.Serialization.cs @@ -52,5 +52,21 @@ internal static ExhaustiveKnnParameters DeserializeExhaustiveKnnParameters(JsonE } return new ExhaustiveKnnParameters(metric); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ExhaustiveKnnParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExhaustiveKnnParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.Serialization.cs index fc24a9fb393b2..94a2ad5b3051a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.Serialization.cs @@ -37,5 +37,13 @@ internal static FacetResult DeserializeFacetResult(JsonElement element) additionalProperties = additionalPropertiesDictionary; return new FacetResult(count, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FacetResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFacetResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/FieldMapping.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/FieldMapping.Serialization.cs index 64784b278b98c..820b09e97ea94 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/FieldMapping.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/FieldMapping.Serialization.cs @@ -71,5 +71,21 @@ internal static FieldMapping DeserializeFieldMapping(JsonElement element) } return new FieldMapping(sourceFieldName, targetFieldName, mappingFunction); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FieldMapping FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFieldMapping(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/FieldMappingFunction.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/FieldMappingFunction.Serialization.cs index 2296fefa96e00..6de3a735b99ab 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/FieldMappingFunction.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/FieldMappingFunction.Serialization.cs @@ -84,5 +84,21 @@ internal static FieldMappingFunction DeserializeFieldMappingFunction(JsonElement } return new FieldMappingFunction(name, parameters ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FieldMappingFunction FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFieldMappingFunction(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/FreshnessScoringFunction.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/FreshnessScoringFunction.Serialization.cs index 59936074fe043..6c945c27dd931 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/FreshnessScoringFunction.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/FreshnessScoringFunction.Serialization.cs @@ -76,5 +76,21 @@ internal static FreshnessScoringFunction DeserializeFreshnessScoringFunction(Jso } return new FreshnessScoringFunction(type, fieldName, boost, interpolation, freshness); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FreshnessScoringFunction FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFreshnessScoringFunction(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/FreshnessScoringParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/FreshnessScoringParameters.Serialization.cs index 88bbd27dfb922..839467eff689e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/FreshnessScoringParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/FreshnessScoringParameters.Serialization.cs @@ -38,5 +38,21 @@ internal static FreshnessScoringParameters DeserializeFreshnessScoringParameters } return new FreshnessScoringParameters(boostingDuration); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FreshnessScoringParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFreshnessScoringParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/HighWaterMarkChangeDetectionPolicy.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/HighWaterMarkChangeDetectionPolicy.Serialization.cs index b3642bed1cbc4..6b40f79c03690 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/HighWaterMarkChangeDetectionPolicy.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/HighWaterMarkChangeDetectionPolicy.Serialization.cs @@ -45,5 +45,21 @@ internal static HighWaterMarkChangeDetectionPolicy DeserializeHighWaterMarkChang } return new HighWaterMarkChangeDetectionPolicy(odataType, highWaterMarkColumnName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HighWaterMarkChangeDetectionPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHighWaterMarkChangeDetectionPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/HnswAlgorithmConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/HnswAlgorithmConfiguration.Serialization.cs index 787bae399e333..0b0eef318cd9d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/HnswAlgorithmConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/HnswAlgorithmConfiguration.Serialization.cs @@ -60,5 +60,21 @@ internal static HnswAlgorithmConfiguration DeserializeHnswAlgorithmConfiguration } return new HnswAlgorithmConfiguration(name, kind, hnswParameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HnswAlgorithmConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHnswAlgorithmConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/HnswParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/HnswParameters.Serialization.cs index ddc26cdca0f55..d64248ac49dfa 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/HnswParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/HnswParameters.Serialization.cs @@ -121,5 +121,21 @@ internal static HnswParameters DeserializeHnswParameters(JsonElement element) } return new HnswParameters(m, efConstruction, efSearch, metric); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HnswParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHnswParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ImageAnalysisSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ImageAnalysisSkill.Serialization.cs index 0cd32f3dcadb5..effa492c9a5b7 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ImageAnalysisSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ImageAnalysisSkill.Serialization.cs @@ -189,5 +189,21 @@ internal static ImageAnalysisSkill DeserializeImageAnalysisSkill(JsonElement ele visualFeatures ?? new ChangeTrackingList(), details ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ImageAnalysisSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageAnalysisSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexAction.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexAction.Serialization.cs index d023b119e926b..9096d2522932c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexAction.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexAction.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexBatch.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexBatch.Serialization.cs index 311aedaf1fed9..f888b1b78865d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexBatch.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexBatch.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexDocumentsResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexDocumentsResult.Serialization.cs index 95c8ccf291c8d..0dda1707d3ccd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexDocumentsResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexDocumentsResult.Serialization.cs @@ -34,5 +34,13 @@ internal static IndexDocumentsResult DeserializeIndexDocumentsResult(JsonElement } return new IndexDocumentsResult(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexDocumentsResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIndexDocumentsResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerExecutionResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerExecutionResult.Serialization.cs index 4158034e82d83..5864ef96aae4a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerExecutionResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerExecutionResult.Serialization.cs @@ -136,5 +136,13 @@ internal static IndexerExecutionResult DeserializeIndexerExecutionResult(JsonEle initialTrackingState, finalTrackingState); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexerExecutionResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIndexerExecutionResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.Serialization.cs index 9015935f2caee..1763bb997cee8 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerState.Serialization.cs @@ -94,5 +94,13 @@ internal static IndexerState DeserializeIndexerState(JsonElement element) resetDocumentKeys ?? new ChangeTrackingList(), resetDatasourceDocumentIds ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexerState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIndexerState(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingParameters.Serialization.cs index b32817dc44cdc..b30c923bdc178 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingParameters.Serialization.cs @@ -113,5 +113,21 @@ internal static IndexingParameters DeserializeIndexingParameters(JsonElement ele } return new IndexingParameters(batchSize, maxFailedItems, maxFailedItemsPerBatch, configuration); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexingParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIndexingParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingParametersConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingParametersConfiguration.Serialization.cs index 5934529e62e58..cedd21bb1e4f1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingParametersConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingParametersConfiguration.Serialization.cs @@ -272,5 +272,21 @@ internal static IndexingParametersConfiguration DeserializeIndexingParametersCon queryTimeout, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexingParametersConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIndexingParametersConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingResult.Serialization.cs index 0227435cdb0c0..7bf7e5aa39209 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingResult.Serialization.cs @@ -46,5 +46,13 @@ internal static IndexingResult DeserializeIndexingResult(JsonElement element) } return new IndexingResult(key, errorMessage, status, statusCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexingResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIndexingResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingSchedule.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingSchedule.Serialization.cs index fea32bee60324..1800c3140a9f4 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingSchedule.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexingSchedule.Serialization.cs @@ -53,5 +53,21 @@ internal static IndexingSchedule DeserializeIndexingSchedule(JsonElement element } return new IndexingSchedule(interval, startTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexingSchedule FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIndexingSchedule(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/InputFieldMappingEntry.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/InputFieldMappingEntry.Serialization.cs index 15cb6c0119dc0..8c608c4dbf435 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/InputFieldMappingEntry.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/InputFieldMappingEntry.Serialization.cs @@ -85,5 +85,21 @@ internal static InputFieldMappingEntry DeserializeInputFieldMappingEntry(JsonEle } return new InputFieldMappingEntry(name, source, sourceContext, inputs ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InputFieldMappingEntry FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInputFieldMappingEntry(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KeepTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KeepTokenFilter.Serialization.cs index 3b2c68049d690..296408365edd0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KeepTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KeepTokenFilter.Serialization.cs @@ -79,5 +79,21 @@ internal static KeepTokenFilter DeserializeKeepTokenFilter(JsonElement element) } return new KeepTokenFilter(odataType, name, keepWords, keepWordsCase); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeepTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeepTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KeyPhraseExtractionSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KeyPhraseExtractionSkill.Serialization.cs index fa2e69980e94e..8920c7d398b6b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KeyPhraseExtractionSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KeyPhraseExtractionSkill.Serialization.cs @@ -185,5 +185,21 @@ internal static KeyPhraseExtractionSkill DeserializeKeyPhraseExtractionSkill(Jso maxKeyPhraseCount, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeyPhraseExtractionSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhraseExtractionSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KeywordMarkerTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KeywordMarkerTokenFilter.Serialization.cs index e7a2d2f966ca2..156f325d94633 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KeywordMarkerTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KeywordMarkerTokenFilter.Serialization.cs @@ -79,5 +79,21 @@ internal static KeywordMarkerTokenFilter DeserializeKeywordMarkerTokenFilter(Jso } return new KeywordMarkerTokenFilter(odataType, name, keywords, ignoreCase); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeywordMarkerTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeywordMarkerTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KeywordTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KeywordTokenizer.Serialization.cs index b92f36b248cdd..acf515b810a80 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KeywordTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KeywordTokenizer.Serialization.cs @@ -12,5 +12,20 @@ namespace Azure.Search.Documents.Indexes.Models { public partial class KeywordTokenizer : IUtf8JsonSerializable { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeywordTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeywordTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStore.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStore.Serialization.cs index 9ac8aa40093b5..e1ed4b2fd62fb 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStore.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStore.Serialization.cs @@ -94,5 +94,21 @@ internal static KnowledgeStore DeserializeKnowledgeStore(JsonElement element) } return new KnowledgeStore(storageConnectionString, projections, identity, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeStore FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeStore(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreFileProjectionSelector.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreFileProjectionSelector.Serialization.cs index dc60b51fcc25f..c3a1902d04848 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreFileProjectionSelector.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreFileProjectionSelector.Serialization.cs @@ -113,5 +113,21 @@ internal static KnowledgeStoreFileProjectionSelector DeserializeKnowledgeStoreFi inputs ?? new ChangeTrackingList(), storageContainer); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeStoreFileProjectionSelector FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeStoreFileProjectionSelector(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreObjectProjectionSelector.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreObjectProjectionSelector.Serialization.cs index 73a16bf83ac01..22992f3caaa50 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreObjectProjectionSelector.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreObjectProjectionSelector.Serialization.cs @@ -113,5 +113,21 @@ internal static KnowledgeStoreObjectProjectionSelector DeserializeKnowledgeStore inputs ?? new ChangeTrackingList(), storageContainer); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeStoreObjectProjectionSelector FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeStoreObjectProjectionSelector(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjection.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjection.Serialization.cs index b70599bef6e1a..99c820dc1305a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjection.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjection.Serialization.cs @@ -105,5 +105,21 @@ internal static KnowledgeStoreProjection DeserializeKnowledgeStoreProjection(Jso } return new KnowledgeStoreProjection(tables ?? new ChangeTrackingList(), objects ?? new ChangeTrackingList(), files ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeStoreProjection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeStoreProjection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjectionSelector.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjectionSelector.Serialization.cs index 998caf6e57fa1..5a5aca304170f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjectionSelector.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreProjectionSelector.Serialization.cs @@ -99,5 +99,21 @@ internal static KnowledgeStoreProjectionSelector DeserializeKnowledgeStoreProjec } return new KnowledgeStoreProjectionSelector(referenceKeyName, generatedKeyName, source, sourceContext, inputs ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeStoreProjectionSelector FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeStoreProjectionSelector(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreStorageProjectionSelector.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreStorageProjectionSelector.Serialization.cs index bba1f66f5cdca..d758065cd9d39 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreStorageProjectionSelector.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreStorageProjectionSelector.Serialization.cs @@ -113,5 +113,21 @@ internal static KnowledgeStoreStorageProjectionSelector DeserializeKnowledgeStor inputs ?? new ChangeTrackingList(), storageContainer); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeStoreStorageProjectionSelector FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeStoreStorageProjectionSelector(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreTableProjectionSelector.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreTableProjectionSelector.Serialization.cs index 84746c505495d..8750debe0c9af 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreTableProjectionSelector.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeStoreTableProjectionSelector.Serialization.cs @@ -113,5 +113,21 @@ internal static KnowledgeStoreTableProjectionSelector DeserializeKnowledgeStoreT inputs ?? new ChangeTrackingList(), tableName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeStoreTableProjectionSelector FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKnowledgeStoreTableProjectionSelector(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/LanguageDetectionSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/LanguageDetectionSkill.Serialization.cs index b0073d468a965..bd3701c1ad5b5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/LanguageDetectionSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/LanguageDetectionSkill.Serialization.cs @@ -161,5 +161,21 @@ internal static LanguageDetectionSkill DeserializeLanguageDetectionSkill(JsonEle defaultCountryHint, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LanguageDetectionSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLanguageDetectionSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/LengthTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/LengthTokenFilter.Serialization.cs index 2dec2bca08e03..aa4df168c7d8b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/LengthTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/LengthTokenFilter.Serialization.cs @@ -75,5 +75,21 @@ internal static LengthTokenFilter DeserializeLengthTokenFilter(JsonElement eleme } return new LengthTokenFilter(odataType, name, min, max); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LengthTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLengthTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalAnalyzer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalAnalyzer.Serialization.cs index 7218e35a2faf5..0f25fbf6ae848 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalAnalyzer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalAnalyzer.Serialization.cs @@ -41,5 +41,21 @@ internal static LexicalAnalyzer DeserializeLexicalAnalyzer(JsonElement element) } return UnknownLexicalAnalyzer.DeserializeUnknownLexicalAnalyzer(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LexicalAnalyzer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLexicalAnalyzer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalNormalizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalNormalizer.Serialization.cs index 01b03644f439f..b366fafb4e689 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalNormalizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalNormalizer.Serialization.cs @@ -38,5 +38,21 @@ internal static LexicalNormalizer DeserializeLexicalNormalizer(JsonElement eleme } return UnknownLexicalNormalizer.DeserializeUnknownLexicalNormalizer(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LexicalNormalizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLexicalNormalizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalTokenizer.Serialization.cs index cdcfda9802a17..f3ee7f3a165d1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/LexicalTokenizer.Serialization.cs @@ -49,5 +49,21 @@ internal static LexicalTokenizer DeserializeLexicalTokenizer(JsonElement element } return UnknownLexicalTokenizer.DeserializeUnknownLexicalTokenizer(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LexicalTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLexicalTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/LimitTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/LimitTokenFilter.Serialization.cs index e29e4b5dbea28..f116c4100c960 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/LimitTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/LimitTokenFilter.Serialization.cs @@ -75,5 +75,21 @@ internal static LimitTokenFilter DeserializeLimitTokenFilter(JsonElement element } return new LimitTokenFilter(odataType, name, maxTokenCount, consumeAllTokens); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LimitTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLimitTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListAliasesResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListAliasesResult.Serialization.cs index 44db46fa45c40..7cf21b95bd1aa 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListAliasesResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListAliasesResult.Serialization.cs @@ -34,5 +34,13 @@ internal static ListAliasesResult DeserializeListAliasesResult(JsonElement eleme } return new ListAliasesResult(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ListAliasesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeListAliasesResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListDataSourcesResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListDataSourcesResult.Serialization.cs index ff9f056892938..39039785aadfc 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListDataSourcesResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListDataSourcesResult.Serialization.cs @@ -34,5 +34,13 @@ internal static ListDataSourcesResult DeserializeListDataSourcesResult(JsonEleme } return new ListDataSourcesResult(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ListDataSourcesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeListDataSourcesResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListIndexersResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListIndexersResult.Serialization.cs index cbb7a9ce9e251..6d70eb286b5e2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListIndexersResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListIndexersResult.Serialization.cs @@ -34,5 +34,13 @@ internal static ListIndexersResult DeserializeListIndexersResult(JsonElement ele } return new ListIndexersResult(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ListIndexersResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeListIndexersResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListIndexesResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListIndexesResult.Serialization.cs index 8220828abd049..20665fdd1033c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListIndexesResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListIndexesResult.Serialization.cs @@ -34,5 +34,13 @@ internal static ListIndexesResult DeserializeListIndexesResult(JsonElement eleme } return new ListIndexesResult(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ListIndexesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeListIndexesResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListSkillsetsResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListSkillsetsResult.Serialization.cs index 61ae61d3b28ad..9a564af9704ed 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListSkillsetsResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListSkillsetsResult.Serialization.cs @@ -34,5 +34,13 @@ internal static ListSkillsetsResult DeserializeListSkillsetsResult(JsonElement e } return new ListSkillsetsResult(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ListSkillsetsResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeListSkillsetsResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListSynonymMapsResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListSynonymMapsResult.Serialization.cs index 75f479a30f634..854d3d73691e0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListSynonymMapsResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListSynonymMapsResult.Serialization.cs @@ -34,5 +34,13 @@ internal static ListSynonymMapsResult DeserializeListSynonymMapsResult(JsonEleme } return new ListSynonymMapsResult(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ListSynonymMapsResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeListSynonymMapsResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardAnalyzer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardAnalyzer.Serialization.cs index ba59f0cea770d..35020c7d4a073 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardAnalyzer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardAnalyzer.Serialization.cs @@ -86,5 +86,21 @@ internal static LuceneStandardAnalyzer DeserializeLuceneStandardAnalyzer(JsonEle } return new LuceneStandardAnalyzer(odataType, name, maxTokenLength, stopwords ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LuceneStandardAnalyzer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLuceneStandardAnalyzer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardTokenizer.Serialization.cs index b1a921b0893aa..e677f106b9c00 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/LuceneStandardTokenizer.Serialization.cs @@ -12,5 +12,20 @@ namespace Azure.Search.Documents.Indexes.Models { public partial class LuceneStandardTokenizer : IUtf8JsonSerializable { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LuceneStandardTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLuceneStandardTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/MagnitudeScoringFunction.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/MagnitudeScoringFunction.Serialization.cs index 60cb41b2da535..139713154b6e9 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/MagnitudeScoringFunction.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/MagnitudeScoringFunction.Serialization.cs @@ -76,5 +76,21 @@ internal static MagnitudeScoringFunction DeserializeMagnitudeScoringFunction(Jso } return new MagnitudeScoringFunction(type, fieldName, boost, interpolation, magnitude); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MagnitudeScoringFunction FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMagnitudeScoringFunction(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/MagnitudeScoringParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/MagnitudeScoringParameters.Serialization.cs index 225285c484f52..c190106d28b5d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/MagnitudeScoringParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/MagnitudeScoringParameters.Serialization.cs @@ -60,5 +60,21 @@ internal static MagnitudeScoringParameters DeserializeMagnitudeScoringParameters } return new MagnitudeScoringParameters(boostingRangeStart, boostingRangeEnd, constantBoostBeyondRange); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MagnitudeScoringParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMagnitudeScoringParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/MappingCharFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/MappingCharFilter.Serialization.cs index 30c0e5dd06157..c2582415e6477 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/MappingCharFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/MappingCharFilter.Serialization.cs @@ -64,5 +64,21 @@ internal static MappingCharFilter DeserializeMappingCharFilter(JsonElement eleme } return new MappingCharFilter(odataType, name, mappings); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MappingCharFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMappingCharFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/MergeSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/MergeSkill.Serialization.cs index 6a708be224ae4..2355027aaa626 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/MergeSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/MergeSkill.Serialization.cs @@ -137,5 +137,21 @@ internal static MergeSkill DeserializeMergeSkill(JsonElement element) insertPreTag, insertPostTag); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MergeSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMergeSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftLanguageStemmingTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftLanguageStemmingTokenizer.Serialization.cs index 12857808de5b9..1711152aa48d3 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftLanguageStemmingTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftLanguageStemmingTokenizer.Serialization.cs @@ -90,5 +90,21 @@ internal static MicrosoftLanguageStemmingTokenizer DeserializeMicrosoftLanguageS } return new MicrosoftLanguageStemmingTokenizer(odataType, name, maxTokenLength, isSearchTokenizer, language); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MicrosoftLanguageStemmingTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftLanguageStemmingTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftLanguageTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftLanguageTokenizer.Serialization.cs index 7d83dca27a827..6f6abe820ae9f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftLanguageTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/MicrosoftLanguageTokenizer.Serialization.cs @@ -90,5 +90,21 @@ internal static MicrosoftLanguageTokenizer DeserializeMicrosoftLanguageTokenizer } return new MicrosoftLanguageTokenizer(odataType, name, maxTokenLength, isSearchTokenizer, language); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MicrosoftLanguageTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftLanguageTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenFilter.Serialization.cs index 8d8e417a21354..afd673e12705a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenFilter.Serialization.cs @@ -12,5 +12,20 @@ namespace Azure.Search.Documents.Indexes.Models { public partial class NGramTokenFilter : IUtf8JsonSerializable { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new NGramTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNGramTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenizer.Serialization.cs index 7f4f9d1bc8481..35ead208125bc 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/NGramTokenizer.Serialization.cs @@ -101,5 +101,21 @@ internal static NGramTokenizer DeserializeNGramTokenizer(JsonElement element) } return new NGramTokenizer(odataType, name, minGram, maxGram, tokenChars ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new NGramTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNGramTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/NativeBlobSoftDeleteDeletionDetectionPolicy.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/NativeBlobSoftDeleteDeletionDetectionPolicy.Serialization.cs index 3768cd2ef9a2f..cc098838405dd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/NativeBlobSoftDeleteDeletionDetectionPolicy.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/NativeBlobSoftDeleteDeletionDetectionPolicy.Serialization.cs @@ -37,5 +37,21 @@ internal static NativeBlobSoftDeleteDeletionDetectionPolicy DeserializeNativeBlo } return new NativeBlobSoftDeleteDeletionDetectionPolicy(odataType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new NativeBlobSoftDeleteDeletionDetectionPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNativeBlobSoftDeleteDeletionDetectionPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/OcrSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/OcrSkill.Serialization.cs index a97d4f97dfc9a..6edf1e30d238a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/OcrSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/OcrSkill.Serialization.cs @@ -177,5 +177,21 @@ internal static OcrSkill DeserializeOcrSkill(JsonElement element) detectOrientation, lineEnding); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OcrSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOcrSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/OutputFieldMappingEntry.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/OutputFieldMappingEntry.Serialization.cs index 9bc9736561b9f..0ffdca7786bec 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/OutputFieldMappingEntry.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/OutputFieldMappingEntry.Serialization.cs @@ -48,5 +48,21 @@ internal static OutputFieldMappingEntry DeserializeOutputFieldMappingEntry(JsonE } return new OutputFieldMappingEntry(name, targetName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OutputFieldMappingEntry FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOutputFieldMappingEntry(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PathHierarchyTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PathHierarchyTokenizer.Serialization.cs index b1486e0112d43..a398b762ecf69 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PathHierarchyTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PathHierarchyTokenizer.Serialization.cs @@ -127,5 +127,21 @@ internal static PathHierarchyTokenizer DeserializePathHierarchyTokenizer(JsonEle reverse, skip); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PathHierarchyTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePathHierarchyTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternAnalyzer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternAnalyzer.Serialization.cs index b53f7eeec810d..017e1fc72a13a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternAnalyzer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternAnalyzer.Serialization.cs @@ -114,5 +114,21 @@ internal static PatternAnalyzer DeserializePatternAnalyzer(JsonElement element) flags, stopwords ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PatternAnalyzer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePatternAnalyzer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternCaptureTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternCaptureTokenFilter.Serialization.cs index 2167f867ecee7..70d0c71c744c0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternCaptureTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternCaptureTokenFilter.Serialization.cs @@ -79,5 +79,21 @@ internal static PatternCaptureTokenFilter DeserializePatternCaptureTokenFilter(J } return new PatternCaptureTokenFilter(odataType, name, patterns, preserveOriginal); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PatternCaptureTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePatternCaptureTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternReplaceCharFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternReplaceCharFilter.Serialization.cs index 08d7ab6da3266..025eafcc58cb7 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternReplaceCharFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternReplaceCharFilter.Serialization.cs @@ -61,5 +61,21 @@ internal static PatternReplaceCharFilter DeserializePatternReplaceCharFilter(Jso } return new PatternReplaceCharFilter(odataType, name, pattern, replacement); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PatternReplaceCharFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePatternReplaceCharFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternReplaceTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternReplaceTokenFilter.Serialization.cs index d0738325fed0a..8e648901f2e2b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternReplaceTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternReplaceTokenFilter.Serialization.cs @@ -61,5 +61,21 @@ internal static PatternReplaceTokenFilter DeserializePatternReplaceTokenFilter(J } return new PatternReplaceTokenFilter(odataType, name, pattern, replacement); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PatternReplaceTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePatternReplaceTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternTokenizer.Serialization.cs index ebc8daa12769e..7385cd021c222 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PatternTokenizer.Serialization.cs @@ -82,5 +82,21 @@ internal static PatternTokenizer DeserializePatternTokenizer(JsonElement element } return new PatternTokenizer(odataType, name, pattern, flags, group); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PatternTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePatternTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PhoneticTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PhoneticTokenFilter.Serialization.cs index a208d85a5ad2c..e5f09a4ec0ad0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PhoneticTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PhoneticTokenFilter.Serialization.cs @@ -75,5 +75,21 @@ internal static PhoneticTokenFilter DeserializePhoneticTokenFilter(JsonElement e } return new PhoneticTokenFilter(odataType, name, encoder, replace); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PhoneticTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoneticTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PiiDetectionSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PiiDetectionSkill.Serialization.cs index 229c525dba57d..9a5aa923dfe46 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PiiDetectionSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/PiiDetectionSkill.Serialization.cs @@ -275,5 +275,21 @@ internal static PiiDetectionSkill DeserializePiiDetectionSkill(JsonElement eleme piiCategories ?? new ChangeTrackingList(), domain); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PiiDetectionSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiDetectionSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryAnswerResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryAnswerResult.Serialization.cs index 64c8016d3da9f..630d05df5957b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryAnswerResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryAnswerResult.Serialization.cs @@ -60,5 +60,13 @@ internal static QueryAnswerResult DeserializeQueryAnswerResult(JsonElement eleme additionalProperties = additionalPropertiesDictionary; return new QueryAnswerResult(score, key, text, highlights, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QueryAnswerResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQueryAnswerResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryCaptionResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryCaptionResult.Serialization.cs index 982cf5974d205..78bcf3c58adc4 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryCaptionResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryCaptionResult.Serialization.cs @@ -44,5 +44,13 @@ internal static QueryCaptionResult DeserializeQueryCaptionResult(JsonElement ele additionalProperties = additionalPropertiesDictionary; return new QueryCaptionResult(text, highlights, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QueryCaptionResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQueryCaptionResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryResultDocumentRerankerInput.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryResultDocumentRerankerInput.Serialization.cs index 0bf5350d337c1..4959fde95be97 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryResultDocumentRerankerInput.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryResultDocumentRerankerInput.Serialization.cs @@ -40,5 +40,13 @@ internal static QueryResultDocumentRerankerInput DeserializeQueryResultDocumentR } return new QueryResultDocumentRerankerInput(title, content, keywords); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QueryResultDocumentRerankerInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQueryResultDocumentRerankerInput(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryResultDocumentSemanticField.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryResultDocumentSemanticField.Serialization.cs index 5759a8c0abe05..31b3746ce65de 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryResultDocumentSemanticField.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/QueryResultDocumentSemanticField.Serialization.cs @@ -38,5 +38,13 @@ internal static QueryResultDocumentSemanticField DeserializeQueryResultDocumentS } return new QueryResultDocumentSemanticField(name, state); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QueryResultDocumentSemanticField FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQueryResultDocumentSemanticField(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetDocumentOptions.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetDocumentOptions.Serialization.cs index 1bb1f1c0a2a45..8ea6bba2c7bc9 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetDocumentOptions.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetDocumentOptions.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetSkillsOptions.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetSkillsOptions.Serialization.cs index b5ba7d21ea02f..5ea75a710b458 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetSkillsOptions.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ResetSkillsOptions.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScalarQuantizationCompressionConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScalarQuantizationCompressionConfiguration.Serialization.cs index e10523ca71cbe..aa7c6653eba7a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScalarQuantizationCompressionConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScalarQuantizationCompressionConfiguration.Serialization.cs @@ -98,5 +98,21 @@ internal static ScalarQuantizationCompressionConfiguration DeserializeScalarQuan } return new ScalarQuantizationCompressionConfiguration(name, kind, rerankWithOriginalVectors, defaultOversampling, scalarQuantizationParameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ScalarQuantizationCompressionConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScalarQuantizationCompressionConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScalarQuantizationParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScalarQuantizationParameters.Serialization.cs index 582f32dc389d5..c3f3ff0d51dc3 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScalarQuantizationParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScalarQuantizationParameters.Serialization.cs @@ -52,5 +52,21 @@ internal static ScalarQuantizationParameters DeserializeScalarQuantizationParame } return new ScalarQuantizationParameters(quantizedDataType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ScalarQuantizationParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScalarQuantizationParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunction.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunction.Serialization.cs index 6ea6856f66e2a..418585e7adcab 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunction.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunction.Serialization.cs @@ -48,5 +48,21 @@ internal static ScoringFunction DeserializeScoringFunction(JsonElement element) } return UnknownScoringFunction.DeserializeUnknownScoringFunction(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ScoringFunction FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScoringFunction(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringProfile.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringProfile.Serialization.cs index d17136db3d82c..0f0d776a67215 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringProfile.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringProfile.Serialization.cs @@ -109,5 +109,21 @@ internal static ScoringProfile DeserializeScoringProfile(JsonElement element) } return new ScoringProfile(name, text, functions ?? new ChangeTrackingList(), functionAggregation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ScoringProfile FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScoringProfile(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchAlias.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchAlias.Serialization.cs index 6238f3b145271..e361690976c88 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchAlias.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchAlias.Serialization.cs @@ -67,5 +67,21 @@ internal static SearchAlias DeserializeSearchAlias(JsonElement element) } return new SearchAlias(name, indexes, odataEtag); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchAlias FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchAlias(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchDocumentsResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchDocumentsResult.Serialization.cs index 05f9cf7babe09..940a3b5e92f08 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchDocumentsResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchDocumentsResult.Serialization.cs @@ -142,5 +142,13 @@ internal static SearchDocumentsResult DeserializeSearchDocumentsResult(JsonEleme value, odataNextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchDocumentsResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchDocumentsResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.Serialization.cs index c4d381d5281a3..fb44391f6c404 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.Serialization.cs @@ -356,5 +356,21 @@ internal static SearchField DeserializeSearchField(JsonElement element) synonymMaps ?? new ChangeTrackingList(), fields ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchField FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchField(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.Serialization.cs index 59838cedcd678..9df9a9e30404b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.Serialization.cs @@ -376,5 +376,21 @@ internal static SearchIndex DeserializeSearchIndex(JsonElement element) vectorSearch, odataEtag); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndex FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndex(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexStatistics.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexStatistics.Serialization.cs index 56e3d1ebc78e5..07a395a17a226 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexStatistics.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexStatistics.Serialization.cs @@ -40,5 +40,13 @@ internal static SearchIndexStatistics DeserializeSearchIndexStatistics(JsonEleme } return new SearchIndexStatistics(documentCount, storageSize, vectorIndexSize); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexStatistics(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexer.Serialization.cs index 988705858b326..196692294b197 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexer.Serialization.cs @@ -265,5 +265,21 @@ internal static SearchIndexer DeserializeSearchIndexer(JsonElement element) encryptionKey, cache); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerCache.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerCache.Serialization.cs index 7e1122683498d..6db5cfa9e1725 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerCache.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerCache.Serialization.cs @@ -86,5 +86,21 @@ internal static SearchIndexerCache DeserializeSearchIndexerCache(JsonElement ele } return new SearchIndexerCache(storageConnectionString, enableReprocessing, identity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerCache FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerCache(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataContainer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataContainer.Serialization.cs index c352666819af5..1de0473c1f048 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataContainer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataContainer.Serialization.cs @@ -48,5 +48,21 @@ internal static SearchIndexerDataContainer DeserializeSearchIndexerDataContainer } return new SearchIndexerDataContainer(name, query); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerDataContainer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerDataContainer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataIdentity.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataIdentity.Serialization.cs index 24e87e488792d..ec53f7115ddf2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataIdentity.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataIdentity.Serialization.cs @@ -37,5 +37,21 @@ internal static SearchIndexerDataIdentity DeserializeSearchIndexerDataIdentity(J } return UnknownSearchIndexerDataIdentity.DeserializeUnknownSearchIndexerDataIdentity(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerDataIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerDataIdentity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataNoneIdentity.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataNoneIdentity.Serialization.cs index 86ca883ebf8a4..743ff46754374 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataNoneIdentity.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataNoneIdentity.Serialization.cs @@ -37,5 +37,21 @@ internal static SearchIndexerDataNoneIdentity DeserializeSearchIndexerDataNoneId } return new SearchIndexerDataNoneIdentity(odataType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SearchIndexerDataNoneIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerDataNoneIdentity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataSourceConnection.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataSourceConnection.Serialization.cs index 21139d5cb1a31..232fb0139468d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataSourceConnection.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataSourceConnection.Serialization.cs @@ -185,5 +185,21 @@ internal static SearchIndexerDataSourceConnection DeserializeSearchIndexerDataSo odataEtag, encryptionKey); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerDataSourceConnection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerDataSourceConnection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataUserAssignedIdentity.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataUserAssignedIdentity.Serialization.cs index b109858c37165..cad82dc99ffb0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataUserAssignedIdentity.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataUserAssignedIdentity.Serialization.cs @@ -45,5 +45,21 @@ internal static SearchIndexerDataUserAssignedIdentity DeserializeSearchIndexerDa } return new SearchIndexerDataUserAssignedIdentity(odataType, userAssignedIdentity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SearchIndexerDataUserAssignedIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerDataUserAssignedIdentity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerError.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerError.Serialization.cs index 50cf02b6318f4..a76a787d8141c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerError.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerError.Serialization.cs @@ -64,5 +64,13 @@ internal static SearchIndexerError DeserializeSearchIndexerError(JsonElement ele details, documentationLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerError(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjectionSelector.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjectionSelector.Serialization.cs index 411b2fd44de95..3086df3778124 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjectionSelector.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjectionSelector.Serialization.cs @@ -72,5 +72,21 @@ internal static SearchIndexerIndexProjectionSelector DeserializeSearchIndexerInd } return new SearchIndexerIndexProjectionSelector(targetIndexName, parentKeyFieldName, sourceContext, mappings); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerIndexProjectionSelector FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerIndexProjectionSelector(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjections.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjections.Serialization.cs index 28383b54b7ac2..7aa4cfb0ec622 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjections.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjections.Serialization.cs @@ -63,5 +63,21 @@ internal static SearchIndexerIndexProjections DeserializeSearchIndexerIndexProje } return new SearchIndexerIndexProjections(selectors, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerIndexProjections FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerIndexProjections(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjectionsParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjectionsParameters.Serialization.cs index def2d29021623..97cae03b5efed 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjectionsParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerIndexProjectionsParameters.Serialization.cs @@ -54,5 +54,21 @@ internal static SearchIndexerIndexProjectionsParameters DeserializeSearchIndexer additionalProperties = additionalPropertiesDictionary; return new SearchIndexerIndexProjectionsParameters(projectionMode, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerIndexProjectionsParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerIndexProjectionsParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerKnowledgeStoreParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerKnowledgeStoreParameters.Serialization.cs index a5e660441999d..b4cbbed524abb 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerKnowledgeStoreParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerKnowledgeStoreParameters.Serialization.cs @@ -54,5 +54,21 @@ internal static SearchIndexerKnowledgeStoreParameters DeserializeSearchIndexerKn additionalProperties = additionalPropertiesDictionary; return new SearchIndexerKnowledgeStoreParameters(synthesizeGeneratedKeyName, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerKnowledgeStoreParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerKnowledgeStoreParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerLimits.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerLimits.Serialization.cs index a0a36a06b0c41..3b4497f765fd3 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerLimits.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerLimits.Serialization.cs @@ -53,5 +53,13 @@ internal static SearchIndexerLimits DeserializeSearchIndexerLimits(JsonElement e } return new SearchIndexerLimits(maxRunTime, maxDocumentExtractionSize, maxDocumentContentCharactersToExtract); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerLimits FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerLimits(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.Serialization.cs index 400f48d549cf2..f56d6787116d7 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.Serialization.cs @@ -84,5 +84,21 @@ internal static SearchIndexerSkill DeserializeSearchIndexerSkill(JsonElement ele } return UnknownSearchIndexerSkill.DeserializeUnknownSearchIndexerSkill(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkillset.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkillset.Serialization.cs index 9df4ec1288280..f8f05bbc73e44 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkillset.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkillset.Serialization.cs @@ -154,5 +154,21 @@ internal static SearchIndexerSkillset DeserializeSearchIndexerSkillset(JsonEleme odataEtag, encryptionKey); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerSkillset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerSkillset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.Serialization.cs index 0ddf528fd0ba7..a73c57477a63d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.Serialization.cs @@ -57,5 +57,13 @@ internal static SearchIndexerStatus DeserializeSearchIndexerStatus(JsonElement e } return new SearchIndexerStatus(status, lastResult, executionHistory, limits); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerStatus(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerWarning.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerWarning.Serialization.cs index 0bcc0fa9e901c..dd4ab542fd674 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerWarning.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerWarning.Serialization.cs @@ -52,5 +52,13 @@ internal static SearchIndexerWarning DeserializeSearchIndexerWarning(JsonElement } return new SearchIndexerWarning(key, message, name, details, documentationLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexerWarning FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchIndexerWarning(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.Serialization.cs index d6d1efb297eba..b028bb2afa50d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.Serialization.cs @@ -505,5 +505,21 @@ internal static SearchOptions DeserializeSearchOptions(JsonElement element) vectorQueries ?? new ChangeTrackingList(), vectorFilterMode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResourceCounter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResourceCounter.Serialization.cs index 77a0ac39915e9..e12a314f60961 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResourceCounter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResourceCounter.Serialization.cs @@ -39,5 +39,13 @@ internal static SearchResourceCounter DeserializeSearchResourceCounter(JsonEleme } return new SearchResourceCounter(usage, quota); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchResourceCounter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchResourceCounter(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResourceEncryptionKey.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResourceEncryptionKey.Serialization.cs index 4c42e7d1796f7..a885d5a30e353 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResourceEncryptionKey.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResourceEncryptionKey.Serialization.cs @@ -91,5 +91,21 @@ internal static SearchResourceEncryptionKey DeserializeSearchResourceEncryptionK } return new SearchResourceEncryptionKey(keyVaultKeyName, keyVaultKeyVersion, keyVaultUri, accessCredentials, identity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchResourceEncryptionKey FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchResourceEncryptionKey(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.Serialization.cs index 40a81eb3465ed..c9b3b6dd852a6 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResult.Serialization.cs @@ -109,5 +109,13 @@ internal static SearchResult DeserializeSearchResult(JsonElement element) searchDocumentDebugInfo ?? new ChangeTrackingList(), additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceCounters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceCounters.Serialization.cs index 87ff462f7ef82..16a4c2345a078 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceCounters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceCounters.Serialization.cs @@ -85,5 +85,13 @@ internal static SearchServiceCounters DeserializeSearchServiceCounters(JsonEleme skillsetCount, vectorIndexSize); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchServiceCounters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchServiceCounters(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.Serialization.cs index 7ef7a89ad7d82..841012d918db7 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.Serialization.cs @@ -66,5 +66,13 @@ internal static SearchServiceLimits DeserializeSearchServiceLimits(JsonElement e } return new SearchServiceLimits(maxFieldsPerIndex, maxFieldNestingDepthPerIndex, maxComplexCollectionFieldsPerIndex, maxComplexObjectsInCollectionsPerDocument); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchServiceLimits FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchServiceLimits(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.Serialization.cs index 6485ce7fa5a8a..5e0c6a9c09db2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.Serialization.cs @@ -34,5 +34,13 @@ internal static SearchServiceStatistics DeserializeSearchServiceStatistics(JsonE } return new SearchServiceStatistics(counters, limits); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchServiceStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchServiceStatistics(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchSuggester.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchSuggester.Serialization.cs index 44b14aec04d54..96dccb511884c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchSuggester.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchSuggester.Serialization.cs @@ -64,5 +64,21 @@ internal static SearchSuggester DeserializeSearchSuggester(JsonElement element) } return new SearchSuggester(name, searchMode, sourceFields); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchSuggester FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchSuggester(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticConfiguration.Serialization.cs index c1ab4ae01d5fa..3e4493d2da86f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticConfiguration.Serialization.cs @@ -45,5 +45,21 @@ internal static SemanticConfiguration DeserializeSemanticConfiguration(JsonEleme } return new SemanticConfiguration(name, prioritizedFields); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SemanticConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSemanticConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.Serialization.cs index 60a658e4a2364..d7d08f89a1423 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticDebugInfo.Serialization.cs @@ -73,5 +73,13 @@ internal static SemanticDebugInfo DeserializeSemanticDebugInfo(JsonElement eleme } return new SemanticDebugInfo(titleField, contentFields ?? new ChangeTrackingList(), keywordFields ?? new ChangeTrackingList(), rerankerInput); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SemanticDebugInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSemanticDebugInfo(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticField.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticField.Serialization.cs index 4e6458392934d..e799ea4ea2432 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticField.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticField.Serialization.cs @@ -37,5 +37,21 @@ internal static SemanticField DeserializeSemanticField(JsonElement element) } return new SemanticField(fieldName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SemanticField FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSemanticField(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticPrioritizedFields.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticPrioritizedFields.Serialization.cs index b6381883c0174..83bc9f809109e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticPrioritizedFields.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticPrioritizedFields.Serialization.cs @@ -95,5 +95,21 @@ internal static SemanticPrioritizedFields DeserializeSemanticPrioritizedFields(J } return new SemanticPrioritizedFields(titleField, prioritizedContentFields ?? new ChangeTrackingList(), prioritizedKeywordsFields ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SemanticPrioritizedFields FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSemanticPrioritizedFields(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticSearch.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticSearch.Serialization.cs index c3c90421ce08c..596b427990d2f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticSearch.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SemanticSearch.Serialization.cs @@ -66,5 +66,21 @@ internal static SemanticSearch DeserializeSemanticSearch(JsonElement element) } return new SemanticSearch(defaultConfiguration, configurations ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SemanticSearch FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSemanticSearch(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SentimentSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SentimentSkill.Serialization.cs index 4b05c1cc26133..8c390b0278e0e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SentimentSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SentimentSkill.Serialization.cs @@ -137,5 +137,21 @@ internal static SentimentSkill DeserializeSentimentSkill(JsonElement element) outputs, defaultLanguageCode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SentimentSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SentimentSkillV3.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SentimentSkillV3.Serialization.cs index 5b5cf1750a8cb..81719b1926265 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SentimentSkillV3.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SentimentSkillV3.Serialization.cs @@ -177,5 +177,21 @@ internal static SentimentSkillV3 DeserializeSentimentSkillV3(JsonElement element includeOpinionMining, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SentimentSkillV3 FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentSkillV3(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ShaperSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ShaperSkill.Serialization.cs index 54fcc9be31786..3a67761fdd68d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ShaperSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ShaperSkill.Serialization.cs @@ -113,5 +113,21 @@ internal static ShaperSkill DeserializeShaperSkill(JsonElement element) inputs, outputs); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ShaperSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeShaperSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ShingleTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ShingleTokenFilter.Serialization.cs index 51fbe4e3908e9..6221162ca84fd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ShingleTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ShingleTokenFilter.Serialization.cs @@ -135,5 +135,21 @@ internal static ShingleTokenFilter DeserializeShingleTokenFilter(JsonElement ele tokenSeparator, filterToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ShingleTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeShingleTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SimilarityAlgorithm.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SimilarityAlgorithm.Serialization.cs index b12b8adc7955f..68ee00201e1d4 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SimilarityAlgorithm.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SimilarityAlgorithm.Serialization.cs @@ -37,5 +37,21 @@ internal static SimilarityAlgorithm DeserializeSimilarityAlgorithm(JsonElement e } return UnknownSimilarity.DeserializeUnknownSimilarity(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SimilarityAlgorithm FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSimilarityAlgorithm(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SnowballTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SnowballTokenFilter.Serialization.cs index ba02976e2832f..6485ef174f611 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SnowballTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SnowballTokenFilter.Serialization.cs @@ -53,5 +53,21 @@ internal static SnowballTokenFilter DeserializeSnowballTokenFilter(JsonElement e } return new SnowballTokenFilter(odataType, name, language); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SnowballTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSnowballTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SoftDeleteColumnDeletionDetectionPolicy.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SoftDeleteColumnDeletionDetectionPolicy.Serialization.cs index e8db91c360865..80645775d607c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SoftDeleteColumnDeletionDetectionPolicy.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SoftDeleteColumnDeletionDetectionPolicy.Serialization.cs @@ -59,5 +59,21 @@ internal static SoftDeleteColumnDeletionDetectionPolicy DeserializeSoftDeleteCol } return new SoftDeleteColumnDeletionDetectionPolicy(odataType, softDeleteColumnName, softDeleteMarkerValue); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SoftDeleteColumnDeletionDetectionPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSoftDeleteColumnDeletionDetectionPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SplitSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SplitSkill.Serialization.cs index c850fe185c065..40f0484e9bc4f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SplitSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SplitSkill.Serialization.cs @@ -225,5 +225,21 @@ internal static SplitSkill DeserializeSplitSkill(JsonElement element) pageOverlapLength, maximumPagesToTake); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SplitSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSplitSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SqlIntegratedChangeTrackingPolicy.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SqlIntegratedChangeTrackingPolicy.Serialization.cs index c3a1d0702870d..d1a78dfe04d70 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SqlIntegratedChangeTrackingPolicy.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SqlIntegratedChangeTrackingPolicy.Serialization.cs @@ -37,5 +37,21 @@ internal static SqlIntegratedChangeTrackingPolicy DeserializeSqlIntegratedChange } return new SqlIntegratedChangeTrackingPolicy(odataType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlIntegratedChangeTrackingPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlIntegratedChangeTrackingPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerOverrideTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerOverrideTokenFilter.Serialization.cs index 7f2d9fb8017f4..67bc4bcf5496b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerOverrideTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerOverrideTokenFilter.Serialization.cs @@ -64,5 +64,21 @@ internal static StemmerOverrideTokenFilter DeserializeStemmerOverrideTokenFilter } return new StemmerOverrideTokenFilter(odataType, name, rules); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new StemmerOverrideTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStemmerOverrideTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerTokenFilter.Serialization.cs index 490c72fac1ac3..b4aa599d4fb9f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/StemmerTokenFilter.Serialization.cs @@ -53,5 +53,21 @@ internal static StemmerTokenFilter DeserializeStemmerTokenFilter(JsonElement ele } return new StemmerTokenFilter(odataType, name, language); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new StemmerTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStemmerTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopAnalyzer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopAnalyzer.Serialization.cs index 426bef25d8594..3793c616d5588 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopAnalyzer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopAnalyzer.Serialization.cs @@ -71,5 +71,21 @@ internal static StopAnalyzer DeserializeStopAnalyzer(JsonElement element) } return new StopAnalyzer(odataType, name, stopwords ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new StopAnalyzer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStopAnalyzer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsTokenFilter.Serialization.cs index 54728e5ff6149..4266b870cbe2c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/StopwordsTokenFilter.Serialization.cs @@ -122,5 +122,21 @@ internal static StopwordsTokenFilter DeserializeStopwordsTokenFilter(JsonElement ignoreCase, removeTrailing); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new StopwordsTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStopwordsTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestDocumentsResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestDocumentsResult.Serialization.cs index dfc0022f7eac1..b935ec6bd3616 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestDocumentsResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestDocumentsResult.Serialization.cs @@ -44,5 +44,13 @@ internal static SuggestDocumentsResult DeserializeSuggestDocumentsResult(JsonEle } return new SuggestDocumentsResult(value, searchCoverage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SuggestDocumentsResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSuggestDocumentsResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestOptions.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestOptions.Serialization.cs index 905f79bd05a6a..729a94f8804db 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestOptions.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestOptions.Serialization.cs @@ -66,5 +66,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestResult.Serialization.cs index 2861ca9d304a9..9bd1411a8f583 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SuggestResult.Serialization.cs @@ -33,5 +33,13 @@ internal static SuggestResult DeserializeSuggestResult(JsonElement element) additionalProperties = additionalPropertiesDictionary; return new SuggestResult(searchText, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SuggestResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSuggestResult(document.RootElement); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SynonymMap.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SynonymMap.Serialization.cs index 25c00759917cf..1a6fb2195d8ab 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SynonymMap.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SynonymMap.Serialization.cs @@ -87,5 +87,21 @@ internal static SynonymMap DeserializeSynonymMap(JsonElement element) } return new SynonymMap(name, format, synonyms, encryptionKey, odataEtag); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SynonymMap FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSynonymMap(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SynonymTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SynonymTokenFilter.Serialization.cs index f0628b28a778f..1cf17cfc7609b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SynonymTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SynonymTokenFilter.Serialization.cs @@ -94,5 +94,21 @@ internal static SynonymTokenFilter DeserializeSynonymTokenFilter(JsonElement ele } return new SynonymTokenFilter(odataType, name, synonyms, ignoreCase, expand); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SynonymTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSynonymTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/TagScoringFunction.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/TagScoringFunction.Serialization.cs index 423c696a0cf60..a984a82deb8ef 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/TagScoringFunction.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/TagScoringFunction.Serialization.cs @@ -76,5 +76,21 @@ internal static TagScoringFunction DeserializeTagScoringFunction(JsonElement ele } return new TagScoringFunction(type, fieldName, boost, interpolation, tag); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TagScoringFunction FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTagScoringFunction(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/TagScoringParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/TagScoringParameters.Serialization.cs index 315d126485aa3..a111980761650 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/TagScoringParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/TagScoringParameters.Serialization.cs @@ -37,5 +37,21 @@ internal static TagScoringParameters DeserializeTagScoringParameters(JsonElement } return new TagScoringParameters(tagsParameter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TagScoringParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTagScoringParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/TextTranslationSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/TextTranslationSkill.Serialization.cs index 59fc10133498c..62081ab0265d0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/TextTranslationSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/TextTranslationSkill.Serialization.cs @@ -170,5 +170,21 @@ internal static TextTranslationSkill DeserializeTextTranslationSkill(JsonElement defaultFromLanguageCode, suggestedFrom); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TextTranslationSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextTranslationSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/TextWeights.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/TextWeights.Serialization.cs index 2d2259010db5c..832cbe53efa4d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/TextWeights.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/TextWeights.Serialization.cs @@ -49,5 +49,21 @@ internal static TextWeights DeserializeTextWeights(JsonElement element) } return new TextWeights(weights); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TextWeights FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextWeights(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/TokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/TokenFilter.Serialization.cs index 0d46a05a948b0..4b99c94dd0852 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/TokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/TokenFilter.Serialization.cs @@ -62,5 +62,21 @@ internal static TokenFilter DeserializeTokenFilter(JsonElement element) } return UnknownTokenFilter.DeserializeUnknownTokenFilter(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/TruncateTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/TruncateTokenFilter.Serialization.cs index 5ac4424692421..93b67c2ed6eef 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/TruncateTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/TruncateTokenFilter.Serialization.cs @@ -60,5 +60,21 @@ internal static TruncateTokenFilter DeserializeTruncateTokenFilter(JsonElement e } return new TruncateTokenFilter(odataType, name, length); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TruncateTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTruncateTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UaxUrlEmailTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UaxUrlEmailTokenizer.Serialization.cs index c6c10eb774aed..1d140e72b969b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UaxUrlEmailTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UaxUrlEmailTokenizer.Serialization.cs @@ -60,5 +60,21 @@ internal static UaxUrlEmailTokenizer DeserializeUaxUrlEmailTokenizer(JsonElement } return new UaxUrlEmailTokenizer(odataType, name, maxTokenLength); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UaxUrlEmailTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUaxUrlEmailTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UniqueTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UniqueTokenFilter.Serialization.cs index 12be9ec9217e8..95e81c36952d0 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UniqueTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UniqueTokenFilter.Serialization.cs @@ -60,5 +60,21 @@ internal static UniqueTokenFilter DeserializeUniqueTokenFilter(JsonElement eleme } return new UniqueTokenFilter(odataType, name, onlyOnSamePosition); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UniqueTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUniqueTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownCharFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownCharFilter.Serialization.cs index 8115fa54ae737..7e367a33fe21b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownCharFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownCharFilter.Serialization.cs @@ -45,5 +45,21 @@ internal static UnknownCharFilter DeserializeUnknownCharFilter(JsonElement eleme } return new UnknownCharFilter(odataType, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownCharFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownCharFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownCognitiveServicesAccount.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownCognitiveServicesAccount.Serialization.cs index 5e00eaf4f2778..62d8b28ea55f3 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownCognitiveServicesAccount.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownCognitiveServicesAccount.Serialization.cs @@ -48,5 +48,21 @@ internal static UnknownCognitiveServicesAccount DeserializeUnknownCognitiveServi } return new UnknownCognitiveServicesAccount(odataType, description); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownCognitiveServicesAccount FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownCognitiveServicesAccount(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownDataChangeDetectionPolicy.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownDataChangeDetectionPolicy.Serialization.cs index d12e2bbe278d7..2ac606f95ff6b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownDataChangeDetectionPolicy.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownDataChangeDetectionPolicy.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownDataChangeDetectionPolicy DeserializeUnknownDataChangeDet } return new UnknownDataChangeDetectionPolicy(odataType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDataChangeDetectionPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDataChangeDetectionPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownDataDeletionDetectionPolicy.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownDataDeletionDetectionPolicy.Serialization.cs index d2fd0b8f8f84b..5fe60f08086de 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownDataDeletionDetectionPolicy.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownDataDeletionDetectionPolicy.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownDataDeletionDetectionPolicy DeserializeUnknownDataDeletio } return new UnknownDataDeletionDetectionPolicy(odataType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDataDeletionDetectionPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDataDeletionDetectionPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalAnalyzer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalAnalyzer.Serialization.cs index e6b5e8882ac24..a7fe53413cf1e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalAnalyzer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalAnalyzer.Serialization.cs @@ -45,5 +45,21 @@ internal static UnknownLexicalAnalyzer DeserializeUnknownLexicalAnalyzer(JsonEle } return new UnknownLexicalAnalyzer(odataType, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownLexicalAnalyzer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownLexicalAnalyzer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalNormalizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalNormalizer.Serialization.cs index d8ae8a5f6e6c9..a146f988b6781 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalNormalizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalNormalizer.Serialization.cs @@ -45,5 +45,21 @@ internal static UnknownLexicalNormalizer DeserializeUnknownLexicalNormalizer(Jso } return new UnknownLexicalNormalizer(odataType, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownLexicalNormalizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownLexicalNormalizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalTokenizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalTokenizer.Serialization.cs index 3faa58a638117..ebc50cff80c4c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalTokenizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownLexicalTokenizer.Serialization.cs @@ -45,5 +45,21 @@ internal static UnknownLexicalTokenizer DeserializeUnknownLexicalTokenizer(JsonE } return new UnknownLexicalTokenizer(odataType, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownLexicalTokenizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownLexicalTokenizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownScoringFunction.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownScoringFunction.Serialization.cs index 98af7b9b11b39..80857b89b901f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownScoringFunction.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownScoringFunction.Serialization.cs @@ -69,5 +69,21 @@ internal static UnknownScoringFunction DeserializeUnknownScoringFunction(JsonEle } return new UnknownScoringFunction(type, fieldName, boost, interpolation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownScoringFunction FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownScoringFunction(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSearchIndexerDataIdentity.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSearchIndexerDataIdentity.Serialization.cs index 2f22e7b6052fe..1adf83eccb4e5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSearchIndexerDataIdentity.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSearchIndexerDataIdentity.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownSearchIndexerDataIdentity DeserializeUnknownSearchIndexer } return new UnknownSearchIndexerDataIdentity(odataType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownSearchIndexerDataIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownSearchIndexerDataIdentity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSearchIndexerSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSearchIndexerSkill.Serialization.cs index 329250861e73e..9341da92887a2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSearchIndexerSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSearchIndexerSkill.Serialization.cs @@ -114,5 +114,21 @@ internal static UnknownSearchIndexerSkill DeserializeUnknownSearchIndexerSkill(J inputs, outputs); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownSearchIndexerSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownSearchIndexerSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSimilarity.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSimilarity.Serialization.cs index 51f0ec821efd0..77036c84c3674 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSimilarity.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownSimilarity.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownSimilarity DeserializeUnknownSimilarity(JsonElement eleme } return new UnknownSimilarity(odataType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownSimilarity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownSimilarity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownTokenFilter.Serialization.cs index 8b418de9a75a4..b785cfa38b2ce 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownTokenFilter.Serialization.cs @@ -45,5 +45,21 @@ internal static UnknownTokenFilter DeserializeUnknownTokenFilter(JsonElement ele } return new UnknownTokenFilter(odataType, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorQuery.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorQuery.Serialization.cs index 2dd073ce28d90..f3835f9f1c84f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorQuery.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorQuery.Serialization.cs @@ -93,5 +93,21 @@ internal static UnknownVectorQuery DeserializeUnknownVectorQuery(JsonElement ele } return new UnknownVectorQuery(kind, k, fields, exhaustive, oversampling); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownVectorQuery FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownVectorQuery(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchAlgorithmConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchAlgorithmConfiguration.Serialization.cs index 13be5e6a0c432..643e9cfc94eee 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchAlgorithmConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchAlgorithmConfiguration.Serialization.cs @@ -46,5 +46,21 @@ internal static UnknownVectorSearchAlgorithmConfiguration DeserializeUnknownVect } return new UnknownVectorSearchAlgorithmConfiguration(name, kind); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownVectorSearchAlgorithmConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownVectorSearchAlgorithmConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchCompressionConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchCompressionConfiguration.Serialization.cs index 0a9237c33f630..ed5d3031ea848 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchCompressionConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchCompressionConfiguration.Serialization.cs @@ -84,5 +84,21 @@ internal static UnknownVectorSearchCompressionConfiguration DeserializeUnknownVe } return new UnknownVectorSearchCompressionConfiguration(name, kind, rerankWithOriginalVectors, defaultOversampling); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownVectorSearchCompressionConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownVectorSearchCompressionConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchVectorizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchVectorizer.Serialization.cs index 5baccdc4a5fc0..8b045f0889da1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchVectorizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownVectorSearchVectorizer.Serialization.cs @@ -46,5 +46,21 @@ internal static UnknownVectorSearchVectorizer DeserializeUnknownVectorSearchVect } return new UnknownVectorSearchVectorizer(name, kind); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownVectorSearchVectorizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownVectorSearchVectorizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorQuery.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorQuery.Serialization.cs index 0ea7fbf0a7606..0977c884c4503 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorQuery.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorQuery.Serialization.cs @@ -56,5 +56,21 @@ internal static VectorQuery DeserializeVectorQuery(JsonElement element) } return UnknownVectorQuery.DeserializeUnknownVectorQuery(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VectorQuery FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVectorQuery(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearch.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearch.Serialization.cs index aa07d56e3d7b4..7da7fec70be1a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearch.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearch.Serialization.cs @@ -130,5 +130,21 @@ internal static VectorSearch DeserializeVectorSearch(JsonElement element) } return new VectorSearch(profiles ?? new ChangeTrackingList(), algorithms ?? new ChangeTrackingList(), vectorizers ?? new ChangeTrackingList(), compressions ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VectorSearch FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVectorSearch(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchAlgorithmConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchAlgorithmConfiguration.Serialization.cs index 4d4d158ce89af..37d390348a8c7 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchAlgorithmConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchAlgorithmConfiguration.Serialization.cs @@ -39,5 +39,21 @@ internal static VectorSearchAlgorithmConfiguration DeserializeVectorSearchAlgori } return UnknownVectorSearchAlgorithmConfiguration.DeserializeUnknownVectorSearchAlgorithmConfiguration(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VectorSearchAlgorithmConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVectorSearchAlgorithmConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchCompressionConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchCompressionConfiguration.Serialization.cs index 60d5fa769f270..d112c59543dcc 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchCompressionConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchCompressionConfiguration.Serialization.cs @@ -55,5 +55,21 @@ internal static VectorSearchCompressionConfiguration DeserializeVectorSearchComp } return UnknownVectorSearchCompressionConfiguration.DeserializeUnknownVectorSearchCompressionConfiguration(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VectorSearchCompressionConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVectorSearchCompressionConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchProfile.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchProfile.Serialization.cs index edefd65a4ea96..7eaf181619cb4 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchProfile.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchProfile.Serialization.cs @@ -67,5 +67,21 @@ internal static VectorSearchProfile DeserializeVectorSearchProfile(JsonElement e } return new VectorSearchProfile(name, algorithm, vectorizer, compression); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VectorSearchProfile FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVectorSearchProfile(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchVectorizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchVectorizer.Serialization.cs index 594d2d492028a..bb54f5f3e9f5e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchVectorizer.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorSearchVectorizer.Serialization.cs @@ -39,5 +39,21 @@ internal static VectorSearchVectorizer DeserializeVectorSearchVectorizer(JsonEle } return UnknownVectorSearchVectorizer.DeserializeUnknownVectorSearchVectorizer(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VectorSearchVectorizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVectorSearchVectorizer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorizableTextQuery.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorizableTextQuery.Serialization.cs index 683287de64054..d0c18c5326792 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorizableTextQuery.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorizableTextQuery.Serialization.cs @@ -107,5 +107,21 @@ internal static VectorizableTextQuery DeserializeVectorizableTextQuery(JsonEleme oversampling, text); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new VectorizableTextQuery FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVectorizableTextQuery(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorizedQuery.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorizedQuery.Serialization.cs index b848dc52a2c1e..cb08324beb9a5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorizedQuery.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/VectorizedQuery.Serialization.cs @@ -124,5 +124,21 @@ internal static VectorizedQuery DeserializeVectorizedQuery(JsonElement element) oversampling, vector); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new VectorizedQuery FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVectorizedQuery(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebApiSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebApiSkill.Serialization.cs index 1c7a9b8898ac5..111acc5c28f6e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebApiSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebApiSkill.Serialization.cs @@ -290,5 +290,21 @@ internal static WebApiSkill DeserializeWebApiSkill(JsonElement element) authResourceId, authIdentity); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebApiSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebApiSkill(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WordDelimiterTokenFilter.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WordDelimiterTokenFilter.Serialization.cs index 5387502f7e055..e228f925d6d1f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/WordDelimiterTokenFilter.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WordDelimiterTokenFilter.Serialization.cs @@ -218,5 +218,21 @@ internal static WordDelimiterTokenFilter DeserializeWordDelimiterTokenFilter(Jso stemEnglishPossessive, protectedWords ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WordDelimiterTokenFilter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWordDelimiterTokenFilter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/AclFailedEntry.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/AclFailedEntry.Serialization.cs index f3a60967ca225..c6e17b5200214 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/AclFailedEntry.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/AclFailedEntry.Serialization.cs @@ -40,5 +40,13 @@ internal static AclFailedEntry DeserializeAclFailedEntry(JsonElement element) } return new AclFailedEntry(name, type, errorMessage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AclFailedEntry FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAclFailedEntry(document.RootElement); + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystem.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystem.Serialization.cs index 9d911dbdf86da..610326a4840ab 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystem.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystem.Serialization.cs @@ -40,5 +40,13 @@ internal static FileSystem DeserializeFileSystem(JsonElement element) } return new FileSystem(name, lastModified, eTag); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FileSystem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileSystem(document.RootElement); + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.Serialization.cs index 44e136ea53867..de32288544068 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/FileSystemList.Serialization.cs @@ -39,5 +39,13 @@ internal static FileSystemList DeserializeFileSystemList(JsonElement element) } return new FileSystemList(filesystems ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FileSystemList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileSystemList(document.RootElement); + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/Path.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/Path.Serialization.cs index 9ce0ad81f1344..e1a9953c95a6b 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/Path.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/Path.Serialization.cs @@ -112,5 +112,13 @@ internal static Path DeserializePath(JsonElement element) isDirectory, etag); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Path FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePath(document.RootElement); + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.Serialization.cs index e188da0c104a1..6bec249d1a631 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/PathList.Serialization.cs @@ -39,5 +39,13 @@ internal static PathList DeserializePathList(JsonElement element) } return new PathList(paths ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PathList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePathList(document.RootElement); + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.Serialization.cs index 2e3fa1b749006..b03943f89014c 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/SetAccessControlRecursiveResponse.Serialization.cs @@ -69,5 +69,13 @@ internal static SetAccessControlRecursiveResponse DeserializeSetAccessControlRec } return new SetAccessControlRecursiveResponse(directoriesSuccessful, filesSuccessful, failureCount, failedEntries ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SetAccessControlRecursiveResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSetAccessControlRecursiveResponse(document.RootElement); + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/StorageError.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/StorageError.Serialization.cs index 8902ca3f72ab9..d4550b1008cc3 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/StorageError.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/StorageError.Serialization.cs @@ -43,5 +43,13 @@ internal static StorageError DeserializeStorageError(JsonElement element) } return new StorageError(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageError(document.RootElement); + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/StorageErrorError.Serialization.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/StorageErrorError.Serialization.cs index 2b3ac82953147..97a89146e3968 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/StorageErrorError.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Generated/Models/StorageErrorError.Serialization.cs @@ -50,5 +50,13 @@ internal static StorageErrorError DeserializeStorageErrorError(JsonElement eleme } return new StorageErrorError(code, message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageErrorError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageErrorError(document.RootElement); + } } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/SharePermission.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/SharePermission.Serialization.cs index 4adcb0247877d..a05f88135208c 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/SharePermission.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/SharePermission.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.Storage.Common; namespace Azure.Storage.Files.Shares.Models { @@ -37,5 +38,21 @@ internal static SharePermission DeserializeSharePermission(JsonElement element) } return new SharePermission(permission); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SharePermission FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSharePermission(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Common.Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/StorageError.Serialization.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/StorageError.Serialization.cs index 6ee101b65c87d..f4999a162c6bb 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/StorageError.Serialization.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/StorageError.Serialization.cs @@ -39,5 +39,13 @@ internal static StorageError DeserializeStorageError(JsonElement element) } return new StorageError(message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StorageError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStorageError(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.Serialization.cs index 2e0b745eb0264..4f76bf42af89e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.Serialization.cs @@ -121,12 +121,29 @@ internal static Activity DeserializeActivity(JsonElement element) return UnknownActivity.DeserializeUnknownActivity(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Activity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Activity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Activity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityDependency.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityDependency.Serialization.cs index 20b6579508bd6..3418021a6931b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityDependency.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityDependency.Serialization.cs @@ -69,12 +69,29 @@ internal static ActivityDependency DeserializeActivityDependency(JsonElement ele return new ActivityDependency(activity, dependencyConditions, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ActivityDependency FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeActivityDependency(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ActivityDependencyConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ActivityDependency model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ActivityDependency Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityPolicy.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityPolicy.Serialization.cs index 4930a61967cde..23bb406f8cfde 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityPolicy.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityPolicy.Serialization.cs @@ -124,12 +124,29 @@ internal static ActivityPolicy DeserializeActivityPolicy(JsonElement element) additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ActivityPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeActivityPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ActivityPolicyConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ActivityPolicy model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ActivityPolicy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityRun.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityRun.Serialization.cs index a0d90fbca4570..ba26b60756265 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityRun.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityRun.Serialization.cs @@ -147,12 +147,21 @@ internal static ActivityRun DeserializeActivityRun(JsonElement element) additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ActivityRun FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeActivityRun(document.RootElement); + } + internal partial class ActivityRunConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ActivityRun model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ActivityRun Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityRunsQueryResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityRunsQueryResponse.Serialization.cs index e37049ecc77e6..8dbeeb2de8a3e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityRunsQueryResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ActivityRunsQueryResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static ActivityRunsQueryResponse DeserializeActivityRunsQueryResponse(J return new ActivityRunsQueryResponse(value, continuationToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ActivityRunsQueryResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeActivityRunsQueryResponse(document.RootElement); + } + internal partial class ActivityRunsQueryResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ActivityRunsQueryResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ActivityRunsQueryResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AddDataFlowToDebugSessionResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AddDataFlowToDebugSessionResponse.Serialization.cs index b47042b2b8076..a914f026562dd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AddDataFlowToDebugSessionResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AddDataFlowToDebugSessionResponse.Serialization.cs @@ -32,12 +32,21 @@ internal static AddDataFlowToDebugSessionResponse DeserializeAddDataFlowToDebugS return new AddDataFlowToDebugSessionResponse(jobVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AddDataFlowToDebugSessionResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAddDataFlowToDebugSessionResponse(document.RootElement); + } + internal partial class AddDataFlowToDebugSessionResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AddDataFlowToDebugSessionResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override AddDataFlowToDebugSessionResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSLinkedService.Serialization.cs index 0ccee02505c1d..b16af7df56703 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSLinkedService.Serialization.cs @@ -293,12 +293,29 @@ internal static AmazonMWSLinkedService DeserializeAmazonMWSLinkedService(JsonEle encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonMWSLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonMWSLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonMWSLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonMWSLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonMWSLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSObjectDataset.Serialization.cs index e047ed6a0212b..19dad07ed59e5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static AmazonMWSObjectDataset DeserializeAmazonMWSObjectDataset(JsonEle tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonMWSObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonMWSObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonMWSObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonMWSObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonMWSObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSSource.Serialization.cs index 895d43eb75f2b..3c2c254a5e66a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonMWSSource.Serialization.cs @@ -149,12 +149,29 @@ internal static AmazonMWSSource DeserializeAmazonMWSSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonMWSSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonMWSSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonMWSSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonMWSSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonMWSSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs index 288f54d7fe186..be482bbce9541 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs @@ -202,12 +202,29 @@ internal static AmazonRdsForOracleLinkedService DeserializeAmazonRdsForOracleLin encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonRdsForOracleLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRdsForOracleLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRdsForOracleLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRdsForOracleLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRdsForOracleLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOraclePartitionSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOraclePartitionSettings.Serialization.cs index 68850ad1cbdc2..978806ab7b482 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOraclePartitionSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOraclePartitionSettings.Serialization.cs @@ -93,12 +93,29 @@ internal static AmazonRdsForOraclePartitionSettings DeserializeAmazonRdsForOracl return new AmazonRdsForOraclePartitionSettings(partitionNames, partitionColumnName, partitionUpperBound, partitionLowerBound); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AmazonRdsForOraclePartitionSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRdsForOraclePartitionSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRdsForOraclePartitionSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRdsForOraclePartitionSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRdsForOraclePartitionSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.Serialization.cs index 65543e8143bce..209063dffe76e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleSource.Serialization.cs @@ -181,12 +181,29 @@ internal static AmazonRdsForOracleSource DeserializeAmazonRdsForOracleSource(Jso additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonRdsForOracleSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRdsForOracleSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRdsForOracleSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRdsForOracleSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRdsForOracleSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleTableDataset.Serialization.cs index d12d857793538..afbe4f5df989b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForOracleTableDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static AmazonRdsForOracleTableDataset DeserializeAmazonRdsForOracleTabl table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonRdsForOracleTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRdsForOracleTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRdsForOracleTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRdsForOracleTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRdsForOracleTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerLinkedService.Serialization.cs index e0b798a8a4df0..cfbdda6af4b18 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerLinkedService.Serialization.cs @@ -234,12 +234,29 @@ internal static AmazonRdsForSqlServerLinkedService DeserializeAmazonRdsForSqlSer alwaysEncryptedSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonRdsForSqlServerLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRdsForSqlServerLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRdsForSqlServerLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRdsForSqlServerLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRdsForSqlServerLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.Serialization.cs index b7e5288991a91..8f66ecd8bf7a2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.Serialization.cs @@ -245,12 +245,29 @@ internal static AmazonRdsForSqlServerSource DeserializeAmazonRdsForSqlServerSour partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonRdsForSqlServerSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRdsForSqlServerSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRdsForSqlServerSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRdsForSqlServerSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRdsForSqlServerSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerTableDataset.Serialization.cs index f602a54f19883..ba5463d95164c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerTableDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static AmazonRdsForSqlServerTableDataset DeserializeAmazonRdsForSqlServ table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonRdsForSqlServerTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRdsForSqlServerTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRdsForSqlServerTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRdsForSqlServerTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRdsForSqlServerTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftLinkedService.Serialization.cs index 40cdb01d6077b..9d4ad6339ee62 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftLinkedService.Serialization.cs @@ -243,12 +243,29 @@ internal static AmazonRedshiftLinkedService DeserializeAmazonRedshiftLinkedServi encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonRedshiftLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRedshiftLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRedshiftLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRedshiftLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRedshiftLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftSource.Serialization.cs index caab627e01913..7b58a69f905b7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftSource.Serialization.cs @@ -165,12 +165,29 @@ internal static AmazonRedshiftSource DeserializeAmazonRedshiftSource(JsonElement redshiftUnloadSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonRedshiftSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRedshiftSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRedshiftSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRedshiftSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRedshiftSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftTableDataset.Serialization.cs index c28ff896b33ce..b28fd1ae36b07 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRedshiftTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static AmazonRedshiftTableDataset DeserializeAmazonRedshiftTableDataset schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonRedshiftTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonRedshiftTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonRedshiftTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonRedshiftTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonRedshiftTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3Dataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3Dataset.Serialization.cs index 330d20f964733..1ccb68d1cbaaa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3Dataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3Dataset.Serialization.cs @@ -323,12 +323,29 @@ internal static AmazonS3Dataset DeserializeAmazonS3Dataset(JsonElement element) compression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonS3Dataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonS3Dataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonS3DatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonS3Dataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonS3Dataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3LinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3LinkedService.Serialization.cs index 50dc34049567a..5e0e587991c24 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3LinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3LinkedService.Serialization.cs @@ -257,12 +257,29 @@ internal static AmazonS3LinkedService DeserializeAmazonS3LinkedService(JsonEleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonS3LinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonS3LinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonS3LinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonS3LinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonS3LinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3Location.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3Location.Serialization.cs index 7a3f73d2fb27c..12e2b382d47dd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3Location.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3Location.Serialization.cs @@ -117,12 +117,29 @@ internal static AmazonS3Location DeserializeAmazonS3Location(JsonElement element version); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonS3Location FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonS3Location(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonS3LocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonS3Location model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonS3Location Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.Serialization.cs index 7739ff99bd1c4..adff25e149b4d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.Serialization.cs @@ -229,12 +229,29 @@ internal static AmazonS3ReadSettings DeserializeAmazonS3ReadSettings(JsonElement modifiedDatetimeEnd); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AmazonS3ReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAmazonS3ReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AmazonS3ReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AmazonS3ReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AmazonS3ReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AppFiguresLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AppFiguresLinkedService.Serialization.cs index d3ebb6640059f..3847082b5d672 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AppFiguresLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AppFiguresLinkedService.Serialization.cs @@ -188,12 +188,29 @@ internal static AppFiguresLinkedService DeserializeAppFiguresLinkedService(JsonE clientKey); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AppFiguresLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAppFiguresLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AppFiguresLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AppFiguresLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AppFiguresLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AppendVariableActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AppendVariableActivity.Serialization.cs index b8e8f0040a313..b37874d148826 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AppendVariableActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AppendVariableActivity.Serialization.cs @@ -201,12 +201,29 @@ internal static AppendVariableActivity DeserializeAppendVariableActivity(JsonEle value); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AppendVariableActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAppendVariableActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AppendVariableActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AppendVariableActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AppendVariableActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ArtifactRenameRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ArtifactRenameRequest.Serialization.cs index de610cae93ddb..20b442e8aa736 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ArtifactRenameRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ArtifactRenameRequest.Serialization.cs @@ -26,12 +26,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ArtifactRenameRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ArtifactRenameRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ArtifactRenameRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AsanaLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AsanaLinkedService.Serialization.cs index 296670af706de..926159a86c542 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AsanaLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AsanaLinkedService.Serialization.cs @@ -186,12 +186,29 @@ internal static AsanaLinkedService DeserializeAsanaLinkedService(JsonElement ele encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AsanaLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAsanaLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AsanaLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AsanaLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AsanaLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AutoPauseProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AutoPauseProperties.Serialization.cs index 1b43d2842b95a..ea082f4fb6923 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AutoPauseProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AutoPauseProperties.Serialization.cs @@ -63,12 +63,29 @@ internal static AutoPauseProperties DeserializeAutoPauseProperties(JsonElement e return new AutoPauseProperties(delayInMinutes, enabled); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AutoPauseProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAutoPauseProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AutoPausePropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AutoPauseProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AutoPauseProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AutoScaleProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AutoScaleProperties.Serialization.cs index 569679b62203a..8a00994d3ee52 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AutoScaleProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AutoScaleProperties.Serialization.cs @@ -78,12 +78,29 @@ internal static AutoScaleProperties DeserializeAutoScaleProperties(JsonElement e return new AutoScaleProperties(minNodeCount, enabled, maxNodeCount); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AutoScaleProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAutoScaleProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AutoScalePropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AutoScaleProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AutoScaleProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroDataset.Serialization.cs index 241c77be77583..53c6ffce70a2d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static AvroDataset DeserializeAvroDataset(JsonElement element) avroCompressionLevel); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvroDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvroDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AvroDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvroDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AvroDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroFormat.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroFormat.Serialization.cs index 87421c6cb2b3a..82edb64b76a0f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroFormat.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroFormat.Serialization.cs @@ -81,12 +81,29 @@ internal static AvroFormat DeserializeAvroFormat(JsonElement element) return new AvroFormat(type, serializer, deserializer, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvroFormat FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvroFormat(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AvroFormatConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvroFormat model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AvroFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroSink.Serialization.cs index d39b1e1cf667e..83c09841fb013 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroSink.Serialization.cs @@ -165,12 +165,29 @@ internal static AvroSink DeserializeAvroSink(JsonElement element) formatSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvroSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvroSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AvroSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvroSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AvroSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroSource.Serialization.cs index f06f6a950fdae..5514ca1fffb61 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroSource.Serialization.cs @@ -133,12 +133,29 @@ internal static AvroSource DeserializeAvroSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvroSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvroSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AvroSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvroSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AvroSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroWriteSettings.Serialization.cs index ad8bc02947656..5966258e4425f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AvroWriteSettings.Serialization.cs @@ -109,12 +109,29 @@ internal static AvroWriteSettings DeserializeAvroWriteSettings(JsonElement eleme fileNamePrefix); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AvroWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvroWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AvroWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AvroWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AvroWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBatchLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBatchLinkedService.Serialization.cs index 65606ef850f53..03d27330e4883 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBatchLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBatchLinkedService.Serialization.cs @@ -245,12 +245,29 @@ internal static AzureBatchLinkedService DeserializeAzureBatchLinkedService(JsonE credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBatchLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBatchLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBatchLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBatchLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBatchLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobDataset.Serialization.cs index 7ac2a22764b8b..497b957173363 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobDataset.Serialization.cs @@ -314,12 +314,29 @@ internal static AzureBlobDataset DeserializeAzureBlobDataset(JsonElement element compression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSDataset.Serialization.cs index 2a3b5c006b4ee..82dda39d0d841 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSDataset.Serialization.cs @@ -266,12 +266,29 @@ internal static AzureBlobFSDataset DeserializeAzureBlobFSDataset(JsonElement ele compression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobFSDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobFSDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobFSDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobFSDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobFSDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSLinkedService.Serialization.cs index 41e58b1a62a83..09a31f55df282 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSLinkedService.Serialization.cs @@ -353,12 +353,29 @@ internal static AzureBlobFSLinkedService DeserializeAzureBlobFSLinkedService(Jso credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobFSLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobFSLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobFSLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobFSLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobFSLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSLocation.Serialization.cs index 06e97e8cfca5a..e39b7266221ff 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSLocation.Serialization.cs @@ -96,12 +96,29 @@ internal static AzureBlobFSLocation DeserializeAzureBlobFSLocation(JsonElement e return new AzureBlobFSLocation(type, folderPath, fileName, additionalProperties, fileSystem); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobFSLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobFSLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobFSLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobFSLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobFSLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSReadSettings.Serialization.cs index 087217a5d545c..17bfbc6c4515c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSReadSettings.Serialization.cs @@ -213,12 +213,29 @@ internal static AzureBlobFSReadSettings DeserializeAzureBlobFSReadSettings(JsonE modifiedDatetimeEnd); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobFSReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobFSReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobFSReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobFSReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobFSReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSSink.Serialization.cs index dc6fa902b81a3..b50091c6ae081 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSSink.Serialization.cs @@ -149,12 +149,29 @@ internal static AzureBlobFSSink DeserializeAzureBlobFSSink(JsonElement element) copyBehavior); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobFSSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobFSSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobFSSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobFSSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobFSSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSSource.Serialization.cs index a5a59cbd8408c..2b6304e683ea8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSSource.Serialization.cs @@ -149,12 +149,29 @@ internal static AzureBlobFSSource DeserializeAzureBlobFSSource(JsonElement eleme recursive); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobFSSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobFSSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobFSSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobFSSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobFSSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSWriteSettings.Serialization.cs index 16f70007fc606..8cec7eb900a90 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobFSWriteSettings.Serialization.cs @@ -96,12 +96,29 @@ internal static AzureBlobFSWriteSettings DeserializeAzureBlobFSWriteSettings(Jso return new AzureBlobFSWriteSettings(type, maxConcurrentConnections, copyBehavior, additionalProperties, blockSizeInMB); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobFSWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobFSWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobFSWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobFSWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobFSWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageLinkedService.Serialization.cs index 4448e4987be4f..504c71a40b1b0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageLinkedService.Serialization.cs @@ -373,12 +373,29 @@ internal static AzureBlobStorageLinkedService DeserializeAzureBlobStorageLinkedS containerUri); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobStorageLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobStorageLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobStorageLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobStorageLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobStorageLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageLocation.Serialization.cs index 2f7d4bd515ccb..1165112a649ef 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageLocation.Serialization.cs @@ -96,12 +96,29 @@ internal static AzureBlobStorageLocation DeserializeAzureBlobStorageLocation(Jso return new AzureBlobStorageLocation(type, folderPath, fileName, additionalProperties, container); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobStorageLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobStorageLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobStorageLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobStorageLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobStorageLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.Serialization.cs index 079b9a32ba5d8..9e100abb36306 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.Serialization.cs @@ -229,12 +229,29 @@ internal static AzureBlobStorageReadSettings DeserializeAzureBlobStorageReadSett modifiedDatetimeEnd); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobStorageReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobStorageReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobStorageReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobStorageReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobStorageReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageWriteSettings.Serialization.cs index 23583fd818848..9175e4b8e3a8e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageWriteSettings.Serialization.cs @@ -96,12 +96,29 @@ internal static AzureBlobStorageWriteSettings DeserializeAzureBlobStorageWriteSe return new AzureBlobStorageWriteSettings(type, maxConcurrentConnections, copyBehavior, additionalProperties, blockSizeInMB); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobStorageWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureBlobStorageWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureBlobStorageWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureBlobStorageWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureBlobStorageWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerCommandActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerCommandActivity.Serialization.cs index b8cdc00ed1ba1..011a6475e83b5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerCommandActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerCommandActivity.Serialization.cs @@ -230,12 +230,29 @@ internal static AzureDataExplorerCommandActivity DeserializeAzureDataExplorerCom commandTimeout); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataExplorerCommandActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataExplorerCommandActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataExplorerCommandActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataExplorerCommandActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataExplorerCommandActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerLinkedService.Serialization.cs index c04496489a6ff..3b7b4b1686d5a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerLinkedService.Serialization.cs @@ -243,12 +243,29 @@ internal static AzureDataExplorerLinkedService DeserializeAzureDataExplorerLinke credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataExplorerLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataExplorerLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataExplorerLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataExplorerLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataExplorerLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerSink.Serialization.cs index 63599812dc1a9..bffefcbe5d5f1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerSink.Serialization.cs @@ -181,12 +181,29 @@ internal static AzureDataExplorerSink DeserializeAzureDataExplorerSink(JsonEleme flushImmediately); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataExplorerSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataExplorerSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataExplorerSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataExplorerSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataExplorerSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerSource.Serialization.cs index 2982d0133c6b6..78bb19819b41f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerSource.Serialization.cs @@ -158,12 +158,29 @@ internal static AzureDataExplorerSource DeserializeAzureDataExplorerSource(JsonE additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataExplorerSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataExplorerSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataExplorerSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataExplorerSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataExplorerSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerTableDataset.Serialization.cs index 3e7d1eb174007..4e91ea74866cc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataExplorerTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static AzureDataExplorerTableDataset DeserializeAzureDataExplorerTableD table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataExplorerTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataExplorerTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataExplorerTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataExplorerTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataExplorerTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.Serialization.cs index 08f2fbab89215..abdd6a8d23d0a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.Serialization.cs @@ -275,12 +275,29 @@ internal static AzureDataLakeAnalyticsLinkedService DeserializeAzureDataLakeAnal encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataLakeAnalyticsLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeAnalyticsLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataLakeAnalyticsLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataLakeAnalyticsLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataLakeAnalyticsLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreDataset.Serialization.cs index b7394d3ec853a..3915948ddd2f3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreDataset.Serialization.cs @@ -266,12 +266,29 @@ internal static AzureDataLakeStoreDataset DeserializeAzureDataLakeStoreDataset(J compression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataLakeStoreDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeStoreDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataLakeStoreDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataLakeStoreDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataLakeStoreDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreLinkedService.Serialization.cs index c890d14b2764c..cf20e40c094a0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreLinkedService.Serialization.cs @@ -314,12 +314,29 @@ internal static AzureDataLakeStoreLinkedService DeserializeAzureDataLakeStoreLin credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataLakeStoreLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeStoreLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataLakeStoreLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataLakeStoreLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataLakeStoreLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreLocation.Serialization.cs index 629fe32f5e419..07586bedda6e3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreLocation.Serialization.cs @@ -81,12 +81,29 @@ internal static AzureDataLakeStoreLocation DeserializeAzureDataLakeStoreLocation return new AzureDataLakeStoreLocation(type, folderPath, fileName, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataLakeStoreLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeStoreLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataLakeStoreLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataLakeStoreLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataLakeStoreLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreReadSettings.Serialization.cs index ddd91ffe986e0..33dd3ab3255ad 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreReadSettings.Serialization.cs @@ -245,12 +245,29 @@ internal static AzureDataLakeStoreReadSettings DeserializeAzureDataLakeStoreRead modifiedDatetimeEnd); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataLakeStoreReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeStoreReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataLakeStoreReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataLakeStoreReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataLakeStoreReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreSink.Serialization.cs index 0022dfce10fc2..548614b3ca02b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreSink.Serialization.cs @@ -165,12 +165,29 @@ internal static AzureDataLakeStoreSink DeserializeAzureDataLakeStoreSink(JsonEle enableAdlsSingleFileParallel); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataLakeStoreSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeStoreSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataLakeStoreSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataLakeStoreSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataLakeStoreSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreSource.Serialization.cs index 270344b38adb6..64de11a3e4333 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreSource.Serialization.cs @@ -117,12 +117,29 @@ internal static AzureDataLakeStoreSource DeserializeAzureDataLakeStoreSource(Jso recursive); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataLakeStoreSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeStoreSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataLakeStoreSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataLakeStoreSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataLakeStoreSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreWriteSettings.Serialization.cs index 01c9756a1aeab..fcf1b0e8fdac7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDataLakeStoreWriteSettings.Serialization.cs @@ -96,12 +96,29 @@ internal static AzureDataLakeStoreWriteSettings DeserializeAzureDataLakeStoreWri return new AzureDataLakeStoreWriteSettings(type, maxConcurrentConnections, copyBehavior, additionalProperties, expiryDateTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDataLakeStoreWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDataLakeStoreWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDataLakeStoreWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDataLakeStoreWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDataLakeStoreWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeDataset.Serialization.cs index de3d2898d6d90..4d7caf65f1ba2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static AzureDatabricksDeltaLakeDataset DeserializeAzureDatabricksDeltaL database); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDatabricksDeltaLakeDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDatabricksDeltaLakeDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDatabricksDeltaLakeDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDatabricksDeltaLakeDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDatabricksDeltaLakeDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeExportCommand.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeExportCommand.Serialization.cs index defc134c14a94..f959cf83a679a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeExportCommand.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeExportCommand.Serialization.cs @@ -81,12 +81,29 @@ internal static AzureDatabricksDeltaLakeExportCommand DeserializeAzureDatabricks return new AzureDatabricksDeltaLakeExportCommand(type, additionalProperties, dateFormat, timestampFormat); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDatabricksDeltaLakeExportCommand FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDatabricksDeltaLakeExportCommand(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDatabricksDeltaLakeExportCommandConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDatabricksDeltaLakeExportCommand model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDatabricksDeltaLakeExportCommand Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeImportCommand.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeImportCommand.Serialization.cs index fe03c91a92aa1..11070d5f438ef 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeImportCommand.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeImportCommand.Serialization.cs @@ -81,12 +81,29 @@ internal static AzureDatabricksDeltaLakeImportCommand DeserializeAzureDatabricks return new AzureDatabricksDeltaLakeImportCommand(type, additionalProperties, dateFormat, timestampFormat); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDatabricksDeltaLakeImportCommand FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDatabricksDeltaLakeImportCommand(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDatabricksDeltaLakeImportCommandConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDatabricksDeltaLakeImportCommand model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDatabricksDeltaLakeImportCommand Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.Serialization.cs index e1d7a469d8d6b..0b174113242b4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.Serialization.cs @@ -227,12 +227,29 @@ internal static AzureDatabricksDeltaLakeLinkedService DeserializeAzureDatabricks credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDatabricksDeltaLakeLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDatabricksDeltaLakeLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDatabricksDeltaLakeLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDatabricksDeltaLakeLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDatabricksDeltaLakeLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeSink.Serialization.cs index 1cf7b9c83bb92..6b3b12a5b2c2e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeSink.Serialization.cs @@ -165,12 +165,29 @@ internal static AzureDatabricksDeltaLakeSink DeserializeAzureDatabricksDeltaLake importSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDatabricksDeltaLakeSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDatabricksDeltaLakeSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDatabricksDeltaLakeSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDatabricksDeltaLakeSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDatabricksDeltaLakeSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeSource.Serialization.cs index 01a9888cde73f..17c33e0ead56a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksDeltaLakeSource.Serialization.cs @@ -133,12 +133,29 @@ internal static AzureDatabricksDeltaLakeSource DeserializeAzureDatabricksDeltaLa exportSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDatabricksDeltaLakeSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDatabricksDeltaLakeSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDatabricksDeltaLakeSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDatabricksDeltaLakeSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDatabricksDeltaLakeSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs index 20df3d8086052..1efd1956fbd82 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs @@ -527,12 +527,29 @@ internal static AzureDatabricksLinkedService DeserializeAzureDatabricksLinkedSer credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureDatabricksLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureDatabricksLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureDatabricksLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureDatabricksLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureDatabricksLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureEntityResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureEntityResource.Serialization.cs index 5d0d5d9057816..ce08e13005dad 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureEntityResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureEntityResource.Serialization.cs @@ -57,12 +57,29 @@ internal static AzureEntityResource DeserializeAzureEntityResource(JsonElement e return new AzureEntityResource(id, name, type, etag); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureEntityResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureEntityResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureEntityResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureEntityResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureEntityResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageLinkedService.Serialization.cs index dbf321032a45f..1c70a3816b24a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageLinkedService.Serialization.cs @@ -314,12 +314,29 @@ internal static AzureFileStorageLinkedService DeserializeAzureFileStorageLinkedS encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureFileStorageLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureFileStorageLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureFileStorageLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureFileStorageLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureFileStorageLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageLocation.Serialization.cs index 601448d16123d..8d347caf65816 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageLocation.Serialization.cs @@ -81,12 +81,29 @@ internal static AzureFileStorageLocation DeserializeAzureFileStorageLocation(Jso return new AzureFileStorageLocation(type, folderPath, fileName, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureFileStorageLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureFileStorageLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureFileStorageLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureFileStorageLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureFileStorageLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.Serialization.cs index 9eee840e2ed90..0d40e9d10db38 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.Serialization.cs @@ -229,12 +229,29 @@ internal static AzureFileStorageReadSettings DeserializeAzureFileStorageReadSett modifiedDatetimeEnd); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureFileStorageReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureFileStorageReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureFileStorageReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureFileStorageReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureFileStorageReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageWriteSettings.Serialization.cs index 30df2325340a3..b515977b73581 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageWriteSettings.Serialization.cs @@ -81,12 +81,29 @@ internal static AzureFileStorageWriteSettings DeserializeAzureFileStorageWriteSe return new AzureFileStorageWriteSettings(type, maxConcurrentConnections, copyBehavior, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureFileStorageWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureFileStorageWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureFileStorageWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureFileStorageWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureFileStorageWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFunctionActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFunctionActivity.Serialization.cs index 97edfbfd73e55..89c3be8ba64fb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFunctionActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFunctionActivity.Serialization.cs @@ -255,12 +255,29 @@ internal static AzureFunctionActivity DeserializeAzureFunctionActivity(JsonEleme body); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureFunctionActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureFunctionActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureFunctionActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureFunctionActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureFunctionActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFunctionLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFunctionLinkedService.Serialization.cs index 21558821e7df4..100fad16708f9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFunctionLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFunctionLinkedService.Serialization.cs @@ -250,12 +250,29 @@ internal static AzureFunctionLinkedService DeserializeAzureFunctionLinkedService authentication); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureFunctionLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureFunctionLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureFunctionLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureFunctionLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureFunctionLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureKeyVaultLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureKeyVaultLinkedService.Serialization.cs index 9cd8ff141ef18..2f228e7b51dfd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureKeyVaultLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureKeyVaultLinkedService.Serialization.cs @@ -186,12 +186,29 @@ internal static AzureKeyVaultLinkedService DeserializeAzureKeyVaultLinkedService credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureKeyVaultLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureKeyVaultLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureKeyVaultLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureKeyVaultLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureKeyVaultLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureKeyVaultSecretReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureKeyVaultSecretReference.Serialization.cs index f399a30a14344..73346de2107de 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureKeyVaultSecretReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureKeyVaultSecretReference.Serialization.cs @@ -72,12 +72,29 @@ internal static AzureKeyVaultSecretReference DeserializeAzureKeyVaultSecretRefer return new AzureKeyVaultSecretReference(type, store, secretName, secretVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureKeyVaultSecretReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureKeyVaultSecretReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureKeyVaultSecretReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureKeyVaultSecretReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureKeyVaultSecretReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLBatchExecutionActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLBatchExecutionActivity.Serialization.cs index df732b3eb3c69..5575ce0f4ae64 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLBatchExecutionActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLBatchExecutionActivity.Serialization.cs @@ -298,12 +298,29 @@ internal static AzureMLBatchExecutionActivity DeserializeAzureMLBatchExecutionAc webServiceInputs ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMLBatchExecutionActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMLBatchExecutionActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMLBatchExecutionActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMLBatchExecutionActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMLBatchExecutionActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLExecutePipelineActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLExecutePipelineActivity.Serialization.cs index 69afe33d67449..996fdc6416a25 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLExecutePipelineActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLExecutePipelineActivity.Serialization.cs @@ -278,12 +278,29 @@ internal static AzureMLExecutePipelineActivity DeserializeAzureMLExecutePipeline continueOnStepFailure); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMLExecutePipelineActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMLExecutePipelineActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMLExecutePipelineActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMLExecutePipelineActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMLExecutePipelineActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLLinkedService.Serialization.cs index 0a83f24905596..e77fb186cef96 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLLinkedService.Serialization.cs @@ -275,12 +275,29 @@ internal static AzureMLLinkedService DeserializeAzureMLLinkedService(JsonElement authentication); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMLLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMLLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMLLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMLLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMLLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLServiceLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLServiceLinkedService.Serialization.cs index 36d75506c3a56..3abed22429413 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLServiceLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLServiceLinkedService.Serialization.cs @@ -268,12 +268,29 @@ internal static AzureMLServiceLinkedService DeserializeAzureMLServiceLinkedServi encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMLServiceLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMLServiceLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMLServiceLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMLServiceLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMLServiceLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLUpdateResourceActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLUpdateResourceActivity.Serialization.cs index afb313e44be38..3cc84c50d602c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLUpdateResourceActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLUpdateResourceActivity.Serialization.cs @@ -232,12 +232,29 @@ internal static AzureMLUpdateResourceActivity DeserializeAzureMLUpdateResourceAc trainedModelFilePath); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMLUpdateResourceActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMLUpdateResourceActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMLUpdateResourceActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMLUpdateResourceActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMLUpdateResourceActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLWebServiceFile.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLWebServiceFile.Serialization.cs index ca9431d042600..6174ff82e76c0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLWebServiceFile.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMLWebServiceFile.Serialization.cs @@ -49,12 +49,29 @@ internal static AzureMLWebServiceFile DeserializeAzureMLWebServiceFile(JsonEleme return new AzureMLWebServiceFile(filePath, linkedServiceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AzureMLWebServiceFile FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMLWebServiceFile(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMLWebServiceFileConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMLWebServiceFile model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMLWebServiceFile Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBLinkedService.Serialization.cs index 47a6f294d2430..17b6a80f6ce88 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBLinkedService.Serialization.cs @@ -209,12 +209,29 @@ internal static AzureMariaDBLinkedService DeserializeAzureMariaDBLinkedService(J encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMariaDBLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMariaDBLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMariaDBLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMariaDBLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMariaDBLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBSource.Serialization.cs index 69fc8de676e7d..3dd43cd9f4701 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBSource.Serialization.cs @@ -149,12 +149,29 @@ internal static AzureMariaDBSource DeserializeAzureMariaDBSource(JsonElement ele query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMariaDBSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMariaDBSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMariaDBSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMariaDBSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMariaDBSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBTableDataset.Serialization.cs index 1606d2bd4f845..9b9da5a5fe9a0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMariaDBTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static AzureMariaDBTableDataset DeserializeAzureMariaDBTableDataset(Jso tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMariaDBTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMariaDBTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMariaDBTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMariaDBTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMariaDBTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlLinkedService.Serialization.cs index 5b8e8180cb7ed..dc9b176ea1ac3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlLinkedService.Serialization.cs @@ -202,12 +202,29 @@ internal static AzureMySqlLinkedService DeserializeAzureMySqlLinkedService(JsonE encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMySqlLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMySqlLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMySqlLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMySqlLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMySqlLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlSink.Serialization.cs index 136f3b523583e..f8970b1b8343f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlSink.Serialization.cs @@ -149,12 +149,29 @@ internal static AzureMySqlSink DeserializeAzureMySqlSink(JsonElement element) preCopyScript); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMySqlSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMySqlSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMySqlSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMySqlSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMySqlSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlSource.Serialization.cs index b4ca6d83135e1..4038036e655b7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlSource.Serialization.cs @@ -149,12 +149,29 @@ internal static AzureMySqlSource DeserializeAzureMySqlSource(JsonElement element query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMySqlSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMySqlSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMySqlSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMySqlSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMySqlSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlTableDataset.Serialization.cs index fce4c6eaccfe7..d7415ee5401a7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureMySqlTableDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static AzureMySqlTableDataset DeserializeAzureMySqlTableDataset(JsonEle table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureMySqlTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureMySqlTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureMySqlTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureMySqlTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureMySqlTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs index a8955451a7618..e63fe482e8c9f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs @@ -209,12 +209,29 @@ internal static AzurePostgreSqlLinkedService DeserializeAzurePostgreSqlLinkedSer encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzurePostgreSqlLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzurePostgreSqlLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzurePostgreSqlLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzurePostgreSqlLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzurePostgreSqlLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.Serialization.cs index 8cc33311ec075..1f56645c2fd69 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSink.Serialization.cs @@ -149,12 +149,29 @@ internal static AzurePostgreSqlSink DeserializeAzurePostgreSqlSink(JsonElement e preCopyScript); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzurePostgreSqlSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzurePostgreSqlSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzurePostgreSqlSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzurePostgreSqlSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzurePostgreSqlSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSource.Serialization.cs index 4e38c0faf8b8a..7fba40e379bf8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlSource.Serialization.cs @@ -149,12 +149,29 @@ internal static AzurePostgreSqlSource DeserializeAzurePostgreSqlSource(JsonEleme query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzurePostgreSqlSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzurePostgreSqlSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzurePostgreSqlSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzurePostgreSqlSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzurePostgreSqlSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlTableDataset.Serialization.cs index f8ba19750768e..a8b0ac6436aaa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzurePostgreSqlTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static AzurePostgreSqlTableDataset DeserializeAzurePostgreSqlTableDatas schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzurePostgreSqlTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzurePostgreSqlTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzurePostgreSqlTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzurePostgreSqlTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzurePostgreSqlTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureQueueSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureQueueSink.Serialization.cs index cac2376b88215..eee70d4896c46 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureQueueSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureQueueSink.Serialization.cs @@ -133,12 +133,29 @@ internal static AzureQueueSink DeserializeAzureQueueSink(JsonElement element) additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureQueueSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureQueueSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureQueueSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureQueueSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureQueueSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchIndexDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchIndexDataset.Serialization.cs index 58bb003bb16f9..11880407cfbd0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchIndexDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchIndexDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static AzureSearchIndexDataset DeserializeAzureSearchIndexDataset(JsonE indexName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSearchIndexDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSearchIndexDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSearchIndexDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSearchIndexDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSearchIndexDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchIndexSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchIndexSink.Serialization.cs index 4c273138c6a52..e8cc1ed9921c6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchIndexSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchIndexSink.Serialization.cs @@ -149,12 +149,29 @@ internal static AzureSearchIndexSink DeserializeAzureSearchIndexSink(JsonElement writeBehavior); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSearchIndexSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSearchIndexSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSearchIndexSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSearchIndexSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSearchIndexSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchLinkedService.Serialization.cs index 4c52dba0f7796..c0629a1278de6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSearchLinkedService.Serialization.cs @@ -202,12 +202,29 @@ internal static AzureSearchLinkedService DeserializeAzureSearchLinkedService(Jso encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSearchLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSearchLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSearchLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSearchLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSearchLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDWLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDWLinkedService.Serialization.cs index ef3dd9de01805..81cc1d2523505 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDWLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDWLinkedService.Serialization.cs @@ -282,12 +282,29 @@ internal static AzureSqlDWLinkedService DeserializeAzureSqlDWLinkedService(JsonE credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSqlDWLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSqlDWLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSqlDWLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSqlDWLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSqlDWLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDWTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDWTableDataset.Serialization.cs index c62ad3c1ba737..07fb182619628 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDWTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDWTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static AzureSqlDWTableDataset DeserializeAzureSqlDWTableDataset(JsonEle table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSqlDWTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSqlDWTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSqlDWTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSqlDWTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSqlDWTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDatabaseLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDatabaseLinkedService.Serialization.cs index c0302f51d829d..7ddd117915c91 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDatabaseLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlDatabaseLinkedService.Serialization.cs @@ -298,12 +298,29 @@ internal static AzureSqlDatabaseLinkedService DeserializeAzureSqlDatabaseLinkedS credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSqlDatabaseLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSqlDatabaseLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSqlDatabaseLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSqlDatabaseLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSqlDatabaseLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlMILinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlMILinkedService.Serialization.cs index f911486e428c6..7cc1adaa2eb3d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlMILinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlMILinkedService.Serialization.cs @@ -298,12 +298,29 @@ internal static AzureSqlMILinkedService DeserializeAzureSqlMILinkedService(JsonE credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSqlMILinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSqlMILinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSqlMILinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSqlMILinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSqlMILinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlMITableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlMITableDataset.Serialization.cs index 063ba03e65961..1af01ceceeb49 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlMITableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlMITableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static AzureSqlMITableDataset DeserializeAzureSqlMITableDataset(JsonEle table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSqlMITableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSqlMITableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSqlMITableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSqlMITableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSqlMITableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.Serialization.cs index 2cd848411161e..e06b92510e2cf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.Serialization.cs @@ -229,12 +229,29 @@ internal static AzureSqlSink DeserializeAzureSqlSink(JsonElement element) tableOption); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSqlSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSqlSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSqlSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSqlSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSqlSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.Serialization.cs index 2478e73b62984..008a25f9570b1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.Serialization.cs @@ -245,12 +245,29 @@ internal static AzureSqlSource DeserializeAzureSqlSource(JsonElement element) partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSqlSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSqlSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSqlSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSqlSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSqlSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlTableDataset.Serialization.cs index fa8a9c576013b..2bbd498e7e8e0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static AzureSqlTableDataset DeserializeAzureSqlTableDataset(JsonElement table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSqlTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSqlTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSqlTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSqlTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSqlTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureStorageLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureStorageLinkedService.Serialization.cs index 96f96d61dfd8e..0f6c382d907d0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureStorageLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureStorageLinkedService.Serialization.cs @@ -237,12 +237,29 @@ internal static AzureStorageLinkedService DeserializeAzureStorageLinkedService(J encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureStorageLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureStorageLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureStorageLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureStorageLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureStorageLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSynapseArtifactsLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSynapseArtifactsLinkedService.Serialization.cs index 645d85dd734f8..8f1d9d84ee30e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSynapseArtifactsLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSynapseArtifactsLinkedService.Serialization.cs @@ -202,12 +202,29 @@ internal static AzureSynapseArtifactsLinkedService DeserializeAzureSynapseArtifa workspaceResourceId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureSynapseArtifactsLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureSynapseArtifactsLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureSynapseArtifactsLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureSynapseArtifactsLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureSynapseArtifactsLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableDataset.Serialization.cs index 0acd72c73f215..19184efae248a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static AzureTableDataset DeserializeAzureTableDataset(JsonElement eleme tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableSink.Serialization.cs index aa0754780d85a..437a91d52ce88 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableSink.Serialization.cs @@ -197,12 +197,29 @@ internal static AzureTableSink DeserializeAzureTableSink(JsonElement element) azureTableInsertType); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureTableSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureTableSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureTableSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureTableSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureTableSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableSource.Serialization.cs index 16348a8c1860d..53d6e47dc8370 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableSource.Serialization.cs @@ -165,12 +165,29 @@ internal static AzureTableSource DeserializeAzureTableSource(JsonElement element azureTableSourceIgnoreTableNotFound); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureTableSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureTableSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureTableSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureTableSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureTableSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableStorageLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableStorageLinkedService.Serialization.cs index 32474a9a68ba3..b097ba6e90ff4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableStorageLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureTableStorageLinkedService.Serialization.cs @@ -237,12 +237,29 @@ internal static AzureTableStorageLinkedService DeserializeAzureTableStorageLinke encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureTableStorageLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAzureTableStorageLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class AzureTableStorageLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, AzureTableStorageLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override AzureTableStorageLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolParametrizationReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolParametrizationReference.Serialization.cs index 192f31712da38..1ad4c3f416463 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolParametrizationReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolParametrizationReference.Serialization.cs @@ -49,12 +49,29 @@ internal static BigDataPoolParametrizationReference DeserializeBigDataPoolParame return new BigDataPoolParametrizationReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BigDataPoolParametrizationReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBigDataPoolParametrizationReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BigDataPoolParametrizationReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BigDataPoolParametrizationReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BigDataPoolParametrizationReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolReference.Serialization.cs index 3ea02707f6cd9..0e511534d0553 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolReference.Serialization.cs @@ -49,12 +49,29 @@ internal static BigDataPoolReference DeserializeBigDataPoolReference(JsonElement return new BigDataPoolReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BigDataPoolReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBigDataPoolReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BigDataPoolReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BigDataPoolReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BigDataPoolReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfo.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfo.Serialization.cs index e5119e8445925..69a3f8a2657b4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfo.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfo.Serialization.cs @@ -383,12 +383,29 @@ internal static BigDataPoolResourceInfo DeserializeBigDataPoolResourceInfo(JsonE lastSucceededTimestamp); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BigDataPoolResourceInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBigDataPoolResourceInfo(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BigDataPoolResourceInfoConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BigDataPoolResourceInfo model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BigDataPoolResourceInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.Serialization.cs index 7017c3e7fbbae..1f21531caaca9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BigDataPoolResourceInfoListResult.Serialization.cs @@ -48,12 +48,21 @@ internal static BigDataPoolResourceInfoListResult DeserializeBigDataPoolResource return new BigDataPoolResourceInfoListResult(nextLink, value ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static BigDataPoolResourceInfoListResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBigDataPoolResourceInfoListResult(document.RootElement); + } + internal partial class BigDataPoolResourceInfoListResultConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BigDataPoolResourceInfoListResult model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override BigDataPoolResourceInfoListResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinaryDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinaryDataset.Serialization.cs index 19cbd04c8e1d3..6e4a6b8aad7ea 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinaryDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinaryDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static BinaryDataset DeserializeBinaryDataset(JsonElement element) compression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BinaryDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBinaryDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BinaryDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BinaryDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BinaryDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinaryReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinaryReadSettings.Serialization.cs index 63cdedfa5507f..c2a390dacca21 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinaryReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinaryReadSettings.Serialization.cs @@ -66,12 +66,29 @@ internal static BinaryReadSettings DeserializeBinaryReadSettings(JsonElement ele return new BinaryReadSettings(type, additionalProperties, compressionProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BinaryReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBinaryReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BinaryReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BinaryReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BinaryReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinarySink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinarySink.Serialization.cs index fb9a09d7984a6..819eafd3308a8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinarySink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinarySink.Serialization.cs @@ -149,12 +149,29 @@ internal static BinarySink DeserializeBinarySink(JsonElement element) storeSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BinarySink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBinarySink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BinarySinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BinarySink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BinarySink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinarySource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinarySource.Serialization.cs index e9484c8e14661..06b8a151e3065 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinarySource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BinarySource.Serialization.cs @@ -133,12 +133,29 @@ internal static BinarySource DeserializeBinarySource(JsonElement element) formatSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BinarySource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBinarySource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BinarySourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BinarySource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BinarySource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobEventsTrigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobEventsTrigger.Serialization.cs index 4ce72d3bc770c..b492a99dcea08 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobEventsTrigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobEventsTrigger.Serialization.cs @@ -223,12 +223,29 @@ internal static BlobEventsTrigger DeserializeBlobEventsTrigger(JsonElement eleme scope); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BlobEventsTrigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBlobEventsTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BlobEventsTriggerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BlobEventsTrigger model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BlobEventsTrigger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobSink.Serialization.cs index b2d4a46a6357e..e98076348abee 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobSink.Serialization.cs @@ -197,12 +197,29 @@ internal static BlobSink DeserializeBlobSink(JsonElement element) copyBehavior); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BlobSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBlobSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BlobSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BlobSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BlobSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobSource.Serialization.cs index 3bb213b68448c..ec7572447db0c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobSource.Serialization.cs @@ -149,12 +149,29 @@ internal static BlobSource DeserializeBlobSource(JsonElement element) recursive); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BlobSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBlobSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BlobSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BlobSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BlobSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobTrigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobTrigger.Serialization.cs index 3487bab49bb12..feb9790b398c4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobTrigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/BlobTrigger.Serialization.cs @@ -182,12 +182,29 @@ internal static BlobTrigger DeserializeBlobTrigger(JsonElement element) linkedService); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new BlobTrigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeBlobTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class BlobTriggerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, BlobTrigger model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override BlobTrigger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraLinkedService.Serialization.cs index 97f4447ab7869..f83d5934699f4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraLinkedService.Serialization.cs @@ -250,12 +250,29 @@ internal static CassandraLinkedService DeserializeCassandraLinkedService(JsonEle encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CassandraLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCassandraLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CassandraLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CassandraLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CassandraLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraSource.Serialization.cs index b740cec351d83..19bbcb60063ff 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraSource.Serialization.cs @@ -165,12 +165,29 @@ internal static CassandraSource DeserializeCassandraSource(JsonElement element) consistencyLevel); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CassandraSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCassandraSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CassandraSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CassandraSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CassandraSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraTableDataset.Serialization.cs index a8e49faea29c5..1325536d9dc57 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CassandraTableDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static CassandraTableDataset DeserializeCassandraTableDataset(JsonEleme keyspace); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CassandraTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCassandraTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CassandraTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CassandraTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CassandraTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ChainingTrigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ChainingTrigger.Serialization.cs index c03d59469ae2b..7d43f0e447b7c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ChainingTrigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ChainingTrigger.Serialization.cs @@ -166,12 +166,29 @@ internal static ChainingTrigger DeserializeChainingTrigger(JsonElement element) runDimension); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ChainingTrigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeChainingTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ChainingTriggerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ChainingTrigger model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ChainingTrigger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.Serialization.cs index 8568e63682af4..00c8169fc5e5e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CloudError.Serialization.cs @@ -72,12 +72,21 @@ internal static CloudError DeserializeCloudError(JsonElement element) return new CloudError(code, message, target, details ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CloudError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCloudError(document.RootElement); + } + internal partial class CloudErrorConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CloudError model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override CloudError Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsEntityDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsEntityDataset.Serialization.cs index 980aee46a261e..790b7faa29443 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsEntityDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsEntityDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static CommonDataServiceForAppsEntityDataset DeserializeCommonDataServi entityName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CommonDataServiceForAppsEntityDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommonDataServiceForAppsEntityDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CommonDataServiceForAppsEntityDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CommonDataServiceForAppsEntityDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CommonDataServiceForAppsEntityDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsLinkedService.Serialization.cs index 7b1ba585d37eb..5ade0f12d3dd5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsLinkedService.Serialization.cs @@ -339,12 +339,29 @@ internal static CommonDataServiceForAppsLinkedService DeserializeCommonDataServi encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CommonDataServiceForAppsLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommonDataServiceForAppsLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CommonDataServiceForAppsLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CommonDataServiceForAppsLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CommonDataServiceForAppsLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.Serialization.cs index 5685a6f67831a..7f4d4a89db051 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSink.Serialization.cs @@ -174,12 +174,29 @@ internal static CommonDataServiceForAppsSink DeserializeCommonDataServiceForApps alternateKeyName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CommonDataServiceForAppsSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommonDataServiceForAppsSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CommonDataServiceForAppsSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CommonDataServiceForAppsSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CommonDataServiceForAppsSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSource.Serialization.cs index c927774022a79..b6aed5535e6dd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CommonDataServiceForAppsSource.Serialization.cs @@ -133,12 +133,29 @@ internal static CommonDataServiceForAppsSource DeserializeCommonDataServiceForAp additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CommonDataServiceForAppsSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCommonDataServiceForAppsSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CommonDataServiceForAppsSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CommonDataServiceForAppsSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CommonDataServiceForAppsSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CompressionReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CompressionReadSettings.Serialization.cs index 114b90d4aad8a..fdeb7f46ff679 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CompressionReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CompressionReadSettings.Serialization.cs @@ -46,12 +46,29 @@ internal static CompressionReadSettings DeserializeCompressionReadSettings(JsonE return UnknownCompressionReadSettings.DeserializeUnknownCompressionReadSettings(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CompressionReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCompressionReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CompressionReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CompressionReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CompressionReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurLinkedService.Serialization.cs index 6ce256b2a40b7..a341512049156 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurLinkedService.Serialization.cs @@ -275,12 +275,29 @@ internal static ConcurLinkedService DeserializeConcurLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ConcurLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeConcurLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ConcurLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ConcurLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ConcurLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurObjectDataset.Serialization.cs index 12a8650a5a9a9..4b560f0c96ff2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static ConcurObjectDataset DeserializeConcurObjectDataset(JsonElement e tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ConcurObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeConcurObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ConcurObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ConcurObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ConcurObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurSource.Serialization.cs index e556cd4fc471d..145e294b70a4a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ConcurSource.Serialization.cs @@ -149,12 +149,29 @@ internal static ConcurSource DeserializeConcurSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ConcurSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeConcurSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ConcurSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ConcurSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ConcurSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ControlActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ControlActivity.Serialization.cs index cd38550563887..d9b3232a26fcf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ControlActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ControlActivity.Serialization.cs @@ -176,12 +176,29 @@ internal static ControlActivity DeserializeControlActivity(JsonElement element) additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ControlActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeControlActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ControlActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ControlActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ControlActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivity.Serialization.cs index 8cc8083e6072a..74fe952a35c49 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivity.Serialization.cs @@ -527,12 +527,29 @@ internal static CopyActivity DeserializeCopyActivity(JsonElement element) skipErrorFile); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CopyActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCopyActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CopyActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CopyActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CopyActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivityLogSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivityLogSettings.Serialization.cs index c7c873be2750f..76aec1a70d487 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivityLogSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyActivityLogSettings.Serialization.cs @@ -63,12 +63,29 @@ internal static CopyActivityLogSettings DeserializeCopyActivityLogSettings(JsonE return new CopyActivityLogSettings(logLevel, enableReliableLogging); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CopyActivityLogSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCopyActivityLogSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CopyActivityLogSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CopyActivityLogSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CopyActivityLogSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySink.Serialization.cs index aa07580daf9a0..ad4f733547cde 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySink.Serialization.cs @@ -105,12 +105,29 @@ internal static CopySink DeserializeCopySink(JsonElement element) return UnknownCopySink.DeserializeUnknownCopySink(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CopySink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCopySink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CopySinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CopySink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CopySink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySource.Serialization.cs index 96d5cc6f5d6a4..3f7caf3e9d164 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySource.Serialization.cs @@ -154,12 +154,29 @@ internal static CopySource DeserializeCopySource(JsonElement element) return UnknownCopySource.DeserializeUnknownCopySource(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CopySource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCopySource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CopySourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CopySource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CopySource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyTranslator.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyTranslator.Serialization.cs index bbcc093de0f07..0b4967704f200 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyTranslator.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyTranslator.Serialization.cs @@ -44,12 +44,29 @@ internal static CopyTranslator DeserializeCopyTranslator(JsonElement element) return UnknownCopyTranslator.DeserializeUnknownCopyTranslator(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CopyTranslator FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCopyTranslator(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CopyTranslatorConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CopyTranslator model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CopyTranslator Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbLinkedService.Serialization.cs index 6b9f4c36f2034..452afa4093f22 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbLinkedService.Serialization.cs @@ -257,12 +257,29 @@ internal static CosmosDbLinkedService DeserializeCosmosDbLinkedService(JsonEleme credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CosmosDbLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCosmosDbLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CosmosDbLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CosmosDbLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CosmosDbLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiCollectionDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiCollectionDataset.Serialization.cs index 6ed8021c533ed..85229beec1d3d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiCollectionDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiCollectionDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static CosmosDbMongoDbApiCollectionDataset DeserializeCosmosDbMongoDbAp collection); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CosmosDbMongoDbApiCollectionDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCosmosDbMongoDbApiCollectionDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CosmosDbMongoDbApiCollectionDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CosmosDbMongoDbApiCollectionDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CosmosDbMongoDbApiCollectionDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiLinkedService.Serialization.cs index 5504d5e171e9d..296c67aad97ff 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiLinkedService.Serialization.cs @@ -179,12 +179,29 @@ internal static CosmosDbMongoDbApiLinkedService DeserializeCosmosDbMongoDbApiLin database); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CosmosDbMongoDbApiLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCosmosDbMongoDbApiLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CosmosDbMongoDbApiLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CosmosDbMongoDbApiLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CosmosDbMongoDbApiLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiSink.Serialization.cs index 1fbf57b8d809b..8cd5b42d70dc8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiSink.Serialization.cs @@ -149,12 +149,29 @@ internal static CosmosDbMongoDbApiSink DeserializeCosmosDbMongoDbApiSink(JsonEle writeBehavior); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CosmosDbMongoDbApiSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCosmosDbMongoDbApiSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CosmosDbMongoDbApiSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CosmosDbMongoDbApiSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CosmosDbMongoDbApiSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiSource.Serialization.cs index ff641f8ce11dc..0e982b3b070dd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbMongoDbApiSource.Serialization.cs @@ -181,12 +181,29 @@ internal static CosmosDbMongoDbApiSource DeserializeCosmosDbMongoDbApiSource(Jso additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CosmosDbMongoDbApiSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCosmosDbMongoDbApiSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CosmosDbMongoDbApiSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CosmosDbMongoDbApiSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CosmosDbMongoDbApiSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiCollectionDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiCollectionDataset.Serialization.cs index 9338cb3f90fb4..1438fd179bf45 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiCollectionDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiCollectionDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static CosmosDbSqlApiCollectionDataset DeserializeCosmosDbSqlApiCollect collectionName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CosmosDbSqlApiCollectionDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCosmosDbSqlApiCollectionDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CosmosDbSqlApiCollectionDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CosmosDbSqlApiCollectionDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CosmosDbSqlApiCollectionDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiSink.Serialization.cs index b6bd37b64554f..13adf2c1e0216 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiSink.Serialization.cs @@ -149,12 +149,29 @@ internal static CosmosDbSqlApiSink DeserializeCosmosDbSqlApiSink(JsonElement ele writeBehavior); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CosmosDbSqlApiSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCosmosDbSqlApiSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CosmosDbSqlApiSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CosmosDbSqlApiSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CosmosDbSqlApiSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiSource.Serialization.cs index 50394c1ef21f3..7bf2fb34dbbc9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CosmosDbSqlApiSource.Serialization.cs @@ -181,12 +181,29 @@ internal static CosmosDbSqlApiSource DeserializeCosmosDbSqlApiSource(JsonElement additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CosmosDbSqlApiSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCosmosDbSqlApiSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CosmosDbSqlApiSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CosmosDbSqlApiSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CosmosDbSqlApiSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseLinkedService.Serialization.cs index 1225ab3d1e57d..7b446f62450c8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseLinkedService.Serialization.cs @@ -209,12 +209,29 @@ internal static CouchbaseLinkedService DeserializeCouchbaseLinkedService(JsonEle encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CouchbaseLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCouchbaseLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CouchbaseLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CouchbaseLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CouchbaseLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseSource.Serialization.cs index 09658897e8bbb..0e05a2aa712bf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseSource.Serialization.cs @@ -149,12 +149,29 @@ internal static CouchbaseSource DeserializeCouchbaseSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CouchbaseSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCouchbaseSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CouchbaseSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CouchbaseSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CouchbaseSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseTableDataset.Serialization.cs index 2ebd7a8847d65..bcd17f03c146a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CouchbaseTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static CouchbaseTableDataset DeserializeCouchbaseTableDataset(JsonEleme tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CouchbaseTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCouchbaseTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CouchbaseTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CouchbaseTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CouchbaseTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateDataFlowDebugSessionRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateDataFlowDebugSessionRequest.Serialization.cs index 92e84541a9c50..9f5bab254f442 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateDataFlowDebugSessionRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateDataFlowDebugSessionRequest.Serialization.cs @@ -89,12 +89,29 @@ internal static CreateDataFlowDebugSessionRequest DeserializeCreateDataFlowDebug return new CreateDataFlowDebugSessionRequest(computeType, coreCount, timeToLive, integrationRuntime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CreateDataFlowDebugSessionRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCreateDataFlowDebugSessionRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CreateDataFlowDebugSessionRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CreateDataFlowDebugSessionRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CreateDataFlowDebugSessionRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateDataFlowDebugSessionResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateDataFlowDebugSessionResponse.Serialization.cs index ff874bd881045..00140a3b4bdf4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateDataFlowDebugSessionResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateDataFlowDebugSessionResponse.Serialization.cs @@ -32,12 +32,21 @@ internal static CreateDataFlowDebugSessionResponse DeserializeCreateDataFlowDebu return new CreateDataFlowDebugSessionResponse(sessionId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CreateDataFlowDebugSessionResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCreateDataFlowDebugSessionResponse(document.RootElement); + } + internal partial class CreateDataFlowDebugSessionResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CreateDataFlowDebugSessionResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override CreateDataFlowDebugSessionResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateRunResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateRunResponse.Serialization.cs index 96b574d87e3c4..f45ceba5fb644 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateRunResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CreateRunResponse.Serialization.cs @@ -32,12 +32,21 @@ internal static CreateRunResponse DeserializeCreateRunResponse(JsonElement eleme return new CreateRunResponse(runId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CreateRunResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCreateRunResponse(document.RootElement); + } + internal partial class CreateRunResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CreateRunResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override CreateRunResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialReference.Serialization.cs index 85836d42a219d..7dca42e2c3ebd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialReference.Serialization.cs @@ -59,12 +59,29 @@ internal static CredentialReference DeserializeCredentialReference(JsonElement e return new CredentialReference(type, referenceName, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CredentialReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCredentialReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CredentialReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CredentialReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CredentialReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivity.Serialization.cs index 4898d5f3bab93..0367f51ebe86b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivity.Serialization.cs @@ -333,12 +333,29 @@ internal static CustomActivity DeserializeCustomActivity(JsonElement element) autoUserSpecification); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CustomActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CustomActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CustomActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivityReferenceObject.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivityReferenceObject.Serialization.cs index 064ab10eff62b..95c69d87d9c8d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivityReferenceObject.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomActivityReferenceObject.Serialization.cs @@ -84,12 +84,29 @@ internal static CustomActivityReferenceObject DeserializeCustomActivityReference return new CustomActivityReferenceObject(linkedServices ?? new ChangeTrackingList(), datasets ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomActivityReferenceObject FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomActivityReferenceObject(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CustomActivityReferenceObjectConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CustomActivityReferenceObject model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CustomActivityReferenceObject Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomDataSourceLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomDataSourceLinkedService.Serialization.cs index b60a7407fbfc4..46c269c64873c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomDataSourceLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomDataSourceLinkedService.Serialization.cs @@ -155,12 +155,29 @@ internal static CustomDataSourceLinkedService DeserializeCustomDataSourceLinkedS typeProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomDataSourceLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomDataSourceLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CustomDataSourceLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CustomDataSourceLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CustomDataSourceLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomDataset.Serialization.cs index 15c34c58fed28..d454e22251547 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomDataset.Serialization.cs @@ -203,12 +203,29 @@ internal static CustomDataset DeserializeCustomDataset(JsonElement element) typeProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CustomDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CustomDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CustomDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomEventsTrigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomEventsTrigger.Serialization.cs index 39cb70246ca49..d88a3db2ec4dd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomEventsTrigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomEventsTrigger.Serialization.cs @@ -219,12 +219,29 @@ internal static CustomEventsTrigger DeserializeCustomEventsTrigger(JsonElement e scope); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomEventsTrigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomEventsTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CustomEventsTriggerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CustomEventsTrigger model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CustomEventsTrigger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomSetupBase.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomSetupBase.Serialization.cs index 109a32b2edc6f..5207d89921f9b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomSetupBase.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomSetupBase.Serialization.cs @@ -32,12 +32,29 @@ internal static CustomSetupBase DeserializeCustomSetupBase(JsonElement element) return UnknownCustomSetupBase.DeserializeUnknownCustomSetupBase(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomSetupBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomSetupBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CustomSetupBaseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CustomSetupBase model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CustomSetupBase Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomerManagedKeyDetails.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomerManagedKeyDetails.Serialization.cs index d6dfef6b1bb32..365072893926b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomerManagedKeyDetails.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CustomerManagedKeyDetails.Serialization.cs @@ -54,12 +54,29 @@ internal static CustomerManagedKeyDetails DeserializeCustomerManagedKeyDetails(J return new CustomerManagedKeyDetails(status, key); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomerManagedKeyDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomerManagedKeyDetails(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class CustomerManagedKeyDetailsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, CustomerManagedKeyDetails model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override CustomerManagedKeyDetails Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandDefaultValue.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandDefaultValue.Serialization.cs index 0288e0c3ee365..aaedacbf6748c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandDefaultValue.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandDefaultValue.Serialization.cs @@ -63,12 +63,29 @@ internal static DWCopyCommandDefaultValue DeserializeDWCopyCommandDefaultValue(J return new DWCopyCommandDefaultValue(columnName, defaultValue); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DWCopyCommandDefaultValue FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDWCopyCommandDefaultValue(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DWCopyCommandDefaultValueConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DWCopyCommandDefaultValue model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DWCopyCommandDefaultValue Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandSettings.Serialization.cs index 2fae8de06f4b3..49d265431d65a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DWCopyCommandSettings.Serialization.cs @@ -85,12 +85,29 @@ internal static DWCopyCommandSettings DeserializeDWCopyCommandSettings(JsonEleme return new DWCopyCommandSettings(defaultValues ?? new ChangeTrackingList(), additionalOptions ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DWCopyCommandSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDWCopyCommandSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DWCopyCommandSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DWCopyCommandSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DWCopyCommandSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlow.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlow.Serialization.cs index 7eaf37959262b..622f954972635 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlow.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlow.Serialization.cs @@ -65,12 +65,29 @@ internal static DataFlow DeserializeDataFlow(JsonElement element) return UnknownDataFlow.DeserializeUnknownDataFlow(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlow FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlow(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlow model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlow Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandPayload.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandPayload.Serialization.cs index c31c9e872a6d5..fc192acb70d78 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandPayload.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandPayload.Serialization.cs @@ -43,12 +43,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowDebugCommandPayloadConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugCommandPayload model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowDebugCommandPayload Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandRequest.Serialization.cs index 8ae82566d2093..8bff4380c25af 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandRequest.Serialization.cs @@ -36,12 +36,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowDebugCommandRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugCommandRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowDebugCommandRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandResponse.Serialization.cs index a18310b391ab6..62c1bc750a9cb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugCommandResponse.Serialization.cs @@ -38,12 +38,21 @@ internal static DataFlowDebugCommandResponse DeserializeDataFlowDebugCommandResp return new DataFlowDebugCommandResponse(status, data); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowDebugCommandResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowDebugCommandResponse(document.RootElement); + } + internal partial class DataFlowDebugCommandResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugCommandResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override DataFlowDebugCommandResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackage.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackage.Serialization.cs index f56ac47e2a3b7..0f94952901dda 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackage.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackage.Serialization.cs @@ -182,12 +182,29 @@ internal static DataFlowDebugPackage DeserializeDataFlowDebugPackage(JsonElement additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowDebugPackage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowDebugPackage(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowDebugPackageConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugPackage model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowDebugPackage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackageDebugSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackageDebugSettings.Serialization.cs index e48d351e26869..b390db0e98ce9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackageDebugSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPackageDebugSettings.Serialization.cs @@ -108,5 +108,21 @@ internal static DataFlowDebugPackageDebugSettings DeserializeDataFlowDebugPackag } return new DataFlowDebugPackageDebugSettings(sourceSettings ?? new ChangeTrackingList(), parameters ?? new ChangeTrackingDictionary(), datasetParameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowDebugPackageDebugSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowDebugPackageDebugSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPreviewDataRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPreviewDataRequest.Serialization.cs index 7514d03cf60b2..a82d3f45e818f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPreviewDataRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugPreviewDataRequest.Serialization.cs @@ -81,12 +81,29 @@ internal static DataFlowDebugPreviewDataRequest DeserializeDataFlowDebugPreviewD return new DataFlowDebugPreviewDataRequest(sessionId, dataFlowName, streamName, rowLimits); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowDebugPreviewDataRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowDebugPreviewDataRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowDebugPreviewDataRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugPreviewDataRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowDebugPreviewDataRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugQueryResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugQueryResponse.Serialization.cs index e96639c71c838..d505ec1f7ecf9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugQueryResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugQueryResponse.Serialization.cs @@ -44,12 +44,29 @@ internal static DataFlowDebugQueryResponse DeserializeDataFlowDebugQueryResponse return new DataFlowDebugQueryResponse(runId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowDebugQueryResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowDebugQueryResponse(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowDebugQueryResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugQueryResponse model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowDebugQueryResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugResource.Serialization.cs index 4c830546aa676..3d558c1e9767a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugResource.Serialization.cs @@ -52,12 +52,29 @@ internal static DataFlowDebugResource DeserializeDataFlowDebugResource(JsonEleme return new DataFlowDebugResource(name, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DataFlowDebugResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowDebugResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowDebugResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowDebugResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugResultResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugResultResponse.Serialization.cs index 3927b07b6a005..2754a9e9853c8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugResultResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugResultResponse.Serialization.cs @@ -55,12 +55,29 @@ internal static DataFlowDebugResultResponse DeserializeDataFlowDebugResultRespon return new DataFlowDebugResultResponse(status, data); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowDebugResultResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowDebugResultResponse(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowDebugResultResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugResultResponse model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowDebugResultResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugSessionInfo.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugSessionInfo.Serialization.cs index 94d1ee57e1829..c7ad8ce3cbf96 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugSessionInfo.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugSessionInfo.Serialization.cs @@ -107,12 +107,21 @@ internal static DataFlowDebugSessionInfo DeserializeDataFlowDebugSessionInfo(Jso additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowDebugSessionInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowDebugSessionInfo(document.RootElement); + } + internal partial class DataFlowDebugSessionInfoConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugSessionInfo model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override DataFlowDebugSessionInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugStatisticsRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugStatisticsRequest.Serialization.cs index 57280384b6405..1798993876f9e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugStatisticsRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowDebugStatisticsRequest.Serialization.cs @@ -92,12 +92,29 @@ internal static DataFlowDebugStatisticsRequest DeserializeDataFlowDebugStatistic return new DataFlowDebugStatisticsRequest(sessionId, dataFlowName, streamName, columns ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowDebugStatisticsRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowDebugStatisticsRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowDebugStatisticsRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowDebugStatisticsRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowDebugStatisticsRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowFolder.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowFolder.Serialization.cs index f87af66559245..e7df3b2406f45 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowFolder.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowFolder.Serialization.cs @@ -40,5 +40,21 @@ internal static DataFlowFolder DeserializeDataFlowFolder(JsonElement element) } return new DataFlowFolder(name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowFolder FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowFolder(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowListResponse.Serialization.cs index 938e3dd39be83..11decad193647 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static DataFlowListResponse DeserializeDataFlowListResponse(JsonElement return new DataFlowListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowListResponse(document.RootElement); + } + internal partial class DataFlowListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override DataFlowListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowReference.Serialization.cs index 87c87fcbf5ea2..d993991c42c63 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowReference.Serialization.cs @@ -112,12 +112,29 @@ internal static DataFlowReference DeserializeDataFlowReference(JsonElement eleme return new DataFlowReference(type, referenceName, datasetParameters, parameters ?? new ChangeTrackingDictionary(), additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowResource.Serialization.cs index 43bf5e201680e..c403c36326d82 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowResource.Serialization.cs @@ -65,12 +65,29 @@ internal static DataFlowResource DeserializeDataFlowResource(JsonElement element return new DataFlowResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DataFlowResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSink.Serialization.cs index 4de17032421f7..38f688714138e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSink.Serialization.cs @@ -134,12 +134,29 @@ internal static DataFlowSink DeserializeDataFlowSink(JsonElement element) rejectedDataLinkedService); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DataFlowSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSource.Serialization.cs index 2fe702b42cd0f..ecc036f8446d0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSource.Serialization.cs @@ -118,12 +118,29 @@ internal static DataFlowSource DeserializeDataFlowSource(JsonElement element) schemaLinkedService); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DataFlowSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSourceSetting.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSourceSetting.Serialization.cs index e47e5a9d602c3..a85989c94fb0b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSourceSetting.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowSourceSetting.Serialization.cs @@ -69,12 +69,29 @@ internal static DataFlowSourceSetting DeserializeDataFlowSourceSetting(JsonEleme return new DataFlowSourceSetting(sourceName, rowLimit, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowSourceSetting FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowSourceSetting(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowSourceSettingConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowSourceSetting model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowSourceSetting Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowStagingInfo.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowStagingInfo.Serialization.cs index bd7f8527c2c14..8682a562b510b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowStagingInfo.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataFlowStagingInfo.Serialization.cs @@ -63,12 +63,29 @@ internal static DataFlowStagingInfo DeserializeDataFlowStagingInfo(JsonElement e return new DataFlowStagingInfo(linkedService, folderPath); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataFlowStagingInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataFlowStagingInfo(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataFlowStagingInfoConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataFlowStagingInfo model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataFlowStagingInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataLakeAnalyticsUsqlActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataLakeAnalyticsUsqlActivity.Serialization.cs index c844a55eaceb2..6375e766a69b5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataLakeAnalyticsUsqlActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataLakeAnalyticsUsqlActivity.Serialization.cs @@ -326,12 +326,29 @@ internal static DataLakeAnalyticsUsqlActivity DeserializeDataLakeAnalyticsUsqlAc compilationMode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DataLakeAnalyticsUsqlActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataLakeAnalyticsUsqlActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataLakeAnalyticsUsqlActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataLakeAnalyticsUsqlActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataLakeAnalyticsUsqlActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataLakeStorageAccountDetails.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataLakeStorageAccountDetails.Serialization.cs index 442aa94e3551e..2e1dc8a9ab20e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataLakeStorageAccountDetails.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataLakeStorageAccountDetails.Serialization.cs @@ -55,12 +55,29 @@ internal static DataLakeStorageAccountDetails DeserializeDataLakeStorageAccountD return new DataLakeStorageAccountDetails(accountUrl, filesystem); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DataLakeStorageAccountDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataLakeStorageAccountDetails(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataLakeStorageAccountDetailsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataLakeStorageAccountDetails model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataLakeStorageAccountDetails Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksNotebookActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksNotebookActivity.Serialization.cs index 985a7e5d9934c..ac2a0cd25bddf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksNotebookActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksNotebookActivity.Serialization.cs @@ -314,12 +314,29 @@ internal static DatabricksNotebookActivity DeserializeDatabricksNotebookActivity libraries ?? new ChangeTrackingList>()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DatabricksNotebookActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatabricksNotebookActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatabricksNotebookActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatabricksNotebookActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatabricksNotebookActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkJarActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkJarActivity.Serialization.cs index 2ef47f688d0d3..6b315bd1a5a28 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkJarActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkJarActivity.Serialization.cs @@ -313,12 +313,29 @@ internal static DatabricksSparkJarActivity DeserializeDatabricksSparkJarActivity libraries ?? new ChangeTrackingList>()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DatabricksSparkJarActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatabricksSparkJarActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatabricksSparkJarActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatabricksSparkJarActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatabricksSparkJarActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkPythonActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkPythonActivity.Serialization.cs index 78c35b0bc08a6..4c64e182c2270 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkPythonActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatabricksSparkPythonActivity.Serialization.cs @@ -313,12 +313,29 @@ internal static DatabricksSparkPythonActivity DeserializeDatabricksSparkPythonAc libraries ?? new ChangeTrackingList>()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DatabricksSparkPythonActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatabricksSparkPythonActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatabricksSparkPythonActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatabricksSparkPythonActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatabricksSparkPythonActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.Serialization.cs index b6a23aac3ab46..12a5d7ea98652 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.Serialization.cs @@ -187,12 +187,29 @@ internal static Dataset DeserializeDataset(JsonElement element) return UnknownDataset.DeserializeUnknownDataset(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Dataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Dataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Dataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetCompression.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetCompression.Serialization.cs index a44362900d62d..f28de50b8afa5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetCompression.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetCompression.Serialization.cs @@ -66,12 +66,29 @@ internal static DatasetCompression DeserializeDatasetCompression(JsonElement ele return new DatasetCompression(type, level, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DatasetCompression FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetCompression(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatasetCompressionConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatasetCompression model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatasetCompression Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetDataElement.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetDataElement.Serialization.cs index 08ea3cb70d811..930fd0a80ef49 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetDataElement.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetDataElement.Serialization.cs @@ -63,12 +63,29 @@ internal static DatasetDataElement DeserializeDatasetDataElement(JsonElement ele return new DatasetDataElement(name, type); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DatasetDataElement FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetDataElement(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatasetDataElementConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatasetDataElement model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatasetDataElement Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetDebugResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetDebugResource.Serialization.cs index bb9575816ab65..b34e6bf319e40 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetDebugResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetDebugResource.Serialization.cs @@ -52,12 +52,29 @@ internal static DatasetDebugResource DeserializeDatasetDebugResource(JsonElement return new DatasetDebugResource(name, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DatasetDebugResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetDebugResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatasetDebugResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatasetDebugResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatasetDebugResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetFolder.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetFolder.Serialization.cs index 4da5b09432087..d8409c25a7b19 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetFolder.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetFolder.Serialization.cs @@ -40,5 +40,21 @@ internal static DatasetFolder DeserializeDatasetFolder(JsonElement element) } return new DatasetFolder(name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DatasetFolder FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetFolder(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetListResponse.Serialization.cs index fec1d8b26e24c..a6be2f4f8babf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static DatasetListResponse DeserializeDatasetListResponse(JsonElement e return new DatasetListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DatasetListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetListResponse(document.RootElement); + } + internal partial class DatasetListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatasetListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override DatasetListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetLocation.Serialization.cs index c0656e2668b72..9d5ce929b61af 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetLocation.Serialization.cs @@ -64,12 +64,29 @@ internal static DatasetLocation DeserializeDatasetLocation(JsonElement element) return UnknownDatasetLocation.DeserializeUnknownDatasetLocation(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DatasetLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatasetLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatasetLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatasetLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetReference.Serialization.cs index 8c5c0087926b8..7c6a5c8c86241 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetReference.Serialization.cs @@ -88,12 +88,29 @@ internal static DatasetReference DeserializeDatasetReference(JsonElement element return new DatasetReference(type, referenceName, parameters ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DatasetReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatasetReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatasetReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatasetReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetResource.Serialization.cs index bab5c9758e5f4..dd1ea525bd45a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetResource.Serialization.cs @@ -65,12 +65,29 @@ internal static DatasetResource DeserializeDatasetResource(JsonElement element) return new DatasetResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DatasetResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatasetResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatasetResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatasetResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetSchemaDataElement.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetSchemaDataElement.Serialization.cs index 15a3c2cac32c0..877fbe3e63c24 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetSchemaDataElement.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetSchemaDataElement.Serialization.cs @@ -73,12 +73,29 @@ internal static DatasetSchemaDataElement DeserializeDatasetSchemaDataElement(Jso return new DatasetSchemaDataElement(name, type, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DatasetSchemaDataElement FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetSchemaDataElement(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatasetSchemaDataElementConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatasetSchemaDataElement model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatasetSchemaDataElement Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetStorageFormat.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetStorageFormat.Serialization.cs index 15074049978ff..3184dcde495b4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetStorageFormat.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetStorageFormat.Serialization.cs @@ -58,12 +58,29 @@ internal static DatasetStorageFormat DeserializeDatasetStorageFormat(JsonElement return UnknownDatasetStorageFormat.DeserializeUnknownDatasetStorageFormat(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DatasetStorageFormat FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDatasetStorageFormat(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DatasetStorageFormatConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DatasetStorageFormat model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DatasetStorageFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataworldLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataworldLinkedService.Serialization.cs index 23c4b6f1f2d02..f4808617b8ec0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataworldLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DataworldLinkedService.Serialization.cs @@ -186,12 +186,29 @@ internal static DataworldLinkedService DeserializeDataworldLinkedService(JsonEle encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DataworldLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDataworldLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DataworldLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DataworldLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DataworldLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2LinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2LinkedService.Serialization.cs index 507e5219d1dee..fa2e50403426e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2LinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2LinkedService.Serialization.cs @@ -291,12 +291,29 @@ internal static Db2LinkedService DeserializeDb2LinkedService(JsonElement element encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new Db2LinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDb2LinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class Db2LinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Db2LinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Db2LinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2Source.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2Source.Serialization.cs index f6007e7e2207b..79b56067526c7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2Source.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2Source.Serialization.cs @@ -149,12 +149,29 @@ internal static Db2Source DeserializeDb2Source(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new Db2Source FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDb2Source(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class Db2SourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Db2Source model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Db2Source Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2TableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2TableDataset.Serialization.cs index 463ca5db058af..66ab5353ae1ce 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2TableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Db2TableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static Db2TableDataset DeserializeDb2TableDataset(JsonElement element) table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new Db2TableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDb2TableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class Db2TableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Db2TableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Db2TableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DeleteActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DeleteActivity.Serialization.cs index 96874586cd0ee..4bc6163301a22 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DeleteActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DeleteActivity.Serialization.cs @@ -294,12 +294,29 @@ internal static DeleteActivity DeserializeDeleteActivity(JsonElement element) storeSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DeleteActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDeleteActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DeleteActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DeleteActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DeleteActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DeleteDataFlowDebugSessionRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DeleteDataFlowDebugSessionRequest.Serialization.cs index d0bf52d6091cb..20b3849284265 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DeleteDataFlowDebugSessionRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DeleteDataFlowDebugSessionRequest.Serialization.cs @@ -31,12 +31,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DeleteDataFlowDebugSessionRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DeleteDataFlowDebugSessionRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DeleteDataFlowDebugSessionRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextDataset.Serialization.cs index 32932b789935d..bc568db7a6b7f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextDataset.Serialization.cs @@ -362,12 +362,29 @@ internal static DelimitedTextDataset DeserializeDelimitedTextDataset(JsonElement nullValue); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DelimitedTextDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDelimitedTextDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DelimitedTextDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DelimitedTextDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DelimitedTextDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextReadSettings.Serialization.cs index 672542be3b040..448c61ef0a8e1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextReadSettings.Serialization.cs @@ -81,12 +81,29 @@ internal static DelimitedTextReadSettings DeserializeDelimitedTextReadSettings(J return new DelimitedTextReadSettings(type, additionalProperties, skipLineCount, compressionProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DelimitedTextReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDelimitedTextReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DelimitedTextReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DelimitedTextReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DelimitedTextReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextSink.Serialization.cs index 5b3fa1b4b2d18..e4c4ef963c376 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextSink.Serialization.cs @@ -165,12 +165,29 @@ internal static DelimitedTextSink DeserializeDelimitedTextSink(JsonElement eleme formatSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DelimitedTextSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDelimitedTextSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DelimitedTextSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DelimitedTextSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DelimitedTextSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextSource.Serialization.cs index 1c790255e9907..244173dd868ff 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextSource.Serialization.cs @@ -149,12 +149,29 @@ internal static DelimitedTextSource DeserializeDelimitedTextSource(JsonElement e additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DelimitedTextSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDelimitedTextSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DelimitedTextSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DelimitedTextSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DelimitedTextSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextWriteSettings.Serialization.cs index 34185c7147c39..e932b3908ea03 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DelimitedTextWriteSettings.Serialization.cs @@ -110,12 +110,29 @@ internal static DelimitedTextWriteSettings DeserializeDelimitedTextWriteSettings fileNamePrefix); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DelimitedTextWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDelimitedTextWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DelimitedTextWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DelimitedTextWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DelimitedTextWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DependencyReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DependencyReference.Serialization.cs index a9a351fdb31bf..049b70af2ee4b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DependencyReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DependencyReference.Serialization.cs @@ -41,12 +41,29 @@ internal static DependencyReference DeserializeDependencyReference(JsonElement e return UnknownDependencyReference.DeserializeUnknownDependencyReference(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DependencyReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDependencyReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DependencyReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DependencyReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DependencyReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DistcpSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DistcpSettings.Serialization.cs index bf528d109b117..81cc74ce2e1c9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DistcpSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DistcpSettings.Serialization.cs @@ -64,12 +64,29 @@ internal static DistcpSettings DeserializeDistcpSettings(JsonElement element) return new DistcpSettings(resourceManagerEndpoint, tempScriptPath, distcpOptions); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DistcpSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDistcpSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DistcpSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DistcpSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DistcpSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionDataset.Serialization.cs index 14d10edf3cf41..03cd10b6533b4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static DocumentDbCollectionDataset DeserializeDocumentDbCollectionDatas collectionName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DocumentDbCollectionDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentDbCollectionDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DocumentDbCollectionDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DocumentDbCollectionDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DocumentDbCollectionDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionSink.Serialization.cs index d595dc2a5a0c3..81e7cf2b31cfb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionSink.Serialization.cs @@ -165,12 +165,29 @@ internal static DocumentDbCollectionSink DeserializeDocumentDbCollectionSink(Jso writeBehavior); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DocumentDbCollectionSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentDbCollectionSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DocumentDbCollectionSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DocumentDbCollectionSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DocumentDbCollectionSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionSource.Serialization.cs index 4272278461323..dd4f4827983f0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DocumentDbCollectionSource.Serialization.cs @@ -165,12 +165,29 @@ internal static DocumentDbCollectionSource DeserializeDocumentDbCollectionSource additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DocumentDbCollectionSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentDbCollectionSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DocumentDbCollectionSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DocumentDbCollectionSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DocumentDbCollectionSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillLinkedService.Serialization.cs index 1f7fc955fd97e..c44efb2450bbc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillLinkedService.Serialization.cs @@ -209,12 +209,29 @@ internal static DrillLinkedService DeserializeDrillLinkedService(JsonElement ele encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DrillLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDrillLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DrillLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DrillLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DrillLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillSource.Serialization.cs index f4a5fb7a4755f..8405b5c428e0e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillSource.Serialization.cs @@ -149,12 +149,29 @@ internal static DrillSource DeserializeDrillSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DrillSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDrillSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DrillSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DrillSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DrillSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillTableDataset.Serialization.cs index 71dc72213d309..643f0f21236fe 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DrillTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static DrillTableDataset DeserializeDrillTableDataset(JsonElement eleme schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DrillTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDrillTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DrillTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DrillTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DrillTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicExecutorAllocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicExecutorAllocation.Serialization.cs index 36240977be5b9..5e51ef8fe7102 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicExecutorAllocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicExecutorAllocation.Serialization.cs @@ -48,12 +48,29 @@ internal static DynamicExecutorAllocation DeserializeDynamicExecutorAllocation(J return new DynamicExecutorAllocation(enabled); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DynamicExecutorAllocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicExecutorAllocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicExecutorAllocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicExecutorAllocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicExecutorAllocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXLinkedService.Serialization.cs index b7d71dfb93fbe..f79c0beb1780d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXLinkedService.Serialization.cs @@ -222,12 +222,29 @@ internal static DynamicsAXLinkedService DeserializeDynamicsAXLinkedService(JsonE encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsAXLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsAXLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsAXLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsAXLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsAXLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXResourceDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXResourceDataset.Serialization.cs index 9b055d19d642f..48e56a732a5e5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXResourceDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXResourceDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static DynamicsAXResourceDataset DeserializeDynamicsAXResourceDataset(J path); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsAXResourceDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsAXResourceDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsAXResourceDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsAXResourceDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsAXResourceDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXSource.Serialization.cs index 18e892c99d2a8..9f32cb3527739 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsAXSource.Serialization.cs @@ -165,12 +165,29 @@ internal static DynamicsAXSource DeserializeDynamicsAXSource(JsonElement element httpRequestTimeout); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsAXSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsAXSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsAXSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsAXSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsAXSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmEntityDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmEntityDataset.Serialization.cs index 535ebfa402ea3..710ff84df5e8a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmEntityDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmEntityDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static DynamicsCrmEntityDataset DeserializeDynamicsCrmEntityDataset(Jso entityName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsCrmEntityDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsCrmEntityDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsCrmEntityDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsCrmEntityDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsCrmEntityDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmLinkedService.Serialization.cs index 0b16e76b1a471..d285beae7ab4a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmLinkedService.Serialization.cs @@ -339,12 +339,29 @@ internal static DynamicsCrmLinkedService DeserializeDynamicsCrmLinkedService(Jso encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsCrmLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsCrmLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsCrmLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsCrmLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsCrmLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.Serialization.cs index f0ce2b8565e96..8aee648c72df3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSink.Serialization.cs @@ -174,12 +174,29 @@ internal static DynamicsCrmSink DeserializeDynamicsCrmSink(JsonElement element) alternateKeyName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsCrmSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsCrmSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsCrmSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsCrmSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsCrmSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSource.Serialization.cs index 9b010b5fcb30e..371d8eee757d0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsCrmSource.Serialization.cs @@ -133,12 +133,29 @@ internal static DynamicsCrmSource DeserializeDynamicsCrmSource(JsonElement eleme additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsCrmSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsCrmSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsCrmSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsCrmSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsCrmSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsEntityDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsEntityDataset.Serialization.cs index b84f71702db37..e67c91c146e68 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsEntityDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsEntityDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static DynamicsEntityDataset DeserializeDynamicsEntityDataset(JsonEleme entityName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsEntityDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsEntityDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsEntityDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsEntityDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsEntityDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsLinkedService.Serialization.cs index 6fc7f126ffd51..c5094f64787ac 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsLinkedService.Serialization.cs @@ -355,12 +355,29 @@ internal static DynamicsLinkedService DeserializeDynamicsLinkedService(JsonEleme credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.Serialization.cs index 903a1999d6f6c..edd4e069b4c21 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSink.Serialization.cs @@ -174,12 +174,29 @@ internal static DynamicsSink DeserializeDynamicsSink(JsonElement element) alternateKeyName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSource.Serialization.cs index 1ea6d2e83ad86..5ca8f03cbac2b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DynamicsSource.Serialization.cs @@ -133,12 +133,29 @@ internal static DynamicsSource DeserializeDynamicsSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new DynamicsSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDynamicsSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class DynamicsSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, DynamicsSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override DynamicsSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EditTablesRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EditTablesRequest.Serialization.cs index 2ff39b18976a2..b05271e973e30 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EditTablesRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EditTablesRequest.Serialization.cs @@ -59,12 +59,29 @@ internal static EditTablesRequest DeserializeEditTablesRequest(JsonElement eleme return new EditTablesRequest(linkTables ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EditTablesRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEditTablesRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class EditTablesRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EditTablesRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override EditTablesRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaLinkedService.Serialization.cs index 63a961954e308..75c49b26b5267 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaLinkedService.Serialization.cs @@ -259,12 +259,29 @@ internal static EloquaLinkedService DeserializeEloquaLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EloquaLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEloquaLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class EloquaLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EloquaLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override EloquaLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaObjectDataset.Serialization.cs index 85c6958f75aa0..7b8787180aeb3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static EloquaObjectDataset DeserializeEloquaObjectDataset(JsonElement e tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EloquaObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEloquaObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class EloquaObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EloquaObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override EloquaObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaSource.Serialization.cs index 9093730eeb76c..68cc0c652e37d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EloquaSource.Serialization.cs @@ -149,12 +149,29 @@ internal static EloquaSource DeserializeEloquaSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EloquaSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEloquaSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class EloquaSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EloquaSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override EloquaSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EncryptionDetails.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EncryptionDetails.Serialization.cs index e5f722ffc644c..5cb568355d847 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EncryptionDetails.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EncryptionDetails.Serialization.cs @@ -58,12 +58,29 @@ internal static EncryptionDetails DeserializeEncryptionDetails(JsonElement eleme return new EncryptionDetails(doubleEncryptionEnabled, cmk); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EncryptionDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEncryptionDetails(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class EncryptionDetailsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EncryptionDetails model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override EncryptionDetails Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EntityReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EntityReference.Serialization.cs index daca95b0e5170..18a29f4588f80 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EntityReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EntityReference.Serialization.cs @@ -59,12 +59,29 @@ internal static EntityReference DeserializeEntityReference(JsonElement element) return new EntityReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EntityReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class EntityReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EntityReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override EntityReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs index 146b7739c807c..1ce1cfdf52a39 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -42,12 +42,21 @@ internal static ErrorAdditionalInfo DeserializeErrorAdditionalInfo(JsonElement e return new ErrorAdditionalInfo(type, info); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorAdditionalInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorAdditionalInfo(document.RootElement); + } + internal partial class ErrorAdditionalInfoConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ErrorAdditionalInfo model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ErrorAdditionalInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorContract.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorContract.Serialization.cs index 67bc06a5da05d..32a3c4c39c668 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorContract.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorContract.Serialization.cs @@ -36,12 +36,21 @@ internal static ErrorContract DeserializeErrorContract(JsonElement element) return new ErrorContract(error); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorContract FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorContract(document.RootElement); + } + internal partial class ErrorContractConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ErrorContract model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ErrorContract Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.Serialization.cs index 4e29ce46e9672..2e4dc3c0b30fd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ErrorResponse.Serialization.cs @@ -75,12 +75,21 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) return new ErrorResponse(code, message, target, details ?? new ChangeTrackingList(), additionalInfo ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } + internal partial class ErrorResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ErrorResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override ErrorResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EvaluateDataFlowExpressionRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EvaluateDataFlowExpressionRequest.Serialization.cs index 148cdffd30ef8..0d467b6121ac0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EvaluateDataFlowExpressionRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/EvaluateDataFlowExpressionRequest.Serialization.cs @@ -92,12 +92,29 @@ internal static EvaluateDataFlowExpressionRequest DeserializeEvaluateDataFlowExp return new EvaluateDataFlowExpressionRequest(sessionId, dataFlowName, streamName, rowLimits, expression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EvaluateDataFlowExpressionRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEvaluateDataFlowExpressionRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class EvaluateDataFlowExpressionRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, EvaluateDataFlowExpressionRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override EvaluateDataFlowExpressionRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExcelDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExcelDataset.Serialization.cs index dda11081ae960..ff8de5008386a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExcelDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExcelDataset.Serialization.cs @@ -314,12 +314,29 @@ internal static ExcelDataset DeserializeExcelDataset(JsonElement element) nullValue); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExcelDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExcelDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExcelDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ExcelDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ExcelDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExcelSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExcelSource.Serialization.cs index de46fb1f0e101..7d9c450e70c5c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExcelSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExcelSource.Serialization.cs @@ -133,12 +133,29 @@ internal static ExcelSource DeserializeExcelSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExcelSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExcelSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExcelSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ExcelSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ExcelSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteDataFlowActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteDataFlowActivity.Serialization.cs index 42aa0afacdfc0..b311059063232 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteDataFlowActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteDataFlowActivity.Serialization.cs @@ -326,12 +326,29 @@ internal static ExecuteDataFlowActivity DeserializeExecuteDataFlowActivity(JsonE sourceStagingConcurrency); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExecuteDataFlowActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExecuteDataFlowActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExecuteDataFlowActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ExecuteDataFlowActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ExecuteDataFlowActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.Serialization.cs index bee4b937f8184..5e5caca977f04 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.Serialization.cs @@ -59,5 +59,21 @@ internal static ExecuteDataFlowActivityTypePropertiesCompute DeserializeExecuteD } return new ExecuteDataFlowActivityTypePropertiesCompute(computeType, coreCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ExecuteDataFlowActivityTypePropertiesCompute FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExecuteDataFlowActivityTypePropertiesCompute(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecutePipelineActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecutePipelineActivity.Serialization.cs index b72ca0839cb75..d6a798b3f98a5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecutePipelineActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecutePipelineActivity.Serialization.cs @@ -237,12 +237,29 @@ internal static ExecutePipelineActivity DeserializeExecutePipelineActivity(JsonE waitOnCompletion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExecutePipelineActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExecutePipelineActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExecutePipelineActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ExecutePipelineActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ExecutePipelineActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteSsisPackageActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteSsisPackageActivity.Serialization.cs index 4f7b77c2aa597..6bd017403725e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteSsisPackageActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecuteSsisPackageActivity.Serialization.cs @@ -484,12 +484,29 @@ internal static ExecuteSsisPackageActivity DeserializeExecuteSsisPackageActivity logLocation); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExecuteSsisPackageActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExecuteSsisPackageActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExecuteSsisPackageActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ExecuteSsisPackageActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ExecuteSsisPackageActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecutionActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecutionActivity.Serialization.cs index 0f62919e2c4f5..df8459d419504 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecutionActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExecutionActivity.Serialization.cs @@ -222,12 +222,29 @@ internal static ExecutionActivity DeserializeExecutionActivity(JsonElement eleme policy); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExecutionActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExecutionActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExecutionActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ExecutionActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ExecutionActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExportSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExportSettings.Serialization.cs index 3ba958a06e818..10a0ce2d03868 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExportSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExportSettings.Serialization.cs @@ -45,12 +45,29 @@ internal static ExportSettings DeserializeExportSettings(JsonElement element) return UnknownExportSettings.DeserializeUnknownExportSettings(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ExportSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExportSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExportSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ExportSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ExportSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExposureControlRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExposureControlRequest.Serialization.cs index 39e56c4f984b0..5e355ea2a4d0e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExposureControlRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExposureControlRequest.Serialization.cs @@ -55,12 +55,29 @@ internal static ExposureControlRequest DeserializeExposureControlRequest(JsonEle return new ExposureControlRequest(featureName, featureType); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ExposureControlRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExposureControlRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExposureControlRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ExposureControlRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ExposureControlRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExposureControlResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExposureControlResponse.Serialization.cs index e0c8840c5e07f..2f2fbf0f33e36 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExposureControlResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExposureControlResponse.Serialization.cs @@ -45,12 +45,29 @@ internal static ExposureControlResponse DeserializeExposureControlResponse(JsonE return new ExposureControlResponse(featureName, value); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ExposureControlResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExposureControlResponse(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExposureControlResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ExposureControlResponse model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ExposureControlResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Expression.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Expression.Serialization.cs index 84e4d79589d41..eb8aa558e7a32 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Expression.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Expression.Serialization.cs @@ -49,12 +49,29 @@ internal static Expression DeserializeExpression(JsonElement element) return new Expression(type, value); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Expression FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExpression(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ExpressionConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Expression model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Expression Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FailActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FailActivity.Serialization.cs index e03c9de865b72..6a9bc02a80c3b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FailActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FailActivity.Serialization.cs @@ -191,12 +191,29 @@ internal static FailActivity DeserializeFailActivity(JsonElement element) errorCode); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FailActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFailActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FailActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FailActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FailActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerLinkedService.Serialization.cs index 97910ddddbbfb..4ff9e224df53f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerLinkedService.Serialization.cs @@ -218,12 +218,29 @@ internal static FileServerLinkedService DeserializeFileServerLinkedService(JsonE encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FileServerLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileServerLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FileServerLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FileServerLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FileServerLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerLocation.Serialization.cs index eefcbe30cf61a..acea6baa34d88 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerLocation.Serialization.cs @@ -81,12 +81,29 @@ internal static FileServerLocation DeserializeFileServerLocation(JsonElement ele return new FileServerLocation(type, folderPath, fileName, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FileServerLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileServerLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FileServerLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FileServerLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FileServerLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.Serialization.cs index d9e858f18c4e1..af06b8519d178 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.Serialization.cs @@ -229,12 +229,29 @@ internal static FileServerReadSettings DeserializeFileServerReadSettings(JsonEle fileFilter); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FileServerReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileServerReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FileServerReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FileServerReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FileServerReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerWriteSettings.Serialization.cs index 4c3db2ac5e7dc..1214214ee827c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerWriteSettings.Serialization.cs @@ -81,12 +81,29 @@ internal static FileServerWriteSettings DeserializeFileServerWriteSettings(JsonE return new FileServerWriteSettings(type, maxConcurrentConnections, copyBehavior, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FileServerWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileServerWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FileServerWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FileServerWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FileServerWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileShareDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileShareDataset.Serialization.cs index 1ff73c636cb97..f1a4f47e2625c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileShareDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileShareDataset.Serialization.cs @@ -314,12 +314,29 @@ internal static FileShareDataset DeserializeFileShareDataset(JsonElement element compression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FileShareDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileShareDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FileShareDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FileShareDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FileShareDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileSystemSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileSystemSink.Serialization.cs index c8f5e4c3f95ec..778d41e534835 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileSystemSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileSystemSink.Serialization.cs @@ -149,12 +149,29 @@ internal static FileSystemSink DeserializeFileSystemSink(JsonElement element) copyBehavior); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FileSystemSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileSystemSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FileSystemSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FileSystemSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FileSystemSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileSystemSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileSystemSource.Serialization.cs index e90f5ec2d8afe..346017eef6c3b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileSystemSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileSystemSource.Serialization.cs @@ -133,12 +133,29 @@ internal static FileSystemSource DeserializeFileSystemSource(JsonElement element additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FileSystemSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileSystemSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FileSystemSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FileSystemSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FileSystemSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FilterActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FilterActivity.Serialization.cs index 05e7886620e06..18303036c2ff6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FilterActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FilterActivity.Serialization.cs @@ -191,12 +191,29 @@ internal static FilterActivity DeserializeFilterActivity(JsonElement element) condition); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FilterActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFilterActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FilterActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FilterActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FilterActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Flowlet.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Flowlet.Serialization.cs index ba12d206f3863..77a4350d50ed1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Flowlet.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Flowlet.Serialization.cs @@ -240,12 +240,29 @@ internal static Flowlet DeserializeFlowlet(JsonElement element) scriptLines ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new Flowlet FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFlowlet(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FlowletConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Flowlet model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Flowlet Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ForEachActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ForEachActivity.Serialization.cs index f9036084e5477..afe583704abaf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ForEachActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ForEachActivity.Serialization.cs @@ -233,12 +233,29 @@ internal static ForEachActivity DeserializeForEachActivity(JsonElement element) activities); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ForEachActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeForEachActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ForEachActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ForEachActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ForEachActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatReadSettings.Serialization.cs index e183448b6822d..87c311127c4cb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatReadSettings.Serialization.cs @@ -47,12 +47,29 @@ internal static FormatReadSettings DeserializeFormatReadSettings(JsonElement ele return UnknownFormatReadSettings.DeserializeUnknownFormatReadSettings(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FormatReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFormatReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FormatReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FormatReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FormatReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatWriteSettings.Serialization.cs index 375149de4abb1..cea4fcd8f0131 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatWriteSettings.Serialization.cs @@ -48,12 +48,29 @@ internal static FormatWriteSettings DeserializeFormatWriteSettings(JsonElement e return UnknownFormatWriteSettings.DeserializeUnknownFormatWriteSettings(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static FormatWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFormatWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FormatWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FormatWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FormatWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.Serialization.cs index 8ecca108d7bd4..4bde66fdc05f8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.Serialization.cs @@ -213,12 +213,29 @@ internal static FtpReadSettings DeserializeFtpReadSettings(JsonElement element) disableChunking); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FtpReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFtpReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FtpReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FtpReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FtpReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpServerLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpServerLinkedService.Serialization.cs index a276789b875f9..4a8f51945a027 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpServerLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpServerLinkedService.Serialization.cs @@ -282,12 +282,29 @@ internal static FtpServerLinkedService DeserializeFtpServerLinkedService(JsonEle enableServerCertificateValidation); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FtpServerLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFtpServerLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FtpServerLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FtpServerLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FtpServerLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpServerLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpServerLocation.Serialization.cs index a24428b751608..faf72bf3cd4b2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpServerLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpServerLocation.Serialization.cs @@ -81,12 +81,29 @@ internal static FtpServerLocation DeserializeFtpServerLocation(JsonElement eleme return new FtpServerLocation(type, folderPath, fileName, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FtpServerLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFtpServerLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class FtpServerLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FtpServerLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override FtpServerLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetMetadataActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetMetadataActivity.Serialization.cs index 40af965474e87..b4282776209bc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetMetadataActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetMetadataActivity.Serialization.cs @@ -284,12 +284,29 @@ internal static GetMetadataActivity DeserializeGetMetadataActivity(JsonElement e formatSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GetMetadataActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetMetadataActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GetMetadataActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GetMetadataActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GetMetadataActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetSsisObjectMetadataRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetSsisObjectMetadataRequest.Serialization.cs index 14b7cf8b7b615..d6ef706662bce 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetSsisObjectMetadataRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GetSsisObjectMetadataRequest.Serialization.cs @@ -44,12 +44,29 @@ internal static GetSsisObjectMetadataRequest DeserializeGetSsisObjectMetadataReq return new GetSsisObjectMetadataRequest(metadataPath); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GetSsisObjectMetadataRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetSsisObjectMetadataRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GetSsisObjectMetadataRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GetSsisObjectMetadataRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GetSsisObjectMetadataRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubAccessTokenRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubAccessTokenRequest.Serialization.cs index 78ef8e64eba5c..39877af9ad3ff 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubAccessTokenRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubAccessTokenRequest.Serialization.cs @@ -27,12 +27,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GitHubAccessTokenRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GitHubAccessTokenRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GitHubAccessTokenRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubAccessTokenResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubAccessTokenResponse.Serialization.cs index 4147aef1d8eb2..394eb347dba43 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubAccessTokenResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubAccessTokenResponse.Serialization.cs @@ -32,12 +32,21 @@ internal static GitHubAccessTokenResponse DeserializeGitHubAccessTokenResponse(J return new GitHubAccessTokenResponse(gitHubAccessToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GitHubAccessTokenResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGitHubAccessTokenResponse(document.RootElement); + } + internal partial class GitHubAccessTokenResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GitHubAccessTokenResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override GitHubAccessTokenResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubClientSecret.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubClientSecret.Serialization.cs index d60cfa30715cf..c6dca9fe44eaa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubClientSecret.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GitHubClientSecret.Serialization.cs @@ -55,12 +55,29 @@ internal static GitHubClientSecret DeserializeGitHubClientSecret(JsonElement ele return new GitHubClientSecret(byoaSecretAkvUrl, byoaSecretName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GitHubClientSecret FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGitHubClientSecret(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GitHubClientSecretConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GitHubClientSecret model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GitHubClientSecret Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsLinkedService.Serialization.cs index d6831fe8a5a99..ff520dd980388 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsLinkedService.Serialization.cs @@ -353,12 +353,29 @@ internal static GoogleAdWordsLinkedService DeserializeGoogleAdWordsLinkedService encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleAdWordsLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleAdWordsLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleAdWordsLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleAdWordsLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleAdWordsLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsObjectDataset.Serialization.cs index e06c968277dbe..519079b1e40bb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static GoogleAdWordsObjectDataset DeserializeGoogleAdWordsObjectDataset tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleAdWordsObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleAdWordsObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleAdWordsObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleAdWordsObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleAdWordsObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsSource.Serialization.cs index 558e7d273cb8c..87c4486a5e85b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleAdWordsSource.Serialization.cs @@ -149,12 +149,29 @@ internal static GoogleAdWordsSource DeserializeGoogleAdWordsSource(JsonElement e query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleAdWordsSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleAdWordsSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleAdWordsSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleAdWordsSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleAdWordsSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQueryLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQueryLinkedService.Serialization.cs index 50a5a621c7a54..b94d195676895 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQueryLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQueryLinkedService.Serialization.cs @@ -339,12 +339,29 @@ internal static GoogleBigQueryLinkedService DeserializeGoogleBigQueryLinkedServi encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleBigQueryLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleBigQueryLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleBigQueryLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleBigQueryLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleBigQueryLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQueryObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQueryObjectDataset.Serialization.cs index a3d626b09bf5a..6af5ff126fc5b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQueryObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQueryObjectDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static GoogleBigQueryObjectDataset DeserializeGoogleBigQueryObjectDatas dataset); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleBigQueryObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleBigQueryObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleBigQueryObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleBigQueryObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleBigQueryObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQuerySource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQuerySource.Serialization.cs index 24c557959f970..66790db760fcc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQuerySource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleBigQuerySource.Serialization.cs @@ -149,12 +149,29 @@ internal static GoogleBigQuerySource DeserializeGoogleBigQuerySource(JsonElement query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleBigQuerySource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleBigQuerySource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleBigQuerySourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleBigQuerySource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleBigQuerySource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageLinkedService.Serialization.cs index 50dc44892026e..7d7b4c05b8f95 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageLinkedService.Serialization.cs @@ -225,12 +225,29 @@ internal static GoogleCloudStorageLinkedService DeserializeGoogleCloudStorageLin encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleCloudStorageLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleCloudStorageLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleCloudStorageLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleCloudStorageLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleCloudStorageLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageLocation.Serialization.cs index 10ae19e6abe43..d9e7e661c3891 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageLocation.Serialization.cs @@ -117,12 +117,29 @@ internal static GoogleCloudStorageLocation DeserializeGoogleCloudStorageLocation version); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleCloudStorageLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleCloudStorageLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleCloudStorageLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleCloudStorageLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleCloudStorageLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.Serialization.cs index d44c5d956b535..52c1a09bb5f38 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.Serialization.cs @@ -229,12 +229,29 @@ internal static GoogleCloudStorageReadSettings DeserializeGoogleCloudStorageRead modifiedDatetimeEnd); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleCloudStorageReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleCloudStorageReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleCloudStorageReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleCloudStorageReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleCloudStorageReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleSheetsLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleSheetsLinkedService.Serialization.cs index 564622a4cf4ba..1d9dbf26b577e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleSheetsLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleSheetsLinkedService.Serialization.cs @@ -186,12 +186,29 @@ internal static GoogleSheetsLinkedService DeserializeGoogleSheetsLinkedService(J encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GoogleSheetsLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGoogleSheetsLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GoogleSheetsLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GoogleSheetsLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GoogleSheetsLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.Serialization.cs index 1381c36a43cda..db9bf6ad69acd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumLinkedService.Serialization.cs @@ -209,12 +209,29 @@ internal static GreenplumLinkedService DeserializeGreenplumLinkedService(JsonEle encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GreenplumLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGreenplumLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GreenplumLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GreenplumLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GreenplumLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumSource.Serialization.cs index ea8516771d773..a6097e4e4de18 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumSource.Serialization.cs @@ -149,12 +149,29 @@ internal static GreenplumSource DeserializeGreenplumSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GreenplumSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGreenplumSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GreenplumSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GreenplumSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GreenplumSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumTableDataset.Serialization.cs index ba8f6a1bf81b6..12e31650f5402 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GreenplumTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static GreenplumTableDataset DeserializeGreenplumTableDataset(JsonEleme schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GreenplumTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGreenplumTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class GreenplumTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, GreenplumTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override GreenplumTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseLinkedService.Serialization.cs index 53e4969e4b65a..cd0ef3d5cbea7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseLinkedService.Serialization.cs @@ -323,12 +323,29 @@ internal static HBaseLinkedService DeserializeHBaseLinkedService(JsonElement ele encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HBaseLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHBaseLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HBaseLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HBaseLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HBaseLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseObjectDataset.Serialization.cs index e3f5fb2cd76d9..7f93df9a73f24 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static HBaseObjectDataset DeserializeHBaseObjectDataset(JsonElement ele tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HBaseObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHBaseObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HBaseObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HBaseObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HBaseObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseSource.Serialization.cs index fe595f927d860..6d68ad6a9ea18 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HBaseSource.Serialization.cs @@ -149,12 +149,29 @@ internal static HBaseSource DeserializeHBaseSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HBaseSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHBaseSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HBaseSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HBaseSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HBaseSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightHiveActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightHiveActivity.Serialization.cs index fed1a2669ad87..53b597c5ce03a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightHiveActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightHiveActivity.Serialization.cs @@ -410,12 +410,29 @@ internal static HDInsightHiveActivity DeserializeHDInsightHiveActivity(JsonEleme queryTimeout); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HDInsightHiveActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHDInsightHiveActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HDInsightHiveActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HDInsightHiveActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HDInsightHiveActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.Serialization.cs index d190c68274516..a6837ef35ecc1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightLinkedService.Serialization.cs @@ -282,12 +282,29 @@ internal static HDInsightLinkedService DeserializeHDInsightLinkedService(JsonEle fileSystem); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HDInsightLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHDInsightLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HDInsightLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HDInsightLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HDInsightLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightMapReduceActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightMapReduceActivity.Serialization.cs index 7b70fbfb0be0d..ca05674d5a6e1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightMapReduceActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightMapReduceActivity.Serialization.cs @@ -396,12 +396,29 @@ internal static HDInsightMapReduceActivity DeserializeHDInsightMapReduceActivity defines ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HDInsightMapReduceActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHDInsightMapReduceActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HDInsightMapReduceActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HDInsightMapReduceActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HDInsightMapReduceActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightOnDemandLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightOnDemandLinkedService.Serialization.cs index 0b6044b714aa7..d98831b9a64b3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightOnDemandLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightOnDemandLinkedService.Serialization.cs @@ -676,12 +676,29 @@ internal static HDInsightOnDemandLinkedService DeserializeHDInsightOnDemandLinke credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HDInsightOnDemandLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHDInsightOnDemandLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HDInsightOnDemandLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HDInsightOnDemandLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HDInsightOnDemandLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightPigActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightPigActivity.Serialization.cs index 8e2482e8eb61e..c9754d99c1d6f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightPigActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightPigActivity.Serialization.cs @@ -334,12 +334,29 @@ internal static HDInsightPigActivity DeserializeHDInsightPigActivity(JsonElement defines ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HDInsightPigActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHDInsightPigActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HDInsightPigActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HDInsightPigActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HDInsightPigActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightSparkActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightSparkActivity.Serialization.cs index d4d8248964ad5..bf02fe953c9a2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightSparkActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightSparkActivity.Serialization.cs @@ -360,12 +360,29 @@ internal static HDInsightSparkActivity DeserializeHDInsightSparkActivity(JsonEle sparkConfig ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HDInsightSparkActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHDInsightSparkActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HDInsightSparkActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HDInsightSparkActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HDInsightSparkActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightStreamingActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightStreamingActivity.Serialization.cs index 0cb9418fe828e..4f2d9083bae95 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightStreamingActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HDInsightStreamingActivity.Serialization.cs @@ -461,12 +461,29 @@ internal static HDInsightStreamingActivity DeserializeHDInsightStreamingActivity defines ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HDInsightStreamingActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHDInsightStreamingActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HDInsightStreamingActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HDInsightStreamingActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HDInsightStreamingActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsLinkedService.Serialization.cs index ddcf6c3833aee..dec7f17da145b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsLinkedService.Serialization.cs @@ -234,12 +234,29 @@ internal static HdfsLinkedService DeserializeHdfsLinkedService(JsonElement eleme password); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HdfsLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHdfsLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HdfsLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HdfsLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HdfsLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsLocation.Serialization.cs index 58a5c7da9e8f5..eac8503266a3b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsLocation.Serialization.cs @@ -81,12 +81,29 @@ internal static HdfsLocation DeserializeHdfsLocation(JsonElement element) return new HdfsLocation(type, folderPath, fileName, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HdfsLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHdfsLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HdfsLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HdfsLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HdfsLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.Serialization.cs index a0949ca24a6a3..88e76e4690b51 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.Serialization.cs @@ -229,12 +229,29 @@ internal static HdfsReadSettings DeserializeHdfsReadSettings(JsonElement element deleteFilesAfterCompletion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HdfsReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHdfsReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HdfsReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HdfsReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HdfsReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsSource.Serialization.cs index 2158db3d6efbd..7849d69c13459 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsSource.Serialization.cs @@ -133,12 +133,29 @@ internal static HdfsSource DeserializeHdfsSource(JsonElement element) distcpSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HdfsSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHdfsSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HdfsSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HdfsSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HdfsSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.Serialization.cs index ea4193fd59da4..7d0f79f08e3e4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveLinkedService.Serialization.cs @@ -419,12 +419,29 @@ internal static HiveLinkedService DeserializeHiveLinkedService(JsonElement eleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HiveLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHiveLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HiveLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HiveLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HiveLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveObjectDataset.Serialization.cs index 9e5846b226231..ad26fc65246f3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveObjectDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static HiveObjectDataset DeserializeHiveObjectDataset(JsonElement eleme schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HiveObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHiveObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HiveObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HiveObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HiveObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveSource.Serialization.cs index e8430264b9448..8c693412707d4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HiveSource.Serialization.cs @@ -149,12 +149,29 @@ internal static HiveSource DeserializeHiveSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HiveSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHiveSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HiveSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HiveSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HiveSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpDataset.Serialization.cs index ad10697a95da2..3f10cbd5c4bce 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpDataset.Serialization.cs @@ -298,12 +298,29 @@ internal static HttpDataset DeserializeHttpDataset(JsonElement element) compression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HttpDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHttpDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HttpDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HttpDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HttpDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpLinkedService.Serialization.cs index 54c3d08f9411c..93adc5ab65da8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpLinkedService.Serialization.cs @@ -282,12 +282,29 @@ internal static HttpLinkedService DeserializeHttpLinkedService(JsonElement eleme enableServerCertificateValidation); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HttpLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHttpLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HttpLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HttpLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HttpLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.Serialization.cs index 8afa466eff10f..881025ef7f017 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.Serialization.cs @@ -181,12 +181,29 @@ internal static HttpReadSettings DeserializeHttpReadSettings(JsonElement element additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HttpReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHttpReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HttpReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HttpReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HttpReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpServerLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpServerLocation.Serialization.cs index 1b0c157aeb2ac..a1dc1db75ff6d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpServerLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpServerLocation.Serialization.cs @@ -96,12 +96,29 @@ internal static HttpServerLocation DeserializeHttpServerLocation(JsonElement ele return new HttpServerLocation(type, folderPath, fileName, additionalProperties, relativeUrl); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HttpServerLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHttpServerLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HttpServerLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HttpServerLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HttpServerLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpSource.Serialization.cs index 2ef48fb50d9ab..8d1945d12118a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpSource.Serialization.cs @@ -117,12 +117,29 @@ internal static HttpSource DeserializeHttpSource(JsonElement element) httpRequestTimeout); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HttpSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHttpSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HttpSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HttpSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HttpSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotLinkedService.Serialization.cs index 43a75ff42e3be..96b0243b4b604 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotLinkedService.Serialization.cs @@ -282,12 +282,29 @@ internal static HubspotLinkedService DeserializeHubspotLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HubspotLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHubspotLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HubspotLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HubspotLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HubspotLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotObjectDataset.Serialization.cs index 0202b83342834..9ba1187f0d81b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static HubspotObjectDataset DeserializeHubspotObjectDataset(JsonElement tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HubspotObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHubspotObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HubspotObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HubspotObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HubspotObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotSource.Serialization.cs index fccb849b659aa..a763e5a0dcbf9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HubspotSource.Serialization.cs @@ -149,12 +149,29 @@ internal static HubspotSource DeserializeHubspotSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HubspotSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHubspotSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class HubspotSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, HubspotSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override HubspotSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IfConditionActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IfConditionActivity.Serialization.cs index e80637c637221..5ea2f6012540d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IfConditionActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IfConditionActivity.Serialization.cs @@ -234,12 +234,29 @@ internal static IfConditionActivity DeserializeIfConditionActivity(JsonElement e ifFalseActivities ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IfConditionActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIfConditionActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IfConditionActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IfConditionActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IfConditionActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.Serialization.cs index fe6bf4edb2ccb..0947dac9fdecc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaLinkedService.Serialization.cs @@ -323,12 +323,29 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ImpalaLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImpalaLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ImpalaLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ImpalaLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ImpalaLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaObjectDataset.Serialization.cs index df1606346d90a..81681c95c8352 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaObjectDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static ImpalaObjectDataset DeserializeImpalaObjectDataset(JsonElement e schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ImpalaObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImpalaObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ImpalaObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ImpalaObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ImpalaObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaSource.Serialization.cs index c4b16c1c17d96..c82b851e06c8d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImpalaSource.Serialization.cs @@ -149,12 +149,29 @@ internal static ImpalaSource DeserializeImpalaSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ImpalaSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImpalaSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ImpalaSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ImpalaSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ImpalaSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImportSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImportSettings.Serialization.cs index a66ebf6105013..3687ab2205ded 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImportSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImportSettings.Serialization.cs @@ -45,12 +45,29 @@ internal static ImportSettings DeserializeImportSettings(JsonElement element) return UnknownImportSettings.DeserializeUnknownImportSettings(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ImportSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImportSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ImportSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ImportSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ImportSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixLinkedService.Serialization.cs index 057457a4f7df6..2c0063f8a73b9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixLinkedService.Serialization.cs @@ -250,12 +250,29 @@ internal static InformixLinkedService DeserializeInformixLinkedService(JsonEleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new InformixLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInformixLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class InformixLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, InformixLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override InformixLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixSink.Serialization.cs index 6470fc243ae41..51b7b60a41f15 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixSink.Serialization.cs @@ -149,12 +149,29 @@ internal static InformixSink DeserializeInformixSink(JsonElement element) preCopyScript); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new InformixSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInformixSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class InformixSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, InformixSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override InformixSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixSource.Serialization.cs index 663dfd341449f..24d2f2b914daa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixSource.Serialization.cs @@ -149,12 +149,29 @@ internal static InformixSource DeserializeInformixSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new InformixSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInformixSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class InformixSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, InformixSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override InformixSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixTableDataset.Serialization.cs index 6adcbea0e1324..db3829547b849 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/InformixTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static InformixTableDataset DeserializeInformixTableDataset(JsonElement tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new InformixTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInformixTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class InformixTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, InformixTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override InformixTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntime.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntime.Serialization.cs index c542dee4935ed..bb88a7120b31e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntime.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntime.Serialization.cs @@ -50,12 +50,29 @@ internal static IntegrationRuntime DeserializeIntegrationRuntime(JsonElement ele return UnknownIntegrationRuntime.DeserializeUnknownIntegrationRuntime(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntime FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntime(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntime model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeComputeProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeComputeProperties.Serialization.cs index 7211d330b786f..3f78487cd324b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeComputeProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeComputeProperties.Serialization.cs @@ -132,12 +132,29 @@ internal static IntegrationRuntimeComputeProperties DeserializeIntegrationRuntim additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntimeComputeProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeComputeProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeComputePropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeComputeProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeComputeProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeCustomSetupScriptProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeCustomSetupScriptProperties.Serialization.cs index a39b59b43eb62..25f16c240b1d5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeCustomSetupScriptProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeCustomSetupScriptProperties.Serialization.cs @@ -59,12 +59,29 @@ internal static IntegrationRuntimeCustomSetupScriptProperties DeserializeIntegra return new IntegrationRuntimeCustomSetupScriptProperties(blobContainerUri, sasToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntimeCustomSetupScriptProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeCustomSetupScriptProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeCustomSetupScriptPropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeCustomSetupScriptProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeCustomSetupScriptProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDataFlowProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDataFlowProperties.Serialization.cs index ab304bbaccabb..d7db62c8cbd16 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDataFlowProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDataFlowProperties.Serialization.cs @@ -103,12 +103,29 @@ internal static IntegrationRuntimeDataFlowProperties DeserializeIntegrationRunti return new IntegrationRuntimeDataFlowProperties(computeType, coreCount, timeToLive, cleanup, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntimeDataFlowProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeDataFlowProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeDataFlowPropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeDataFlowProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeDataFlowProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDataProxyProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDataProxyProperties.Serialization.cs index c7d17ae34de09..83f3cab997db9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDataProxyProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDataProxyProperties.Serialization.cs @@ -74,12 +74,29 @@ internal static IntegrationRuntimeDataProxyProperties DeserializeIntegrationRunt return new IntegrationRuntimeDataProxyProperties(connectVia, stagingLinkedService, path); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntimeDataProxyProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeDataProxyProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeDataProxyPropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeDataProxyProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeDataProxyProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDebugResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDebugResource.Serialization.cs index af9625837e367..d3d954c77c54e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDebugResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeDebugResource.Serialization.cs @@ -52,12 +52,29 @@ internal static IntegrationRuntimeDebugResource DeserializeIntegrationRuntimeDeb return new IntegrationRuntimeDebugResource(name, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IntegrationRuntimeDebugResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeDebugResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeDebugResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeDebugResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeDebugResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeListResponse.Serialization.cs index c8c47fc089e4a..aa56343d061b9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static IntegrationRuntimeListResponse DeserializeIntegrationRuntimeList return new IntegrationRuntimeListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntimeListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeListResponse(document.RootElement); + } + internal partial class IntegrationRuntimeListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override IntegrationRuntimeListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeReference.Serialization.cs index 2105930c5b368..0abe69a158e44 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeReference.Serialization.cs @@ -88,12 +88,29 @@ internal static IntegrationRuntimeReference DeserializeIntegrationRuntimeReferen return new IntegrationRuntimeReference(type, referenceName, parameters ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntimeReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeResource.Serialization.cs index fb1fafc6aae72..477d6d4fcda7e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeResource.Serialization.cs @@ -65,12 +65,29 @@ internal static IntegrationRuntimeResource DeserializeIntegrationRuntimeResource return new IntegrationRuntimeResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IntegrationRuntimeResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisCatalogInfo.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisCatalogInfo.Serialization.cs index fe80e2378894d..4f990d7b1b26d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisCatalogInfo.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisCatalogInfo.Serialization.cs @@ -95,12 +95,29 @@ internal static IntegrationRuntimeSsisCatalogInfo DeserializeIntegrationRuntimeS return new IntegrationRuntimeSsisCatalogInfo(catalogServerEndpoint, catalogAdminUserName, catalogAdminPassword, catalogPricingTier, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntimeSsisCatalogInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeSsisCatalogInfo(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeSsisCatalogInfoConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeSsisCatalogInfo model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeSsisCatalogInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisProperties.Serialization.cs index f216ffe22468a..fdb3ae89ea0bb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeSsisProperties.Serialization.cs @@ -150,12 +150,29 @@ internal static IntegrationRuntimeSsisProperties DeserializeIntegrationRuntimeSs additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntimeSsisProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeSsisProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeSsisPropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeSsisProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeSsisProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeVNetProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeVNetProperties.Serialization.cs index 34f983e41c92d..e804225d8cfdd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeVNetProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntimeVNetProperties.Serialization.cs @@ -90,12 +90,29 @@ internal static IntegrationRuntimeVNetProperties DeserializeIntegrationRuntimeVN return new IntegrationRuntimeVNetProperties(vNetId, subnet, publicIPs ?? new ChangeTrackingList(), additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IntegrationRuntimeVNetProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIntegrationRuntimeVNetProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class IntegrationRuntimeVNetPropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, IntegrationRuntimeVNetProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override IntegrationRuntimeVNetProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraLinkedService.Serialization.cs index 7dacf9b79b005..f7668fc241337 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraLinkedService.Serialization.cs @@ -275,12 +275,29 @@ internal static JiraLinkedService DeserializeJiraLinkedService(JsonElement eleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new JiraLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJiraLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class JiraLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, JiraLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override JiraLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraObjectDataset.Serialization.cs index 5ccf0b27e0c6f..ce2329bc87f69 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static JiraObjectDataset DeserializeJiraObjectDataset(JsonElement eleme tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new JiraObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJiraObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class JiraObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, JiraObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override JiraObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraSource.Serialization.cs index 61df1ad22745d..6e3c496400fac 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JiraSource.Serialization.cs @@ -149,12 +149,29 @@ internal static JiraSource DeserializeJiraSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new JiraSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJiraSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class JiraSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, JiraSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override JiraSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonDataset.Serialization.cs index 8010e362d63a9..cf9ec4dddfee7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static JsonDataset DeserializeJsonDataset(JsonElement element) compression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new JsonDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJsonDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class JsonDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, JsonDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override JsonDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonFormat.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonFormat.Serialization.cs index e15bc7ed67e7f..dbf0ffb1e3048 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonFormat.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonFormat.Serialization.cs @@ -165,12 +165,29 @@ internal static JsonFormat DeserializeJsonFormat(JsonElement element) jsonPathDefinition); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new JsonFormat FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJsonFormat(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class JsonFormatConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, JsonFormat model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override JsonFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonReadSettings.Serialization.cs index af869a6de2444..8b817432eea4a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonReadSettings.Serialization.cs @@ -66,12 +66,29 @@ internal static JsonReadSettings DeserializeJsonReadSettings(JsonElement element return new JsonReadSettings(type, additionalProperties, compressionProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new JsonReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJsonReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class JsonReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, JsonReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override JsonReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonSink.Serialization.cs index f8442fd69a23b..c36b21ac036d0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonSink.Serialization.cs @@ -165,12 +165,29 @@ internal static JsonSink DeserializeJsonSink(JsonElement element) formatSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new JsonSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJsonSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class JsonSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, JsonSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override JsonSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonSource.Serialization.cs index 1741582e5ba78..94a201de29a9e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonSource.Serialization.cs @@ -149,12 +149,29 @@ internal static JsonSource DeserializeJsonSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new JsonSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJsonSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class JsonSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, JsonSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override JsonSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonWriteSettings.Serialization.cs index d1658f5f3043e..ddae77d972185 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/JsonWriteSettings.Serialization.cs @@ -66,12 +66,29 @@ internal static JsonWriteSettings DeserializeJsonWriteSettings(JsonElement eleme return new JsonWriteSettings(type, additionalProperties, filePattern); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new JsonWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJsonWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class JsonWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, JsonWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override JsonWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScript.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScript.Serialization.cs index c1b6ff721d3bd..e6e72dc0ad1a3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScript.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScript.Serialization.cs @@ -48,12 +48,29 @@ internal static KqlScript DeserializeKqlScript(JsonElement element) return new KqlScript(content); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KqlScript FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKqlScript(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class KqlScriptConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KqlScript model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override KqlScript Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContent.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContent.Serialization.cs index 884c3a5220d00..54c7675dea48f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContent.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContent.Serialization.cs @@ -70,5 +70,21 @@ internal static KqlScriptContent DeserializeKqlScriptContent(JsonElement element } return new KqlScriptContent(query, metadata, currentConnection); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KqlScriptContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKqlScriptContent(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContentCurrentConnection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContentCurrentConnection.Serialization.cs index 7965ff2444c1c..e0618bc6fa86b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContentCurrentConnection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContentCurrentConnection.Serialization.cs @@ -73,5 +73,21 @@ internal static KqlScriptContentCurrentConnection DeserializeKqlScriptContentCur } return new KqlScriptContentCurrentConnection(name, poolName, databaseName, type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KqlScriptContentCurrentConnection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKqlScriptContentCurrentConnection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContentMetadata.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContentMetadata.Serialization.cs index ff865d16c4189..45b25f01637d9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContentMetadata.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptContentMetadata.Serialization.cs @@ -40,5 +40,21 @@ internal static KqlScriptContentMetadata DeserializeKqlScriptContentMetadata(Jso } return new KqlScriptContentMetadata(language); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KqlScriptContentMetadata FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKqlScriptContentMetadata(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptResource.Serialization.cs index e147958f72450..233ae92412985 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptResource.Serialization.cs @@ -81,12 +81,29 @@ internal static KqlScriptResource DeserializeKqlScriptResource(JsonElement eleme return new KqlScriptResource(id, name, type, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KqlScriptResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKqlScriptResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class KqlScriptResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KqlScriptResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override KqlScriptResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.Serialization.cs index 134d5927bf1f3..ec8ef06838f0a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/KqlScriptsResourceCollectionResponse.Serialization.cs @@ -48,12 +48,21 @@ internal static KqlScriptsResourceCollectionResponse DeserializeKqlScriptsResour return new KqlScriptsResourceCollectionResponse(value ?? new ChangeTrackingList(), nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KqlScriptsResourceCollectionResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKqlScriptsResourceCollectionResponse(document.RootElement); + } + internal partial class KqlScriptsResourceCollectionResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, KqlScriptsResourceCollectionResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override KqlScriptsResourceCollectionResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryInfo.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryInfo.Serialization.cs index ec1aa7952421a..21bb910bef1f0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryInfo.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryInfo.Serialization.cs @@ -111,12 +111,29 @@ internal static LibraryInfo DeserializeLibraryInfo(JsonElement element) creatorId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LibraryInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLibraryInfo(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LibraryInfoConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LibraryInfo model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LibraryInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryListResponse.Serialization.cs index 26cd4b0a65890..e236f7ccdf3e5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static LibraryListResponse DeserializeLibraryListResponse(JsonElement e return new LibraryListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LibraryListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLibraryListResponse(document.RootElement); + } + internal partial class LibraryListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LibraryListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LibraryListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryRequirements.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryRequirements.Serialization.cs index 77c51cbd09ac3..dc62b89fbf2f5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryRequirements.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryRequirements.Serialization.cs @@ -65,12 +65,29 @@ internal static LibraryRequirements DeserializeLibraryRequirements(JsonElement e return new LibraryRequirements(time, content, filename); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LibraryRequirements FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLibraryRequirements(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LibraryRequirementsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LibraryRequirements model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LibraryRequirements Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResource.Serialization.cs index f1a1781adb2c8..b5e2d299a3c31 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResource.Serialization.cs @@ -65,12 +65,29 @@ internal static LibraryResource DeserializeLibraryResource(JsonElement element) return new LibraryResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LibraryResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLibraryResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LibraryResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LibraryResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LibraryResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResourceInfo.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResourceInfo.Serialization.cs index 25f9c010f9814..6487362d044fd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResourceInfo.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResourceInfo.Serialization.cs @@ -93,12 +93,21 @@ internal static LibraryResourceInfo DeserializeLibraryResourceInfo(JsonElement e artifactId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LibraryResourceInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLibraryResourceInfo(document.RootElement); + } + internal partial class LibraryResourceInfoConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LibraryResourceInfo model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LibraryResourceInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResourceProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResourceProperties.Serialization.cs index a4cd0ff3f6d7f..8adc3dfec4217 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResourceProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LibraryResourceProperties.Serialization.cs @@ -82,12 +82,29 @@ internal static LibraryResourceProperties DeserializeLibraryResourceProperties(J creatorId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LibraryResourceProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLibraryResourceProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LibraryResourcePropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LibraryResourceProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LibraryResourceProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnection.Serialization.cs index 0514588719518..22401eff76592 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnection.Serialization.cs @@ -93,12 +93,29 @@ internal static LinkConnection DeserializeLinkConnection(JsonElement element) return new LinkConnection(sourceDatabase, targetDatabase, landingZone, compute); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkConnectionConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnection model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkConnection Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionCompute.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionCompute.Serialization.cs index 859fb9ff5a3ab..8f01ef02aed13 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionCompute.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionCompute.Serialization.cs @@ -74,12 +74,29 @@ internal static LinkConnectionCompute DeserializeLinkConnectionCompute(JsonEleme return new LinkConnectionCompute(coreCount, computeType, dataProcessIntervalMinutes); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionCompute FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionCompute(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkConnectionComputeConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionCompute model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkConnectionCompute Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionDetailedStatus.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionDetailedStatus.Serialization.cs index 85bf93b94308d..01e6dbe773914 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionDetailedStatus.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionDetailedStatus.Serialization.cs @@ -131,12 +131,21 @@ internal static LinkConnectionDetailedStatus DeserializeLinkConnectionDetailedSt landingZoneCredentialExpireTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionDetailedStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionDetailedStatus(document.RootElement); + } + internal partial class LinkConnectionDetailedStatusConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionDetailedStatus model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LinkConnectionDetailedStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionLandingZone.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionLandingZone.Serialization.cs index 80696ddc0a471..46b2d64f61c7f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionLandingZone.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionLandingZone.Serialization.cs @@ -85,12 +85,29 @@ internal static LinkConnectionLandingZone DeserializeLinkConnectionLandingZone(J return new LinkConnectionLandingZone(linkedService, fileSystem, folderPath, sasToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionLandingZone FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionLandingZone(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkConnectionLandingZoneConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionLandingZone model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkConnectionLandingZone Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionListResponse.Serialization.cs index a285f664ebe9b..0e206bde8b244 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static LinkConnectionListResponse DeserializeLinkConnectionListResponse return new LinkConnectionListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionListResponse(document.RootElement); + } + internal partial class LinkConnectionListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LinkConnectionListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.Serialization.cs index 9f47de0681d87..7e42577ad54c2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionQueryTableStatus.Serialization.cs @@ -52,12 +52,21 @@ internal static LinkConnectionQueryTableStatus DeserializeLinkConnectionQueryTab return new LinkConnectionQueryTableStatus(value ?? new ChangeTrackingList(), continuationToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionQueryTableStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionQueryTableStatus(document.RootElement); + } + internal partial class LinkConnectionQueryTableStatusConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionQueryTableStatus model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LinkConnectionQueryTableStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionRefreshStatus.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionRefreshStatus.Serialization.cs index a7e2e49ee0012..019ea7f605e65 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionRefreshStatus.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionRefreshStatus.Serialization.cs @@ -38,12 +38,21 @@ internal static LinkConnectionRefreshStatus DeserializeLinkConnectionRefreshStat return new LinkConnectionRefreshStatus(refreshStatus, errorMessage); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionRefreshStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionRefreshStatus(document.RootElement); + } + internal partial class LinkConnectionRefreshStatusConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionRefreshStatus model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LinkConnectionRefreshStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionResource.Serialization.cs index 2787ae0828f4a..3a715db2b8d9a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionResource.Serialization.cs @@ -85,12 +85,29 @@ internal static LinkConnectionResource DeserializeLinkConnectionResource(JsonEle return new LinkConnectionResource(id, name, type, properties, description); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkConnectionResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkConnectionResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionSourceDatabase.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionSourceDatabase.Serialization.cs index 6198dbde4955a..d8dbb0d9994e8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionSourceDatabase.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionSourceDatabase.Serialization.cs @@ -63,12 +63,29 @@ internal static LinkConnectionSourceDatabase DeserializeLinkConnectionSourceData return new LinkConnectionSourceDatabase(linkedService, typeProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionSourceDatabase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionSourceDatabase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkConnectionSourceDatabaseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionSourceDatabase model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkConnectionSourceDatabase Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionSourceDatabaseTypeProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionSourceDatabaseTypeProperties.Serialization.cs index 7208ed26a04b3..f64617b4e56f8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionSourceDatabaseTypeProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionSourceDatabaseTypeProperties.Serialization.cs @@ -55,12 +55,29 @@ internal static LinkConnectionSourceDatabaseTypeProperties DeserializeLinkConnec return new LinkConnectionSourceDatabaseTypeProperties(resourceId, principalId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionSourceDatabaseTypeProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionSourceDatabaseTypeProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkConnectionSourceDatabaseTypePropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionSourceDatabaseTypeProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkConnectionSourceDatabaseTypeProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionTargetDatabase.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionTargetDatabase.Serialization.cs index 8583f0132f715..99b691cd81d88 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionTargetDatabase.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionTargetDatabase.Serialization.cs @@ -63,12 +63,29 @@ internal static LinkConnectionTargetDatabase DeserializeLinkConnectionTargetData return new LinkConnectionTargetDatabase(linkedService, typeProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionTargetDatabase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionTargetDatabase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkConnectionTargetDatabaseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionTargetDatabase model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkConnectionTargetDatabase Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionTargetDatabaseTypeProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionTargetDatabaseTypeProperties.Serialization.cs index af7c82e48e439..2058796497329 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionTargetDatabaseTypeProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkConnectionTargetDatabaseTypeProperties.Serialization.cs @@ -78,12 +78,29 @@ internal static LinkConnectionTargetDatabaseTypeProperties DeserializeLinkConnec return new LinkConnectionTargetDatabaseTypeProperties(crossTableTransaction, dropExistingTargetTableOnStart, actionOnExistingTargetTable); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkConnectionTargetDatabaseTypeProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkConnectionTargetDatabaseTypeProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkConnectionTargetDatabaseTypePropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkConnectionTargetDatabaseTypeProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkConnectionTargetDatabaseTypeProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.Serialization.cs index aaa146af1e867..ca0e3afed55a3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableListResponse.Serialization.cs @@ -42,12 +42,21 @@ internal static LinkTableListResponse DeserializeLinkTableListResponse(JsonEleme return new LinkTableListResponse(value ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkTableListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkTableListResponse(document.RootElement); + } + internal partial class LinkTableListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkTableListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LinkTableListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequest.Serialization.cs index 7b6cd10de7bb9..a96ad3bc22d3f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequest.Serialization.cs @@ -85,12 +85,29 @@ internal static LinkTableRequest DeserializeLinkTableRequest(JsonElement element return new LinkTableRequest(id, source, target, operationType); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkTableRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkTableRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkTableRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkTableRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkTableRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestSource.Serialization.cs index eea3adbf7c826..fbf651674d8e7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestSource.Serialization.cs @@ -55,12 +55,29 @@ internal static LinkTableRequestSource DeserializeLinkTableRequestSource(JsonEle return new LinkTableRequestSource(tableName, schemaName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkTableRequestSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkTableRequestSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkTableRequestSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkTableRequestSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkTableRequestSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTarget.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTarget.Serialization.cs index f81e0c7d49979..4783373189b47 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTarget.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTarget.Serialization.cs @@ -85,12 +85,29 @@ internal static LinkTableRequestTarget DeserializeLinkTableRequestTarget(JsonEle return new LinkTableRequestTarget(tableName, schemaName, distributionOptions, structureOptions); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkTableRequestTarget FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkTableRequestTarget(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkTableRequestTargetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkTableRequestTarget model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkTableRequestTarget Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTargetDistributionOptions.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTargetDistributionOptions.Serialization.cs index 345ce6940aa14..7b80bb7a7bf5a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTargetDistributionOptions.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTargetDistributionOptions.Serialization.cs @@ -55,12 +55,29 @@ internal static LinkTableRequestTargetDistributionOptions DeserializeLinkTableRe return new LinkTableRequestTargetDistributionOptions(type, distributionColumn); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkTableRequestTargetDistributionOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkTableRequestTargetDistributionOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkTableRequestTargetDistributionOptionsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkTableRequestTargetDistributionOptions model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkTableRequestTargetDistributionOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTargetStructureOptions.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTargetStructureOptions.Serialization.cs index f6b1d9be8351a..f141f64571872 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTargetStructureOptions.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableRequestTargetStructureOptions.Serialization.cs @@ -44,12 +44,29 @@ internal static LinkTableRequestTargetStructureOptions DeserializeLinkTableReque return new LinkTableRequestTargetStructureOptions(type); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkTableRequestTargetStructureOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkTableRequestTargetStructureOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkTableRequestTargetStructureOptionsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkTableRequestTargetStructureOptions model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkTableRequestTargetStructureOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableResource.Serialization.cs index ef67f2c1da85c..bc5b188f5540f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableResource.Serialization.cs @@ -58,12 +58,21 @@ internal static LinkTableResource DeserializeLinkTableResource(JsonElement eleme return new LinkTableResource(id, name, source, target); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkTableResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkTableResource(document.RootElement); + } + internal partial class LinkTableResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkTableResource model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LinkTableResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableStatus.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableStatus.Serialization.cs index 11c9fad9cb052..c4a71b35804c2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableStatus.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkTableStatus.Serialization.cs @@ -105,12 +105,21 @@ internal static LinkTableStatus DeserializeLinkTableStatus(JsonElement element) lastTransactionCommitTime); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkTableStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkTableStatus(document.RootElement); + } + internal partial class LinkTableStatusConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkTableStatus model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LinkTableStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeKeyAuthorization.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeKeyAuthorization.Serialization.cs index 49f7f7698db2d..7115beaeba0e8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeKeyAuthorization.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeKeyAuthorization.Serialization.cs @@ -49,12 +49,29 @@ internal static LinkedIntegrationRuntimeKeyAuthorization DeserializeLinkedIntegr return new LinkedIntegrationRuntimeKeyAuthorization(authorizationType, key); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LinkedIntegrationRuntimeKeyAuthorization FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedIntegrationRuntimeKeyAuthorization(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkedIntegrationRuntimeKeyAuthorizationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkedIntegrationRuntimeKeyAuthorization model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkedIntegrationRuntimeKeyAuthorization Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.Serialization.cs index 3f13b79b4bfbe..fd0559620182e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.Serialization.cs @@ -49,12 +49,29 @@ internal static LinkedIntegrationRuntimeRbacAuthorization DeserializeLinkedInteg return new LinkedIntegrationRuntimeRbacAuthorization(authorizationType, resourceId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LinkedIntegrationRuntimeRbacAuthorization FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedIntegrationRuntimeRbacAuthorization(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkedIntegrationRuntimeRbacAuthorizationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkedIntegrationRuntimeRbacAuthorization model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkedIntegrationRuntimeRbacAuthorization Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeType.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeType.Serialization.cs index c9fc5fa44d8af..2313176574d57 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeType.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedIntegrationRuntimeType.Serialization.cs @@ -40,12 +40,29 @@ internal static LinkedIntegrationRuntimeType DeserializeLinkedIntegrationRuntime return UnknownLinkedIntegrationRuntimeType.DeserializeUnknownLinkedIntegrationRuntimeType(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkedIntegrationRuntimeType FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedIntegrationRuntimeType(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkedIntegrationRuntimeTypeConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkedIntegrationRuntimeType model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkedIntegrationRuntimeType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.Serialization.cs index 822b7c199905b..00b29360bc395 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.Serialization.cs @@ -191,12 +191,29 @@ internal static LinkedService DeserializeLinkedService(JsonElement element) return UnknownLinkedService.DeserializeUnknownLinkedService(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceDebugResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceDebugResource.Serialization.cs index 87a2865072bb8..8dd4bcad359a8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceDebugResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceDebugResource.Serialization.cs @@ -52,12 +52,29 @@ internal static LinkedServiceDebugResource DeserializeLinkedServiceDebugResource return new LinkedServiceDebugResource(name, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LinkedServiceDebugResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedServiceDebugResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkedServiceDebugResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkedServiceDebugResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkedServiceDebugResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceListResponse.Serialization.cs index 0e80789b7b3a7..c77ea5c8f8748 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static LinkedServiceListResponse DeserializeLinkedServiceListResponse(J return new LinkedServiceListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkedServiceListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedServiceListResponse(document.RootElement); + } + internal partial class LinkedServiceListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkedServiceListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override LinkedServiceListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceReference.Serialization.cs index 36e17cee2ca51..e2c1c3a6364d6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceReference.Serialization.cs @@ -88,12 +88,29 @@ internal static LinkedServiceReference DeserializeLinkedServiceReference(JsonEle return new LinkedServiceReference(type, referenceName, parameters ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkedServiceReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedServiceReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkedServiceReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkedServiceReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkedServiceReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceResource.Serialization.cs index 7483c51fc52f3..19091b460235b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedServiceResource.Serialization.cs @@ -65,12 +65,29 @@ internal static LinkedServiceResource DeserializeLinkedServiceResource(JsonEleme return new LinkedServiceResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LinkedServiceResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedServiceResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LinkedServiceResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LinkedServiceResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LinkedServiceResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogLocationSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogLocationSettings.Serialization.cs index 5a4d0d17801f8..cd2981364140a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogLocationSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogLocationSettings.Serialization.cs @@ -56,12 +56,29 @@ internal static LogLocationSettings DeserializeLogLocationSettings(JsonElement e return new LogLocationSettings(linkedServiceName, path); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LogLocationSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLogLocationSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LogLocationSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LogLocationSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LogLocationSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogSettings.Serialization.cs index fa1eb3a20baf7..0a92a6ef35b46 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogSettings.Serialization.cs @@ -71,12 +71,29 @@ internal static LogSettings DeserializeLogSettings(JsonElement element) return new LogSettings(enableCopyActivityLog, copyActivityLogSettings, logLocationSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LogSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLogSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LogSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LogSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LogSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogStorageSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogStorageSettings.Serialization.cs index 391ad773ad54d..cb874a87977ec 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogStorageSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LogStorageSettings.Serialization.cs @@ -96,12 +96,29 @@ internal static LogStorageSettings DeserializeLogStorageSettings(JsonElement ele return new LogStorageSettings(linkedServiceName, path, logLevel, enableReliableLogging, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LogStorageSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLogStorageSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LogStorageSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LogStorageSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LogStorageSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LookupActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LookupActivity.Serialization.cs index 9577d5810b36c..675260944bb1a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LookupActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LookupActivity.Serialization.cs @@ -239,12 +239,29 @@ internal static LookupActivity DeserializeLookupActivity(JsonElement element) firstRowOnly); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LookupActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLookupActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class LookupActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, LookupActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override LookupActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoLinkedService.Serialization.cs index 2a6d9be77f2a7..e701661f4ba3f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoLinkedService.Serialization.cs @@ -250,12 +250,29 @@ internal static MagentoLinkedService DeserializeMagentoLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MagentoLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMagentoLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MagentoLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MagentoLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MagentoLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoObjectDataset.Serialization.cs index db98a85863e45..bd8ae8d352cef 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static MagentoObjectDataset DeserializeMagentoObjectDataset(JsonElement tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MagentoObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMagentoObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MagentoObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MagentoObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MagentoObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoSource.Serialization.cs index acf09e2473743..a078ae32ce199 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MagentoSource.Serialization.cs @@ -149,12 +149,29 @@ internal static MagentoSource DeserializeMagentoSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MagentoSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMagentoSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MagentoSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MagentoSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MagentoSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentity.Serialization.cs index c8aee9a6f74bc..05b6d05d0e518 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentity.Serialization.cs @@ -64,12 +64,29 @@ internal static ManagedIdentity DeserializeManagedIdentity(JsonElement element) return new ManagedIdentity(principalId, tenantId, type); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ManagedIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManagedIdentity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ManagedIdentityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ManagedIdentity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ManagedIdentity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIntegrationRuntime.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIntegrationRuntime.Serialization.cs index a8bb7b773e263..ef4f0d5becf7e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIntegrationRuntime.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIntegrationRuntime.Serialization.cs @@ -139,12 +139,29 @@ internal static ManagedIntegrationRuntime DeserializeManagedIntegrationRuntime(J ssisProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ManagedIntegrationRuntime FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManagedIntegrationRuntime(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ManagedIntegrationRuntimeConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ManagedIntegrationRuntime model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ManagedIntegrationRuntime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkReference.Serialization.cs index b7ee0ecda10e3..ffa81702f40e7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkReference.Serialization.cs @@ -49,12 +49,29 @@ internal static ManagedVirtualNetworkReference DeserializeManagedVirtualNetworkR return new ManagedVirtualNetworkReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ManagedVirtualNetworkReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManagedVirtualNetworkReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ManagedVirtualNetworkReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ManagedVirtualNetworkReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ManagedVirtualNetworkReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkSettings.Serialization.cs index 3f8c98f30b588..2bd9ebc70c880 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedVirtualNetworkSettings.Serialization.cs @@ -89,12 +89,29 @@ internal static ManagedVirtualNetworkSettings DeserializeManagedVirtualNetworkSe return new ManagedVirtualNetworkSettings(preventDataExfiltration, linkedAccessCheckOnTargetResource, allowedAadTenantIdsForLinking ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ManagedVirtualNetworkSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManagedVirtualNetworkSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ManagedVirtualNetworkSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ManagedVirtualNetworkSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ManagedVirtualNetworkSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MappingDataFlow.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MappingDataFlow.Serialization.cs index f0573b94b0108..569c17439aed7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MappingDataFlow.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MappingDataFlow.Serialization.cs @@ -240,12 +240,29 @@ internal static MappingDataFlow DeserializeMappingDataFlow(JsonElement element) scriptLines ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MappingDataFlow FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMappingDataFlow(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MappingDataFlowConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MappingDataFlow model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MappingDataFlow Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBLinkedService.Serialization.cs index a925cb3d79457..94b614713c72a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBLinkedService.Serialization.cs @@ -209,12 +209,29 @@ internal static MariaDBLinkedService DeserializeMariaDBLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MariaDBLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMariaDBLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MariaDBLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MariaDBLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MariaDBLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBSource.Serialization.cs index b6547eb4f467f..96800a9438e19 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBSource.Serialization.cs @@ -149,12 +149,29 @@ internal static MariaDBSource DeserializeMariaDBSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MariaDBSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMariaDBSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MariaDBSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MariaDBSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MariaDBSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBTableDataset.Serialization.cs index fce58c00dda69..3995106e2b165 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MariaDBTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static MariaDBTableDataset DeserializeMariaDBTableDataset(JsonElement e tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MariaDBTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMariaDBTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MariaDBTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MariaDBTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MariaDBTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoLinkedService.Serialization.cs index 14a85eeffc45d..f94c337b72b2d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoLinkedService.Serialization.cs @@ -259,12 +259,29 @@ internal static MarketoLinkedService DeserializeMarketoLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MarketoLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMarketoLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MarketoLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MarketoLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MarketoLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoObjectDataset.Serialization.cs index 82967e2800d21..40f38356fe4ec 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static MarketoObjectDataset DeserializeMarketoObjectDataset(JsonElement tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MarketoObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMarketoObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MarketoObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MarketoObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MarketoObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoSource.Serialization.cs index 61c4f526dcddb..6f4fbed3d10b7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MarketoSource.Serialization.cs @@ -149,12 +149,29 @@ internal static MarketoSource DeserializeMarketoSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MarketoSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMarketoSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MarketoSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MarketoSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MarketoSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRegisterObject.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRegisterObject.Serialization.cs index e765310fd7874..d4bbe126a811f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRegisterObject.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRegisterObject.Serialization.cs @@ -23,12 +23,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MetastoreRegisterObjectConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MetastoreRegisterObject model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MetastoreRegisterObject Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRegistrationResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRegistrationResponse.Serialization.cs index 1d8019d505cf0..e8c8257a6dff5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRegistrationResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRegistrationResponse.Serialization.cs @@ -36,12 +36,21 @@ internal static MetastoreRegistrationResponse DeserializeMetastoreRegistrationRe return new MetastoreRegistrationResponse(status); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetastoreRegistrationResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetastoreRegistrationResponse(document.RootElement); + } + internal partial class MetastoreRegistrationResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MetastoreRegistrationResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MetastoreRegistrationResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRequestSuccessResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRequestSuccessResponse.Serialization.cs index 884a5c25556d4..38605d0f21e58 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRequestSuccessResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreRequestSuccessResponse.Serialization.cs @@ -36,12 +36,21 @@ internal static MetastoreRequestSuccessResponse DeserializeMetastoreRequestSucce return new MetastoreRequestSuccessResponse(status); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetastoreRequestSuccessResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetastoreRequestSuccessResponse(document.RootElement); + } + internal partial class MetastoreRequestSuccessResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MetastoreRequestSuccessResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MetastoreRequestSuccessResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreUpdateObject.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreUpdateObject.Serialization.cs index fa9b7e565c769..4e43c2d93a10d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreUpdateObject.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreUpdateObject.Serialization.cs @@ -23,12 +23,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MetastoreUpdateObjectConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MetastoreUpdateObject model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MetastoreUpdateObject Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreUpdationResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreUpdationResponse.Serialization.cs index c1b7561f76841..701ca61cbb870 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreUpdationResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MetastoreUpdationResponse.Serialization.cs @@ -36,12 +36,21 @@ internal static MetastoreUpdationResponse DeserializeMetastoreUpdationResponse(J return new MetastoreUpdationResponse(status); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MetastoreUpdationResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMetastoreUpdationResponse(document.RootElement); + } + internal partial class MetastoreUpdationResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MetastoreUpdationResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override MetastoreUpdationResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessLinkedService.Serialization.cs index e4ad158f329d0..c17e75046c873 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessLinkedService.Serialization.cs @@ -250,12 +250,29 @@ internal static MicrosoftAccessLinkedService DeserializeMicrosoftAccessLinkedSer encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MicrosoftAccessLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftAccessLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MicrosoftAccessLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MicrosoftAccessLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MicrosoftAccessLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessSink.Serialization.cs index 5864c6ad1d707..bb0cdc67eb837 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessSink.Serialization.cs @@ -149,12 +149,29 @@ internal static MicrosoftAccessSink DeserializeMicrosoftAccessSink(JsonElement e preCopyScript); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MicrosoftAccessSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftAccessSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MicrosoftAccessSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MicrosoftAccessSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MicrosoftAccessSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessSource.Serialization.cs index baefd8f2bb813..e54dc640ca25f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessSource.Serialization.cs @@ -133,12 +133,29 @@ internal static MicrosoftAccessSource DeserializeMicrosoftAccessSource(JsonEleme additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MicrosoftAccessSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftAccessSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MicrosoftAccessSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MicrosoftAccessSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MicrosoftAccessSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessTableDataset.Serialization.cs index 20b53922d5357..00b979ad2fa99 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MicrosoftAccessTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static MicrosoftAccessTableDataset DeserializeMicrosoftAccessTableDatas tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MicrosoftAccessTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMicrosoftAccessTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MicrosoftAccessTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MicrosoftAccessTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MicrosoftAccessTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasCollectionDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasCollectionDataset.Serialization.cs index 53ef09e73f129..d14dfef676579 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasCollectionDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasCollectionDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static MongoDbAtlasCollectionDataset DeserializeMongoDbAtlasCollectionD collection); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDbAtlasCollectionDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbAtlasCollectionDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbAtlasCollectionDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbAtlasCollectionDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbAtlasCollectionDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasLinkedService.Serialization.cs index 1f418a04ba233..57f78bd287291 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasLinkedService.Serialization.cs @@ -195,12 +195,29 @@ internal static MongoDbAtlasLinkedService DeserializeMongoDbAtlasLinkedService(J driverVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDbAtlasLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbAtlasLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbAtlasLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbAtlasLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbAtlasLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasSource.Serialization.cs index e09ac55c7df39..b389f10f06392 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbAtlasSource.Serialization.cs @@ -181,12 +181,29 @@ internal static MongoDbAtlasSource DeserializeMongoDbAtlasSource(JsonElement ele additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDbAtlasSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbAtlasSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbAtlasSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbAtlasSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbAtlasSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbCollectionDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbCollectionDataset.Serialization.cs index 82f3bfca33f0f..56bfbcacb7f95 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbCollectionDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbCollectionDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static MongoDbCollectionDataset DeserializeMongoDbCollectionDataset(Jso collectionName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDbCollectionDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbCollectionDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbCollectionDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbCollectionDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbCollectionDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbCursorMethodsProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbCursorMethodsProperties.Serialization.cs index 80ee9b7ad9e67..4a2b89e5fc064 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbCursorMethodsProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbCursorMethodsProperties.Serialization.cs @@ -103,12 +103,29 @@ internal static MongoDbCursorMethodsProperties DeserializeMongoDbCursorMethodsPr return new MongoDbCursorMethodsProperties(project, sort, skip, limit, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MongoDbCursorMethodsProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbCursorMethodsProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbCursorMethodsPropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbCursorMethodsProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbCursorMethodsProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbLinkedService.Serialization.cs index df77c0b8c633f..a7ee5de850aae 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbLinkedService.Serialization.cs @@ -307,12 +307,29 @@ internal static MongoDbLinkedService DeserializeMongoDbLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDbLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbSource.Serialization.cs index 64a3a92eb6d78..7db4621e3d7c3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbSource.Serialization.cs @@ -133,12 +133,29 @@ internal static MongoDbSource DeserializeMongoDbSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDbSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2CollectionDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2CollectionDataset.Serialization.cs index 76d58ced26e4b..6a271c00b7aeb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2CollectionDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2CollectionDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static MongoDbV2CollectionDataset DeserializeMongoDbV2CollectionDataset collection); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDbV2CollectionDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbV2CollectionDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbV2CollectionDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbV2CollectionDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbV2CollectionDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2LinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2LinkedService.Serialization.cs index bb5b4fa895b07..30c77e7bc39a8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2LinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2LinkedService.Serialization.cs @@ -179,12 +179,29 @@ internal static MongoDbV2LinkedService DeserializeMongoDbV2LinkedService(JsonEle database); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDbV2LinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbV2LinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbV2LinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbV2LinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbV2LinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2Source.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2Source.Serialization.cs index bd6482975b2b5..ce43637ed2305 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2Source.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MongoDbV2Source.Serialization.cs @@ -181,12 +181,29 @@ internal static MongoDbV2Source DeserializeMongoDbV2Source(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MongoDbV2Source FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMongoDbV2Source(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MongoDbV2SourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MongoDbV2Source model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MongoDbV2Source Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MultiplePipelineTrigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MultiplePipelineTrigger.Serialization.cs index 07735f7e3eedd..8d0774e2786e0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MultiplePipelineTrigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MultiplePipelineTrigger.Serialization.cs @@ -150,12 +150,29 @@ internal static MultiplePipelineTrigger DeserializeMultiplePipelineTrigger(JsonE pipelines ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MultiplePipelineTrigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMultiplePipelineTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MultiplePipelineTriggerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MultiplePipelineTrigger model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MultiplePipelineTrigger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlLinkedService.Serialization.cs index 630f557fc1d99..a9b298d2b16ab 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlLinkedService.Serialization.cs @@ -202,12 +202,29 @@ internal static MySqlLinkedService DeserializeMySqlLinkedService(JsonElement ele encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MySqlLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMySqlLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MySqlLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MySqlLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MySqlLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlSource.Serialization.cs index daf1f2568eb62..fbadd7f187732 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlSource.Serialization.cs @@ -149,12 +149,29 @@ internal static MySqlSource DeserializeMySqlSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MySqlSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMySqlSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MySqlSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MySqlSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MySqlSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlTableDataset.Serialization.cs index 507464c1db343..e76ec5556f2cf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/MySqlTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static MySqlTableDataset DeserializeMySqlTableDataset(JsonElement eleme tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MySqlTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMySqlTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class MySqlTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, MySqlTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override MySqlTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaLinkedService.Serialization.cs index 8a40af27f3a23..bf55f4ba97733 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaLinkedService.Serialization.cs @@ -209,12 +209,29 @@ internal static NetezzaLinkedService DeserializeNetezzaLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new NetezzaLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNetezzaLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NetezzaLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NetezzaLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NetezzaLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaPartitionSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaPartitionSettings.Serialization.cs index d1cdfbbc6d65e..93e8c96599dbe 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaPartitionSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaPartitionSettings.Serialization.cs @@ -78,12 +78,29 @@ internal static NetezzaPartitionSettings DeserializeNetezzaPartitionSettings(Jso return new NetezzaPartitionSettings(partitionColumnName, partitionUpperBound, partitionLowerBound); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NetezzaPartitionSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNetezzaPartitionSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NetezzaPartitionSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NetezzaPartitionSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NetezzaPartitionSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaSource.Serialization.cs index 769d4aba794a0..e6ecf9c8b66b7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaSource.Serialization.cs @@ -181,12 +181,29 @@ internal static NetezzaSource DeserializeNetezzaSource(JsonElement element) partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new NetezzaSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNetezzaSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NetezzaSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NetezzaSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NetezzaSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaTableDataset.Serialization.cs index 23315e27639a2..f12edf4b8ae4a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NetezzaTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static NetezzaTableDataset DeserializeNetezzaTableDataset(JsonElement e schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new NetezzaTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNetezzaTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NetezzaTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NetezzaTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NetezzaTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Notebook.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Notebook.Serialization.cs index a30499a2ff373..91a0aef765f64 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Notebook.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Notebook.Serialization.cs @@ -190,12 +190,29 @@ internal static Notebook DeserializeNotebook(JsonElement element) additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Notebook FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebook(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NotebookConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Notebook model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Notebook Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.Serialization.cs index 3530877e2c88a..48db445480743 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCell.Serialization.cs @@ -123,12 +123,29 @@ internal static NotebookCell DeserializeNotebookCell(JsonElement element) additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookCell FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookCell(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NotebookCellConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NotebookCell model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NotebookCell Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCellOutputItem.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCellOutputItem.Serialization.cs index 73082da0b73b3..ceff873267420 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCellOutputItem.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookCellOutputItem.Serialization.cs @@ -118,12 +118,29 @@ internal static NotebookCellOutputItem DeserializeNotebookCellOutputItem(JsonEle metadata); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookCellOutputItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookCellOutputItem(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NotebookCellOutputItemConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NotebookCellOutputItem model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NotebookCellOutputItem Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookFolder.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookFolder.Serialization.cs index caa3128776f77..4cf6c76e500f6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookFolder.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookFolder.Serialization.cs @@ -40,5 +40,21 @@ internal static NotebookFolder DeserializeNotebookFolder(JsonElement element) } return new NotebookFolder(name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookFolder FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookFolder(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookKernelSpec.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookKernelSpec.Serialization.cs index 8010525db2c72..835e9c0e04d33 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookKernelSpec.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookKernelSpec.Serialization.cs @@ -59,12 +59,29 @@ internal static NotebookKernelSpec DeserializeNotebookKernelSpec(JsonElement ele return new NotebookKernelSpec(name, displayName, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookKernelSpec FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookKernelSpec(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NotebookKernelSpecConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NotebookKernelSpec model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NotebookKernelSpec Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookLanguageInfo.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookLanguageInfo.Serialization.cs index b449193e85d69..0a255bb1e0d49 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookLanguageInfo.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookLanguageInfo.Serialization.cs @@ -62,12 +62,29 @@ internal static NotebookLanguageInfo DeserializeNotebookLanguageInfo(JsonElement return new NotebookLanguageInfo(name, codemirrorMode, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookLanguageInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookLanguageInfo(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NotebookLanguageInfoConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NotebookLanguageInfo model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NotebookLanguageInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookListResponse.Serialization.cs index 932f10b080ec9..68dec814686b5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static NotebookListResponse DeserializeNotebookListResponse(JsonElement return new NotebookListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookListResponse(document.RootElement); + } + internal partial class NotebookListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NotebookListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override NotebookListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookMetadata.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookMetadata.Serialization.cs index 5240aa54ccfe3..db8445a01eb37 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookMetadata.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookMetadata.Serialization.cs @@ -81,12 +81,29 @@ internal static NotebookMetadata DeserializeNotebookMetadata(JsonElement element return new NotebookMetadata(kernelspec, languageInfo, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookMetadata FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookMetadata(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NotebookMetadataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NotebookMetadata model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NotebookMetadata Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookParameter.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookParameter.Serialization.cs index 6cf7c556899cb..7c0c039993b74 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookParameter.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookParameter.Serialization.cs @@ -63,12 +63,29 @@ internal static NotebookParameter DeserializeNotebookParameter(JsonElement eleme return new NotebookParameter(value, type); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NotebookParameterConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NotebookParameter model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NotebookParameter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookResource.Serialization.cs index 9e25e53b1aca9..3f45bf88d4419 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookResource.Serialization.cs @@ -67,12 +67,29 @@ internal static NotebookResource DeserializeNotebookResource(JsonElement element return new NotebookResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NotebookResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NotebookResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NotebookResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookSessionProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookSessionProperties.Serialization.cs index 178a76d743a3d..3963afeed786f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookSessionProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/NotebookSessionProperties.Serialization.cs @@ -73,12 +73,29 @@ internal static NotebookSessionProperties DeserializeNotebookSessionProperties(J return new NotebookSessionProperties(driverMemory, driverCores, executorMemory, executorCores, numExecutors); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NotebookSessionProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNotebookSessionProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class NotebookSessionPropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, NotebookSessionProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override NotebookSessionProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataLinkedService.Serialization.cs index 3e58e8a50b286..b6c4e588df312 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataLinkedService.Serialization.cs @@ -362,12 +362,29 @@ internal static ODataLinkedService DeserializeODataLinkedService(JsonElement ele encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ODataLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeODataLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ODataLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ODataLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ODataLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataResourceDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataResourceDataset.Serialization.cs index 02b11d43c0a49..46aafb64a5d4f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataResourceDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataResourceDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static ODataResourceDataset DeserializeODataResourceDataset(JsonElement path); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ODataResourceDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeODataResourceDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ODataResourceDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ODataResourceDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ODataResourceDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataSource.Serialization.cs index 60de524e1cc2f..db68640e05185 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ODataSource.Serialization.cs @@ -149,12 +149,29 @@ internal static ODataSource DeserializeODataSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ODataSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeODataSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ODataSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ODataSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ODataSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcLinkedService.Serialization.cs index ebfce3d3b49f2..01735c6f88873 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcLinkedService.Serialization.cs @@ -250,12 +250,29 @@ internal static OdbcLinkedService DeserializeOdbcLinkedService(JsonElement eleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OdbcLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOdbcLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OdbcLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OdbcLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OdbcLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcSink.Serialization.cs index 79403e39480f8..3b4648e01c2ac 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcSink.Serialization.cs @@ -149,12 +149,29 @@ internal static OdbcSink DeserializeOdbcSink(JsonElement element) preCopyScript); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OdbcSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOdbcSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OdbcSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OdbcSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OdbcSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcSource.Serialization.cs index e82114cf5b49f..4448ef9a63a97 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcSource.Serialization.cs @@ -149,12 +149,29 @@ internal static OdbcSource DeserializeOdbcSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OdbcSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOdbcSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OdbcSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OdbcSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OdbcSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcTableDataset.Serialization.cs index 62bd871b8c887..edbf8895fa214 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OdbcTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static OdbcTableDataset DeserializeOdbcTableDataset(JsonElement element tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OdbcTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOdbcTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OdbcTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OdbcTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OdbcTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365Dataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365Dataset.Serialization.cs index 7e2904254da62..ccc6352c7c81b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365Dataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365Dataset.Serialization.cs @@ -227,12 +227,29 @@ internal static Office365Dataset DeserializeOffice365Dataset(JsonElement element predicate); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new Office365Dataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOffice365Dataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class Office365DatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Office365Dataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Office365Dataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.Serialization.cs index acd8f94469313..9c187d85eacea 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365LinkedService.Serialization.cs @@ -213,12 +213,29 @@ internal static Office365LinkedService DeserializeOffice365LinkedService(JsonEle encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new Office365LinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOffice365LinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class Office365LinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Office365LinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Office365LinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365Source.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365Source.Serialization.cs index 7799b9023cfb3..be599f4fb7c1a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365Source.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Office365Source.Serialization.cs @@ -197,12 +197,29 @@ internal static Office365Source DeserializeOffice365Source(JsonElement element) outputColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new Office365Source FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOffice365Source(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class Office365SourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Office365Source model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Office365Source Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.Serialization.cs index 5fae4fd330016..a504f2189866a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OperationResult.Serialization.cs @@ -78,12 +78,21 @@ internal static OperationResult DeserializeOperationResult(JsonElement element) return new OperationResult(status, code, message, target, details ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OperationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOperationResult(document.RootElement); + } + internal partial class OperationResultConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OperationResult model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override OperationResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.Serialization.cs index c90c18fca91cc..cf5b7d03e2828 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleLinkedService.Serialization.cs @@ -202,12 +202,29 @@ internal static OracleLinkedService DeserializeOracleLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OracleLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOracleLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OracleLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OracleLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OracleLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OraclePartitionSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OraclePartitionSettings.Serialization.cs index 62b67fac7676a..7e9d9c84499cd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OraclePartitionSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OraclePartitionSettings.Serialization.cs @@ -93,12 +93,29 @@ internal static OraclePartitionSettings DeserializeOraclePartitionSettings(JsonE return new OraclePartitionSettings(partitionNames, partitionColumnName, partitionUpperBound, partitionLowerBound); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OraclePartitionSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOraclePartitionSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OraclePartitionSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OraclePartitionSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OraclePartitionSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudLinkedService.Serialization.cs index 9a547bb0672b3..649d6714642f9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudLinkedService.Serialization.cs @@ -252,12 +252,29 @@ internal static OracleServiceCloudLinkedService DeserializeOracleServiceCloudLin encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OracleServiceCloudLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOracleServiceCloudLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OracleServiceCloudLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OracleServiceCloudLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OracleServiceCloudLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudObjectDataset.Serialization.cs index ae05586c29946..6648eec4e3d43 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static OracleServiceCloudObjectDataset DeserializeOracleServiceCloudObj tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OracleServiceCloudObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOracleServiceCloudObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OracleServiceCloudObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OracleServiceCloudObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OracleServiceCloudObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudSource.Serialization.cs index 6e0583d202d8d..e6c306f6c00f5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleServiceCloudSource.Serialization.cs @@ -149,12 +149,29 @@ internal static OracleServiceCloudSource DeserializeOracleServiceCloudSource(Jso query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OracleServiceCloudSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOracleServiceCloudSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OracleServiceCloudSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OracleServiceCloudSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OracleServiceCloudSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSink.Serialization.cs index c308de86908ca..ef457370e2c83 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSink.Serialization.cs @@ -149,12 +149,29 @@ internal static OracleSink DeserializeOracleSink(JsonElement element) preCopyScript); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OracleSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOracleSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OracleSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OracleSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OracleSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.Serialization.cs index 185a8e1a3430d..fe31a597b6893 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleSource.Serialization.cs @@ -181,12 +181,29 @@ internal static OracleSource DeserializeOracleSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OracleSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOracleSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OracleSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OracleSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OracleSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleTableDataset.Serialization.cs index 99b455f620547..5f3eb203296c6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OracleTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static OracleTableDataset DeserializeOracleTableDataset(JsonElement ele table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OracleTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOracleTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OracleTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OracleTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OracleTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcDataset.Serialization.cs index 078c322c528f7..8167ebf65b856 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static OrcDataset DeserializeOrcDataset(JsonElement element) orcCompressionCodec); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OrcDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOrcDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OrcDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OrcDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OrcDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcFormat.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcFormat.Serialization.cs index 5a7a5b7c29104..b361624d619be 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcFormat.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcFormat.Serialization.cs @@ -81,12 +81,29 @@ internal static OrcFormat DeserializeOrcFormat(JsonElement element) return new OrcFormat(type, serializer, deserializer, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OrcFormat FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOrcFormat(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OrcFormatConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OrcFormat model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OrcFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcSink.Serialization.cs index ac44c538c49e1..d082dc4d679c1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcSink.Serialization.cs @@ -165,12 +165,29 @@ internal static OrcSink DeserializeOrcSink(JsonElement element) formatSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OrcSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOrcSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OrcSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OrcSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OrcSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcSource.Serialization.cs index 467bc31d806fa..438431a90be83 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcSource.Serialization.cs @@ -133,12 +133,29 @@ internal static OrcSource DeserializeOrcSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OrcSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOrcSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OrcSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OrcSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OrcSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcWriteSettings.Serialization.cs index 00e81f0874e57..169e0ce56a03d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/OrcWriteSettings.Serialization.cs @@ -81,12 +81,29 @@ internal static OrcWriteSettings DeserializeOrcWriteSettings(JsonElement element return new OrcWriteSettings(type, additionalProperties, maxRowsPerFile, fileNamePrefix); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OrcWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOrcWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class OrcWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, OrcWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override OrcWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParameterSpecification.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParameterSpecification.Serialization.cs index 62dae78e548a9..528bffec0d631 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParameterSpecification.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParameterSpecification.Serialization.cs @@ -56,12 +56,29 @@ internal static ParameterSpecification DeserializeParameterSpecification(JsonEle return new ParameterSpecification(type, defaultValue); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ParameterSpecification FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParameterSpecification(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ParameterSpecificationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ParameterSpecification model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ParameterSpecification Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetDataset.Serialization.cs index a7e6445e01be4..c694197c1a45c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static ParquetDataset DeserializeParquetDataset(JsonElement element) compressionCodec); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ParquetDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParquetDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ParquetDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ParquetDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ParquetDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetFormat.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetFormat.Serialization.cs index 352ef9a4fc579..fe41d1dd2c300 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetFormat.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetFormat.Serialization.cs @@ -81,12 +81,29 @@ internal static ParquetFormat DeserializeParquetFormat(JsonElement element) return new ParquetFormat(type, serializer, deserializer, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ParquetFormat FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParquetFormat(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ParquetFormatConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ParquetFormat model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ParquetFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetSink.Serialization.cs index 2087811c43688..9f64d9461e9d3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetSink.Serialization.cs @@ -165,12 +165,29 @@ internal static ParquetSink DeserializeParquetSink(JsonElement element) formatSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ParquetSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParquetSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ParquetSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ParquetSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ParquetSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetSource.Serialization.cs index a27967dfaccc0..379714546e9a9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetSource.Serialization.cs @@ -133,12 +133,29 @@ internal static ParquetSource DeserializeParquetSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ParquetSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParquetSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ParquetSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ParquetSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ParquetSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetWriteSettings.Serialization.cs index 6ae71ee896218..c5087e825750e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ParquetWriteSettings.Serialization.cs @@ -81,12 +81,29 @@ internal static ParquetWriteSettings DeserializeParquetWriteSettings(JsonElement return new ParquetWriteSettings(type, additionalProperties, maxRowsPerFile, fileNamePrefix); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ParquetWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParquetWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ParquetWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ParquetWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ParquetWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalLinkedService.Serialization.cs index 895f0d66474f0..45da4f32daaa1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalLinkedService.Serialization.cs @@ -259,12 +259,29 @@ internal static PaypalLinkedService DeserializePaypalLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PaypalLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePaypalLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PaypalLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PaypalLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PaypalLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalObjectDataset.Serialization.cs index c0e6f92294d09..d1bb466f9a5e6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static PaypalObjectDataset DeserializePaypalObjectDataset(JsonElement e tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PaypalObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePaypalObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PaypalObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PaypalObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PaypalObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalSource.Serialization.cs index 0262cd7b793e3..8f46cb2b4d0b3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PaypalSource.Serialization.cs @@ -149,12 +149,29 @@ internal static PaypalSource DeserializePaypalSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PaypalSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePaypalSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PaypalSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PaypalSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PaypalSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixLinkedService.Serialization.cs index bad8e6f83494d..d3f87460e2c4e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixLinkedService.Serialization.cs @@ -339,12 +339,29 @@ internal static PhoenixLinkedService DeserializePhoenixLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PhoenixLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoenixLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PhoenixLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PhoenixLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PhoenixLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixObjectDataset.Serialization.cs index fabd655ca6ec8..e36c76c030db7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixObjectDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static PhoenixObjectDataset DeserializePhoenixObjectDataset(JsonElement schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PhoenixObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoenixObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PhoenixObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PhoenixObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PhoenixObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixSource.Serialization.cs index ebdd03b16fe04..83b4a767c27f8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PhoenixSource.Serialization.cs @@ -149,12 +149,29 @@ internal static PhoenixSource DeserializePhoenixSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PhoenixSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePhoenixSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PhoenixSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PhoenixSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PhoenixSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineFolder.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineFolder.Serialization.cs index ebe25fbb8d5da..e47345e21d709 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineFolder.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineFolder.Serialization.cs @@ -40,5 +40,21 @@ internal static PipelineFolder DeserializePipelineFolder(JsonElement element) } return new PipelineFolder(name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PipelineFolder FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineFolder(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineListResponse.Serialization.cs index f5ee751664234..9ae278220a23a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static PipelineListResponse DeserializePipelineListResponse(JsonElement return new PipelineListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PipelineListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineListResponse(document.RootElement); + } + internal partial class PipelineListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PipelineListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override PipelineListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineReference.Serialization.cs index a60b7a33660bd..75008e3bc854d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineReference.Serialization.cs @@ -60,12 +60,29 @@ internal static PipelineReference DeserializePipelineReference(JsonElement eleme return new PipelineReference(type, referenceName, name); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PipelineReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PipelineReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PipelineReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PipelineReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineResource.Serialization.cs index b10ca828de381..76769564c670a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineResource.Serialization.cs @@ -288,12 +288,29 @@ internal static PipelineResource DeserializePipelineResource(JsonElement element additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PipelineResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PipelineResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PipelineResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PipelineResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRun.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRun.Serialization.cs index 30402528d1f3c..e22d35f53a6f0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRun.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRun.Serialization.cs @@ -150,12 +150,21 @@ internal static PipelineRun DeserializePipelineRun(JsonElement element) additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PipelineRun FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineRun(document.RootElement); + } + internal partial class PipelineRunConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PipelineRun model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override PipelineRun Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRunInvokedBy.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRunInvokedBy.Serialization.cs index 0d96727220103..71410a8a12b7f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRunInvokedBy.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRunInvokedBy.Serialization.cs @@ -44,12 +44,21 @@ internal static PipelineRunInvokedBy DeserializePipelineRunInvokedBy(JsonElement return new PipelineRunInvokedBy(name, id, invokedByType); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PipelineRunInvokedBy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineRunInvokedBy(document.RootElement); + } + internal partial class PipelineRunInvokedByConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PipelineRunInvokedBy model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override PipelineRunInvokedBy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRunsQueryResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRunsQueryResponse.Serialization.cs index 302425927ee98..13f340b4d6680 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRunsQueryResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PipelineRunsQueryResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static PipelineRunsQueryResponse DeserializePipelineRunsQueryResponse(J return new PipelineRunsQueryResponse(value, continuationToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PipelineRunsQueryResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineRunsQueryResponse(document.RootElement); + } + internal partial class PipelineRunsQueryResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PipelineRunsQueryResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override PipelineRunsQueryResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PolybaseSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PolybaseSettings.Serialization.cs index 9c723866ef8ed..f6253a11ebcc4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PolybaseSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PolybaseSettings.Serialization.cs @@ -103,12 +103,29 @@ internal static PolybaseSettings DeserializePolybaseSettings(JsonElement element return new PolybaseSettings(rejectType, rejectValue, rejectSampleValue, useTypeDefault, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PolybaseSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePolybaseSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PolybaseSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PolybaseSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PolybaseSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlLinkedService.Serialization.cs index 949fe44e12621..3a0c7ccacdf90 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlLinkedService.Serialization.cs @@ -202,12 +202,29 @@ internal static PostgreSqlLinkedService DeserializePostgreSqlLinkedService(JsonE encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PostgreSqlLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePostgreSqlLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PostgreSqlLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PostgreSqlLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PostgreSqlLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlSource.Serialization.cs index 7ebd3aa8e1409..8718cc0edebf6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlSource.Serialization.cs @@ -149,12 +149,29 @@ internal static PostgreSqlSource DeserializePostgreSqlSource(JsonElement element query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PostgreSqlSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePostgreSqlSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PostgreSqlSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PostgreSqlSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PostgreSqlSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlTableDataset.Serialization.cs index 9450538b4cf49..b75a97ff89514 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PostgreSqlTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static PostgreSqlTableDataset DeserializePostgreSqlTableDataset(JsonEle schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PostgreSqlTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePostgreSqlTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PostgreSqlTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PostgreSqlTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PostgreSqlTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PowerBIWorkspaceLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PowerBIWorkspaceLinkedService.Serialization.cs index 585ccfe9efe65..6819d893cdbc7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PowerBIWorkspaceLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PowerBIWorkspaceLinkedService.Serialization.cs @@ -179,12 +179,29 @@ internal static PowerBIWorkspaceLinkedService DeserializePowerBIWorkspaceLinkedS tenantId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PowerBIWorkspaceLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePowerBIWorkspaceLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PowerBIWorkspaceLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PowerBIWorkspaceLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PowerBIWorkspaceLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.Serialization.cs index c1ffc53912d14..f3ae0fc2004c5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoLinkedService.Serialization.cs @@ -357,12 +357,29 @@ internal static PrestoLinkedService DeserializePrestoLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PrestoLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePrestoLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PrestoLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PrestoLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PrestoLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoObjectDataset.Serialization.cs index 348ad438316e6..e6407f61bfebf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoObjectDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static PrestoObjectDataset DeserializePrestoObjectDataset(JsonElement e schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PrestoObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePrestoObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PrestoObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PrestoObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PrestoObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoSource.Serialization.cs index f2cbd198f736d..43c3719dbf7f7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrestoSource.Serialization.cs @@ -149,12 +149,29 @@ internal static PrestoSource DeserializePrestoSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PrestoSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePrestoSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PrestoSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PrestoSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PrestoSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateEndpoint.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateEndpoint.Serialization.cs index 92526f417b0fd..abd25879163b8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateEndpoint.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateEndpoint.Serialization.cs @@ -39,12 +39,29 @@ internal static PrivateEndpoint DeserializePrivateEndpoint(JsonElement element) return new PrivateEndpoint(id); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PrivateEndpoint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePrivateEndpoint(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PrivateEndpointConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PrivateEndpoint model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PrivateEndpoint Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateEndpointConnection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateEndpointConnection.Serialization.cs index 426d430b76e8f..09fe74506fefa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateEndpointConnection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateEndpointConnection.Serialization.cs @@ -108,12 +108,29 @@ internal static PrivateEndpointConnection DeserializePrivateEndpointConnection(J provisioningState); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PrivateEndpointConnection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePrivateEndpointConnection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PrivateEndpointConnectionConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PrivateEndpointConnection model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PrivateEndpointConnection Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateLinkServiceConnectionState.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateLinkServiceConnectionState.Serialization.cs index a2ed3f97ac5fc..421b1713bd3c9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateLinkServiceConnectionState.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PrivateLinkServiceConnectionState.Serialization.cs @@ -61,12 +61,29 @@ internal static PrivateLinkServiceConnectionState DeserializePrivateLinkServiceC return new PrivateLinkServiceConnectionState(status, description, actionsRequired); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PrivateLinkServiceConnectionState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePrivateLinkServiceConnectionState(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PrivateLinkServiceConnectionStateConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PrivateLinkServiceConnectionState model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PrivateLinkServiceConnectionState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ProxyResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ProxyResource.Serialization.cs index 29e392349825d..d5628ffd4b55c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ProxyResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ProxyResource.Serialization.cs @@ -51,12 +51,29 @@ internal static ProxyResource DeserializeProxyResource(JsonElement element) return new ProxyResource(id, name, type); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ProxyResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeProxyResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ProxyResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ProxyResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ProxyResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PurviewConfiguration.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PurviewConfiguration.Serialization.cs index 86aff3aff6c2f..734e32bb8db7c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PurviewConfiguration.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/PurviewConfiguration.Serialization.cs @@ -44,12 +44,29 @@ internal static PurviewConfiguration DeserializePurviewConfiguration(JsonElement return new PurviewConfiguration(purviewResourceId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PurviewConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePurviewConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class PurviewConfigurationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, PurviewConfiguration model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override PurviewConfiguration Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs index ecca4f7b4e31e..8d1972bcb324d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs @@ -48,12 +48,21 @@ internal static QueryDataFlowDebugSessionsResponse DeserializeQueryDataFlowDebug return new QueryDataFlowDebugSessionsResponse(value ?? new ChangeTrackingList(), nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static QueryDataFlowDebugSessionsResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQueryDataFlowDebugSessionsResponse(document.RootElement); + } + internal partial class QueryDataFlowDebugSessionsResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, QueryDataFlowDebugSessionsResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override QueryDataFlowDebugSessionsResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryTableStatusRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryTableStatusRequest.Serialization.cs index f2632db5523e1..1107d9941d8ac 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryTableStatusRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QueryTableStatusRequest.Serialization.cs @@ -31,12 +31,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class QueryTableStatusRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, QueryTableStatusRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override QueryTableStatusRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.Serialization.cs index 3ef76075fc536..02bfcb7d7971c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksLinkedService.Serialization.cs @@ -263,12 +263,29 @@ internal static QuickBooksLinkedService DeserializeQuickBooksLinkedService(JsonE encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new QuickBooksLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuickBooksLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class QuickBooksLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, QuickBooksLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override QuickBooksLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksObjectDataset.Serialization.cs index e8a301cec7e90..299dd3144bc2a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static QuickBooksObjectDataset DeserializeQuickBooksObjectDataset(JsonE tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new QuickBooksObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuickBooksObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class QuickBooksObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, QuickBooksObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override QuickBooksObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksSource.Serialization.cs index 41bada2b43ec3..0e0172ee05738 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickBooksSource.Serialization.cs @@ -149,12 +149,29 @@ internal static QuickBooksSource DeserializeQuickBooksSource(JsonElement element query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new QuickBooksSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuickBooksSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class QuickBooksSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, QuickBooksSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override QuickBooksSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickbaseLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickbaseLinkedService.Serialization.cs index b5bf2dea07a14..bac30f16023db 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickbaseLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/QuickbaseLinkedService.Serialization.cs @@ -195,12 +195,29 @@ internal static QuickbaseLinkedService DeserializeQuickbaseLinkedService(JsonEle encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new QuickbaseLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQuickbaseLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class QuickbaseLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, QuickbaseLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override QuickbaseLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceSchedule.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceSchedule.Serialization.cs index beb9b8e9f4929..588963aca7830 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceSchedule.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceSchedule.Serialization.cs @@ -174,12 +174,29 @@ internal static RecurrenceSchedule DeserializeRecurrenceSchedule(JsonElement ele additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecurrenceSchedule FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecurrenceSchedule(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RecurrenceScheduleConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RecurrenceSchedule model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RecurrenceSchedule Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceScheduleOccurrence.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceScheduleOccurrence.Serialization.cs index 6b30355c45ae3..f74e40e9c6294 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceScheduleOccurrence.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RecurrenceScheduleOccurrence.Serialization.cs @@ -73,12 +73,29 @@ internal static RecurrenceScheduleOccurrence DeserializeRecurrenceScheduleOccurr return new RecurrenceScheduleOccurrence(day, occurrence, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RecurrenceScheduleOccurrence FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRecurrenceScheduleOccurrence(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RecurrenceScheduleOccurrenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RecurrenceScheduleOccurrence model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RecurrenceScheduleOccurrence Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RedirectIncompatibleRowSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RedirectIncompatibleRowSettings.Serialization.cs index fc7c53853def5..541f615759cfa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RedirectIncompatibleRowSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RedirectIncompatibleRowSettings.Serialization.cs @@ -66,12 +66,29 @@ internal static RedirectIncompatibleRowSettings DeserializeRedirectIncompatibleR return new RedirectIncompatibleRowSettings(linkedServiceName, path, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RedirectIncompatibleRowSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRedirectIncompatibleRowSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RedirectIncompatibleRowSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RedirectIncompatibleRowSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RedirectIncompatibleRowSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RedshiftUnloadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RedshiftUnloadSettings.Serialization.cs index 7675ab60996c8..c026f63322d9f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RedshiftUnloadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RedshiftUnloadSettings.Serialization.cs @@ -49,12 +49,29 @@ internal static RedshiftUnloadSettings DeserializeRedshiftUnloadSettings(JsonEle return new RedshiftUnloadSettings(s3LinkedServiceName, bucketName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RedshiftUnloadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRedshiftUnloadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RedshiftUnloadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RedshiftUnloadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RedshiftUnloadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RelationalSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RelationalSource.Serialization.cs index 6e94cf745a513..7005ebaf1ca04 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RelationalSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RelationalSource.Serialization.cs @@ -133,12 +133,29 @@ internal static RelationalSource DeserializeRelationalSource(JsonElement element additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RelationalSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRelationalSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RelationalSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RelationalSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RelationalSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RelationalTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RelationalTableDataset.Serialization.cs index b4e0bf3bc0bf8..f662ffa5023b2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RelationalTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RelationalTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static RelationalTableDataset DeserializeRelationalTableDataset(JsonEle tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RelationalTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRelationalTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RelationalTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RelationalTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RelationalTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTriggerListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTriggerListResponse.Serialization.cs index 0be3ae09bdbd4..46f58389a0cd0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTriggerListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTriggerListResponse.Serialization.cs @@ -58,12 +58,29 @@ internal static RerunTriggerListResponse DeserializeRerunTriggerListResponse(Jso return new RerunTriggerListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RerunTriggerListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRerunTriggerListResponse(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RerunTriggerListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RerunTriggerListResponse model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RerunTriggerListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTriggerResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTriggerResource.Serialization.cs index 478882319d5aa..84056935412ea 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTriggerResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTriggerResource.Serialization.cs @@ -65,12 +65,29 @@ internal static RerunTriggerResource DeserializeRerunTriggerResource(JsonElement return new RerunTriggerResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RerunTriggerResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRerunTriggerResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RerunTriggerResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RerunTriggerResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RerunTriggerResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTumblingWindowTrigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTumblingWindowTrigger.Serialization.cs index 8d6229bbe6d66..1b39bb078c3f2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTumblingWindowTrigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RerunTumblingWindowTrigger.Serialization.cs @@ -165,12 +165,29 @@ internal static RerunTumblingWindowTrigger DeserializeRerunTumblingWindowTrigger rerunConcurrency); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RerunTumblingWindowTrigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRerunTumblingWindowTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RerunTumblingWindowTriggerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RerunTumblingWindowTrigger model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RerunTumblingWindowTrigger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Resource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Resource.Serialization.cs index 4dc6da87b0419..7ff0480e03c9e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Resource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Resource.Serialization.cs @@ -51,12 +51,29 @@ internal static Resource DeserializeResource(JsonElement element) return new Resource(id, name, type); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Resource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Resource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Resource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysLinkedService.Serialization.cs index 74056c31dc5d9..0a714b713a404 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysLinkedService.Serialization.cs @@ -259,12 +259,29 @@ internal static ResponsysLinkedService DeserializeResponsysLinkedService(JsonEle encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ResponsysLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResponsysLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ResponsysLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResponsysLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ResponsysLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysObjectDataset.Serialization.cs index c8a8b9815108e..31e185f61ded5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static ResponsysObjectDataset DeserializeResponsysObjectDataset(JsonEle tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ResponsysObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResponsysObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ResponsysObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResponsysObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ResponsysObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysSource.Serialization.cs index b89c49e9c5841..e3c75fa3f41e1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ResponsysSource.Serialization.cs @@ -149,12 +149,29 @@ internal static ResponsysSource DeserializeResponsysSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ResponsysSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeResponsysSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ResponsysSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ResponsysSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ResponsysSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestResourceDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestResourceDataset.Serialization.cs index 8335e56bbc181..b613093549b82 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestResourceDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestResourceDataset.Serialization.cs @@ -282,12 +282,29 @@ internal static RestResourceDataset DeserializeRestResourceDataset(JsonElement e paginationRules); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RestResourceDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRestResourceDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RestResourceDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RestResourceDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RestResourceDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestServiceLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestServiceLinkedService.Serialization.cs index ea8075ddf8885..664ab6a955a86 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestServiceLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestServiceLinkedService.Serialization.cs @@ -435,12 +435,29 @@ internal static RestServiceLinkedService DeserializeRestServiceLinkedService(Jso scope); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RestServiceLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRestServiceLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RestServiceLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RestServiceLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RestServiceLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestSink.Serialization.cs index 9d45670c21c2c..9b18534482b4d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestSink.Serialization.cs @@ -213,12 +213,29 @@ internal static RestSink DeserializeRestSink(JsonElement element) httpCompressionType); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RestSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRestSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RestSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RestSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RestSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestSource.Serialization.cs index 6274fd34b5bc0..88eb4af5861bb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RestSource.Serialization.cs @@ -213,12 +213,29 @@ internal static RestSource DeserializeRestSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RestSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRestSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RestSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RestSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RestSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RetryPolicy.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RetryPolicy.Serialization.cs index 8012c0da58b78..1fefd0f80674b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RetryPolicy.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RetryPolicy.Serialization.cs @@ -63,12 +63,29 @@ internal static RetryPolicy DeserializeRetryPolicy(JsonElement element) return new RetryPolicy(count, intervalInSeconds); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RetryPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRetryPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RetryPolicyConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RetryPolicy model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RetryPolicy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunFilterParameters.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunFilterParameters.Serialization.cs index dbcb2d7d1445c..87e06e43d4a76 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunFilterParameters.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunFilterParameters.Serialization.cs @@ -50,12 +50,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RunFilterParametersConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunFilterParameters model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RunFilterParameters Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.Serialization.cs index 39158760bb0ed..f43e2d4ab104f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookError.Serialization.cs @@ -54,12 +54,21 @@ internal static RunNotebookError DeserializeRunNotebookError(JsonElement element return new RunNotebookError(ename, evalue, traceback ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RunNotebookError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRunNotebookError(document.RootElement); + } + internal partial class RunNotebookErrorConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunNotebookError model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RunNotebookError Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookParameter.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookParameter.Serialization.cs index 043abd4245924..49c35bdc200fd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookParameter.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookParameter.Serialization.cs @@ -59,12 +59,29 @@ internal static RunNotebookParameter DeserializeRunNotebookParameter(JsonElement return new RunNotebookParameter(type, value); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RunNotebookParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRunNotebookParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RunNotebookParameterConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunNotebookParameter model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RunNotebookParameter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookRequest.Serialization.cs index 4fb040fa67aa0..21be244debbcd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookRequest.Serialization.cs @@ -52,12 +52,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RunNotebookRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunNotebookRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RunNotebookRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResponse.Serialization.cs index 6c9be500f049f..8f78a77faa369 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResponse.Serialization.cs @@ -42,12 +42,21 @@ internal static RunNotebookResponse DeserializeRunNotebookResponse(JsonElement e return new RunNotebookResponse(message, result); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RunNotebookResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRunNotebookResponse(document.RootElement); + } + internal partial class RunNotebookResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunNotebookResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RunNotebookResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.Serialization.cs index 40857b284082e..dfbe0af2c65dd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.Serialization.cs @@ -90,12 +90,21 @@ internal static RunNotebookResult DeserializeRunNotebookResult(JsonElement eleme error); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RunNotebookResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRunNotebookResult(document.RootElement); + } + internal partial class RunNotebookResultConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunNotebookResult model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RunNotebookResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.Serialization.cs index 05d6184f86695..bfb1e5661322d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.Serialization.cs @@ -111,12 +111,21 @@ internal static RunNotebookSnapshot DeserializeRunNotebookSnapshot(JsonElement e notebookContent); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RunNotebookSnapshot FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRunNotebookSnapshot(document.RootElement); + } + internal partial class RunNotebookSnapshotConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunNotebookSnapshot model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RunNotebookSnapshot Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResponse.Serialization.cs index 18290213f31b1..aa00b90de3619 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResponse.Serialization.cs @@ -42,12 +42,21 @@ internal static RunNotebookSnapshotResponse DeserializeRunNotebookSnapshotRespon return new RunNotebookSnapshotResponse(message, result); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RunNotebookSnapshotResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRunNotebookSnapshotResponse(document.RootElement); + } + internal partial class RunNotebookSnapshotResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunNotebookSnapshotResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RunNotebookSnapshotResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.Serialization.cs index b82147487e030..53634c1f59be1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.Serialization.cs @@ -79,12 +79,21 @@ internal static RunNotebookSnapshotResult DeserializeRunNotebookSnapshotResult(J sparkPool); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RunNotebookSnapshotResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRunNotebookSnapshotResult(document.RootElement); + } + internal partial class RunNotebookSnapshotResultConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunNotebookSnapshotResult model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override RunNotebookSnapshotResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSparkSessionOptions.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSparkSessionOptions.Serialization.cs index 05195e885905c..153fcabdec1c5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSparkSessionOptions.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSparkSessionOptions.Serialization.cs @@ -348,12 +348,29 @@ internal static RunNotebookSparkSessionOptions DeserializeRunNotebookSparkSessio heartbeatTimeoutInSecond); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RunNotebookSparkSessionOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRunNotebookSparkSessionOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RunNotebookSparkSessionOptionsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunNotebookSparkSessionOptions model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RunNotebookSparkSessionOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunQueryFilter.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunQueryFilter.Serialization.cs index 83cdfeb23cdae..0362078de1dec 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunQueryFilter.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunQueryFilter.Serialization.cs @@ -32,12 +32,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RunQueryFilterConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunQueryFilter model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RunQueryFilter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunQueryOrderBy.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunQueryOrderBy.Serialization.cs index 9463ff359652c..4c5d4fcbc7c83 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunQueryOrderBy.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunQueryOrderBy.Serialization.cs @@ -25,12 +25,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class RunQueryOrderByConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, RunQueryOrderBy model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override RunQueryOrderBy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceLinkedService.Serialization.cs index e7522e77a8a27..51ea4b5ed7819 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceLinkedService.Serialization.cs @@ -257,12 +257,29 @@ internal static SalesforceLinkedService DeserializeSalesforceLinkedService(JsonE encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudLinkedService.Serialization.cs index 9219675932d98..caccf526cc0c0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudLinkedService.Serialization.cs @@ -266,12 +266,29 @@ internal static SalesforceMarketingCloudLinkedService DeserializeSalesforceMarke encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceMarketingCloudLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceMarketingCloudLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceMarketingCloudLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceMarketingCloudLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceMarketingCloudLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudObjectDataset.Serialization.cs index 92b2e18232233..b5c3f05358958 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static SalesforceMarketingCloudObjectDataset DeserializeSalesforceMarke tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceMarketingCloudObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceMarketingCloudObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceMarketingCloudObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceMarketingCloudObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceMarketingCloudObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudSource.Serialization.cs index abc95ab1f8212..9b2580288aeaf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceMarketingCloudSource.Serialization.cs @@ -149,12 +149,29 @@ internal static SalesforceMarketingCloudSource DeserializeSalesforceMarketingClo query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceMarketingCloudSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceMarketingCloudSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceMarketingCloudSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceMarketingCloudSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceMarketingCloudSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceObjectDataset.Serialization.cs index cb3319d8e6759..ccb7c112a488b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static SalesforceObjectDataset DeserializeSalesforceObjectDataset(JsonE objectApiName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudLinkedService.Serialization.cs index 93168e25f9d6f..fc40e8694b7a9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudLinkedService.Serialization.cs @@ -273,12 +273,29 @@ internal static SalesforceServiceCloudLinkedService DeserializeSalesforceService encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceServiceCloudLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceServiceCloudLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceServiceCloudLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceServiceCloudLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceServiceCloudLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudObjectDataset.Serialization.cs index 8cc671b09ff36..9218fdd090260 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static SalesforceServiceCloudObjectDataset DeserializeSalesforceService objectApiName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceServiceCloudObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceServiceCloudObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceServiceCloudObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceServiceCloudObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceServiceCloudObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudSink.Serialization.cs index 60619c00f551c..0f33b680acdaa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudSink.Serialization.cs @@ -181,12 +181,29 @@ internal static SalesforceServiceCloudSink DeserializeSalesforceServiceCloudSink ignoreNullValues); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceServiceCloudSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceServiceCloudSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceServiceCloudSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceServiceCloudSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceServiceCloudSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudSource.Serialization.cs index f5e1548248557..d5a129fdc6993 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceServiceCloudSource.Serialization.cs @@ -149,12 +149,29 @@ internal static SalesforceServiceCloudSource DeserializeSalesforceServiceCloudSo additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceServiceCloudSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceServiceCloudSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceServiceCloudSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceServiceCloudSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceServiceCloudSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceSink.Serialization.cs index f8208c9866b05..15d1303e719a3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceSink.Serialization.cs @@ -181,12 +181,29 @@ internal static SalesforceSink DeserializeSalesforceSink(JsonElement element) ignoreNullValues); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceSource.Serialization.cs index d2fa5396f1722..dee08af940291 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SalesforceSource.Serialization.cs @@ -165,12 +165,29 @@ internal static SalesforceSource DeserializeSalesforceSource(JsonElement element readBehavior); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SalesforceSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSalesforceSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SalesforceSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SalesforceSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SalesforceSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBWLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBWLinkedService.Serialization.cs index d1019975c6078..c136b1bd7cc46 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBWLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBWLinkedService.Serialization.cs @@ -236,12 +236,29 @@ internal static SapBWLinkedService DeserializeSapBWLinkedService(JsonElement ele encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapBWLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapBWLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapBWLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapBWLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapBWLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBwCubeDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBwCubeDataset.Serialization.cs index 44162a5a87863..9209b46e55f88 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBwCubeDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBwCubeDataset.Serialization.cs @@ -187,12 +187,29 @@ internal static SapBwCubeDataset DeserializeSapBwCubeDataset(JsonElement element additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapBwCubeDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapBwCubeDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapBwCubeDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapBwCubeDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapBwCubeDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBwSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBwSource.Serialization.cs index b486af3bba120..d288e928de566 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBwSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapBwSource.Serialization.cs @@ -149,12 +149,29 @@ internal static SapBwSource DeserializeSapBwSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapBwSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapBwSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapBwSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapBwSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapBwSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerLinkedService.Serialization.cs index 2249d958bfdb9..8df6d251ab441 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerLinkedService.Serialization.cs @@ -218,12 +218,29 @@ internal static SapCloudForCustomerLinkedService DeserializeSapCloudForCustomerL encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapCloudForCustomerLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapCloudForCustomerLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapCloudForCustomerLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapCloudForCustomerLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapCloudForCustomerLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerResourceDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerResourceDataset.Serialization.cs index 00f339dd71ad0..3d284d021ff76 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerResourceDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerResourceDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static SapCloudForCustomerResourceDataset DeserializeSapCloudForCustome path); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapCloudForCustomerResourceDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapCloudForCustomerResourceDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapCloudForCustomerResourceDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapCloudForCustomerResourceDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapCloudForCustomerResourceDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerSink.Serialization.cs index 3f785e4367c3f..c01dd88fb8ef4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerSink.Serialization.cs @@ -165,12 +165,29 @@ internal static SapCloudForCustomerSink DeserializeSapCloudForCustomerSink(JsonE httpRequestTimeout); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapCloudForCustomerSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapCloudForCustomerSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapCloudForCustomerSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapCloudForCustomerSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapCloudForCustomerSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerSource.Serialization.cs index 4671a816d041e..21237f4d1d616 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapCloudForCustomerSource.Serialization.cs @@ -165,12 +165,29 @@ internal static SapCloudForCustomerSource DeserializeSapCloudForCustomerSource(J httpRequestTimeout); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapCloudForCustomerSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapCloudForCustomerSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapCloudForCustomerSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapCloudForCustomerSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapCloudForCustomerSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccLinkedService.Serialization.cs index db7347935658c..023af6be07955 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccLinkedService.Serialization.cs @@ -210,12 +210,29 @@ internal static SapEccLinkedService DeserializeSapEccLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapEccLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapEccLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapEccLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapEccLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapEccLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccResourceDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccResourceDataset.Serialization.cs index bbe4cb65c8445..b6743a5753aaa 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccResourceDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccResourceDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static SapEccResourceDataset DeserializeSapEccResourceDataset(JsonEleme path); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapEccResourceDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapEccResourceDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapEccResourceDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapEccResourceDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapEccResourceDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccSource.Serialization.cs index 9e237cd24f0da..45168b2baed76 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapEccSource.Serialization.cs @@ -165,12 +165,29 @@ internal static SapEccSource DeserializeSapEccSource(JsonElement element) httpRequestTimeout); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapEccSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapEccSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapEccSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapEccSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapEccSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaLinkedService.Serialization.cs index bc9b6a06c0e42..8b3c47340151c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaLinkedService.Serialization.cs @@ -250,12 +250,29 @@ internal static SapHanaLinkedService DeserializeSapHanaLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapHanaLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapHanaLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapHanaLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapHanaLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapHanaLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaPartitionSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaPartitionSettings.Serialization.cs index 4ad3d7c4c95e0..e525259d01c97 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaPartitionSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaPartitionSettings.Serialization.cs @@ -48,12 +48,29 @@ internal static SapHanaPartitionSettings DeserializeSapHanaPartitionSettings(Jso return new SapHanaPartitionSettings(partitionColumnName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SapHanaPartitionSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapHanaPartitionSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapHanaPartitionSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapHanaPartitionSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapHanaPartitionSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.Serialization.cs index 23e7a585d2f90..ddeaa24110c39 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.Serialization.cs @@ -197,12 +197,29 @@ internal static SapHanaSource DeserializeSapHanaSource(JsonElement element) partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapHanaSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapHanaSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapHanaSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapHanaSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapHanaSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaTableDataset.Serialization.cs index 89273c91c1679..549a6a65ea27a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaTableDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static SapHanaTableDataset DeserializeSapHanaTableDataset(JsonElement e table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapHanaTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapHanaTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapHanaTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapHanaTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapHanaTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpLinkedService.Serialization.cs index a49e02a0c11f6..9f73e90e33721 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpLinkedService.Serialization.cs @@ -449,12 +449,29 @@ internal static SapOdpLinkedService DeserializeSapOdpLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapOdpLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapOdpLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapOdpLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapOdpLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapOdpLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpResourceDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpResourceDataset.Serialization.cs index 2562db887c5dc..e8302259b4254 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpResourceDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpResourceDataset.Serialization.cs @@ -220,12 +220,29 @@ internal static SapOdpResourceDataset DeserializeSapOdpResourceDataset(JsonEleme objectName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapOdpResourceDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapOdpResourceDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapOdpResourceDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapOdpResourceDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapOdpResourceDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpSource.Serialization.cs index 45b9947bba5a7..85c5ff22186cc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOdpSource.Serialization.cs @@ -197,12 +197,29 @@ internal static SapOdpSource DeserializeSapOdpSource(JsonElement element) projection); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapOdpSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapOdpSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapOdpSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapOdpSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapOdpSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubLinkedService.Serialization.cs index a10fa3f653bd6..acd0863cfeb92 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubLinkedService.Serialization.cs @@ -316,12 +316,29 @@ internal static SapOpenHubLinkedService DeserializeSapOpenHubLinkedService(JsonE encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapOpenHubLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapOpenHubLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapOpenHubLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapOpenHubLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapOpenHubLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubSource.Serialization.cs index d4315af464f98..995be315d6fe9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubSource.Serialization.cs @@ -197,12 +197,29 @@ internal static SapOpenHubSource DeserializeSapOpenHubSource(JsonElement element sapDataColumnDelimiter); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapOpenHubSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapOpenHubSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapOpenHubSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapOpenHubSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapOpenHubSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubTableDataset.Serialization.cs index 203afc0127c87..b902ffa90a3b4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapOpenHubTableDataset.Serialization.cs @@ -243,12 +243,29 @@ internal static SapOpenHubTableDataset DeserializeSapOpenHubTableDataset(JsonEle baseRequestId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapOpenHubTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapOpenHubTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapOpenHubTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapOpenHubTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapOpenHubTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableLinkedService.Serialization.cs index 0dfdc5e0f0f65..34c00a8e394c1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableLinkedService.Serialization.cs @@ -417,12 +417,29 @@ internal static SapTableLinkedService DeserializeSapTableLinkedService(JsonEleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapTableLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapTableLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapTableLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapTableLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapTableLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTablePartitionSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTablePartitionSettings.Serialization.cs index a50e908fe0b7e..dd5805eb88e4b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTablePartitionSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTablePartitionSettings.Serialization.cs @@ -93,12 +93,29 @@ internal static SapTablePartitionSettings DeserializeSapTablePartitionSettings(J return new SapTablePartitionSettings(partitionColumnName, partitionUpperBound, partitionLowerBound, maxPartitionsNumber); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SapTablePartitionSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapTablePartitionSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapTablePartitionSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapTablePartitionSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapTablePartitionSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableResourceDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableResourceDataset.Serialization.cs index 803aabe172ece..1eb0169543df1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableResourceDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableResourceDataset.Serialization.cs @@ -211,12 +211,29 @@ internal static SapTableResourceDataset DeserializeSapTableResourceDataset(JsonE tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapTableResourceDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapTableResourceDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapTableResourceDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapTableResourceDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapTableResourceDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.Serialization.cs index 5249ac8356f6d..8e9b01b793f46 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.Serialization.cs @@ -277,12 +277,29 @@ internal static SapTableSource DeserializeSapTableSource(JsonElement element) partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SapTableSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSapTableSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SapTableSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SapTableSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SapTableSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScheduleTrigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScheduleTrigger.Serialization.cs index 551c4fe5e0ffb..36b194f839085 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScheduleTrigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScheduleTrigger.Serialization.cs @@ -164,12 +164,29 @@ internal static ScheduleTrigger DeserializeScheduleTrigger(JsonElement element) recurrence); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ScheduleTrigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScheduleTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ScheduleTriggerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ScheduleTrigger model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ScheduleTrigger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScheduleTriggerRecurrence.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScheduleTriggerRecurrence.Serialization.cs index 0d797931d72a0..ee159fd0a9d09 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScheduleTriggerRecurrence.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScheduleTriggerRecurrence.Serialization.cs @@ -136,12 +136,29 @@ internal static ScheduleTriggerRecurrence DeserializeScheduleTriggerRecurrence(J additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ScheduleTriggerRecurrence FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScheduleTriggerRecurrence(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ScheduleTriggerRecurrenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ScheduleTriggerRecurrence model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ScheduleTriggerRecurrence Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptAction.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptAction.Serialization.cs index 9b8bc170d0212..a50aaf9f7c924 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptAction.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptAction.Serialization.cs @@ -68,12 +68,29 @@ internal static ScriptAction DeserializeScriptAction(JsonElement element) return new ScriptAction(name, uri, roles, parameters); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ScriptAction FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScriptAction(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ScriptActionConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ScriptAction model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ScriptAction Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.Serialization.cs index e37dda408a952..f8551b0bd5e3b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.Serialization.cs @@ -263,12 +263,29 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) logSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ScriptActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScriptActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ScriptActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ScriptActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ScriptActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityParameter.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityParameter.Serialization.cs index 29ddc925b5eaf..ac8840987b69b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityParameter.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityParameter.Serialization.cs @@ -108,12 +108,29 @@ internal static ScriptActivityParameter DeserializeScriptActivityParameter(JsonE return new ScriptActivityParameter(name, type, value, direction, size); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ScriptActivityParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScriptActivityParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ScriptActivityParameterConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ScriptActivityParameter model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ScriptActivityParameter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs index 72a41920b2d90..f3f636eb4e5e9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs @@ -75,12 +75,29 @@ internal static ScriptActivityScriptBlock DeserializeScriptActivityScriptBlock(J return new ScriptActivityScriptBlock(text, type, parameters ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ScriptActivityScriptBlock FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScriptActivityScriptBlock(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ScriptActivityScriptBlockConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ScriptActivityScriptBlock model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ScriptActivityScriptBlock Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.Serialization.cs index 227eb41600a0b..4c7b4613398ab 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.Serialization.cs @@ -52,5 +52,21 @@ internal static ScriptActivityTypePropertiesLogSettings DeserializeScriptActivit } return new ScriptActivityTypePropertiesLogSettings(logDestination, logLocationSettings); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ScriptActivityTypePropertiesLogSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeScriptActivityTypePropertiesLogSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecretBase.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecretBase.Serialization.cs index 458ba38c5fc10..5d152782859da 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecretBase.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecretBase.Serialization.cs @@ -40,12 +40,29 @@ internal static SecretBase DeserializeSecretBase(JsonElement element) return UnknownSecretBase.DeserializeUnknownSecretBase(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SecretBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSecretBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SecretBaseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SecretBase model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SecretBase Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecureInputOutputPolicy.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecureInputOutputPolicy.Serialization.cs index d047248b34675..0ef67d389dcfb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecureInputOutputPolicy.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecureInputOutputPolicy.Serialization.cs @@ -63,12 +63,29 @@ internal static SecureInputOutputPolicy DeserializeSecureInputOutputPolicy(JsonE return new SecureInputOutputPolicy(secureInput, secureOutput); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SecureInputOutputPolicy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSecureInputOutputPolicy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SecureInputOutputPolicyConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SecureInputOutputPolicy model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SecureInputOutputPolicy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecureString.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecureString.Serialization.cs index 68129f39cbe02..37a4f5e9793b0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecureString.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SecureString.Serialization.cs @@ -49,12 +49,29 @@ internal static SecureString DeserializeSecureString(JsonElement element) return new SecureString(type, value); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SecureString FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSecureString(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SecureStringConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SecureString model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SecureString Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SelfDependencyTumblingWindowTriggerReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SelfDependencyTumblingWindowTriggerReference.Serialization.cs index a75bfeb4e1942..6aed3dda71a14 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SelfDependencyTumblingWindowTriggerReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SelfDependencyTumblingWindowTriggerReference.Serialization.cs @@ -60,12 +60,29 @@ internal static SelfDependencyTumblingWindowTriggerReference DeserializeSelfDepe return new SelfDependencyTumblingWindowTriggerReference(type, offset, size); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SelfDependencyTumblingWindowTriggerReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSelfDependencyTumblingWindowTriggerReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SelfDependencyTumblingWindowTriggerReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SelfDependencyTumblingWindowTriggerReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SelfDependencyTumblingWindowTriggerReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SelfHostedIntegrationRuntime.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SelfHostedIntegrationRuntime.Serialization.cs index 9153cfb5d0066..8439e0dcc2b46 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SelfHostedIntegrationRuntime.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SelfHostedIntegrationRuntime.Serialization.cs @@ -92,12 +92,29 @@ internal static SelfHostedIntegrationRuntime DeserializeSelfHostedIntegrationRun return new SelfHostedIntegrationRuntime(type, description, additionalProperties, linkedInfo); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SelfHostedIntegrationRuntime FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSelfHostedIntegrationRuntime(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SelfHostedIntegrationRuntimeConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SelfHostedIntegrationRuntime model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SelfHostedIntegrationRuntime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowLinkedService.Serialization.cs index a8e9c6df90f64..263077bd405a6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowLinkedService.Serialization.cs @@ -307,12 +307,29 @@ internal static ServiceNowLinkedService DeserializeServiceNowLinkedService(JsonE encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ServiceNowLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceNowLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ServiceNowLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ServiceNowLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ServiceNowLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowObjectDataset.Serialization.cs index ad3f03c07db03..937d6b5d093f6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static ServiceNowObjectDataset DeserializeServiceNowObjectDataset(JsonE tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ServiceNowObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceNowObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ServiceNowObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ServiceNowObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ServiceNowObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowSource.Serialization.cs index 1ace10a45ce74..ebc61656583a8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServiceNowSource.Serialization.cs @@ -149,12 +149,29 @@ internal static ServiceNowSource DeserializeServiceNowSource(JsonElement element query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ServiceNowSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeServiceNowSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ServiceNowSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ServiceNowSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ServiceNowSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SetVariableActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SetVariableActivity.Serialization.cs index c8f0091b72626..9cbc8f254addd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SetVariableActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SetVariableActivity.Serialization.cs @@ -233,12 +233,29 @@ internal static SetVariableActivity DeserializeSetVariableActivity(JsonElement e setSystemVariable); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SetVariableActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSetVariableActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SetVariableActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SetVariableActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SetVariableActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpLocation.Serialization.cs index b27ab8de49c32..631859f6619a1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpLocation.Serialization.cs @@ -81,12 +81,29 @@ internal static SftpLocation DeserializeSftpLocation(JsonElement element) return new SftpLocation(type, folderPath, fileName, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SftpLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSftpLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SftpLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SftpLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SftpLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.Serialization.cs index ea2ae2ccd7d47..44e0f2c932cd6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.Serialization.cs @@ -229,12 +229,29 @@ internal static SftpReadSettings DeserializeSftpReadSettings(JsonElement element disableChunking); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SftpReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSftpReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SftpReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SftpReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SftpReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpServerLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpServerLinkedService.Serialization.cs index 9aa331bcc47b2..5400851210e17 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpServerLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpServerLinkedService.Serialization.cs @@ -330,12 +330,29 @@ internal static SftpServerLinkedService DeserializeSftpServerLinkedService(JsonE hostKeyFingerprint); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SftpServerLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSftpServerLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SftpServerLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SftpServerLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SftpServerLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpWriteSettings.Serialization.cs index 636abc05e75b5..1b5fd7fb97556 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpWriteSettings.Serialization.cs @@ -117,12 +117,29 @@ internal static SftpWriteSettings DeserializeSftpWriteSettings(JsonElement eleme useTempFileRename); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SftpWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSftpWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SftpWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SftpWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SftpWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListLinkedService.Serialization.cs index b868d3b7361e6..8d7f61b697b97 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListLinkedService.Serialization.cs @@ -213,12 +213,29 @@ internal static SharePointOnlineListLinkedService DeserializeSharePointOnlineLis encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SharePointOnlineListLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSharePointOnlineListLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SharePointOnlineListLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SharePointOnlineListLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SharePointOnlineListLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListResourceDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListResourceDataset.Serialization.cs index e679ddfafcefa..bbf998fd0dd36 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListResourceDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListResourceDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static SharePointOnlineListResourceDataset DeserializeSharePointOnlineL listName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SharePointOnlineListResourceDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSharePointOnlineListResourceDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SharePointOnlineListResourceDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SharePointOnlineListResourceDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SharePointOnlineListResourceDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListSource.Serialization.cs index b7745856e0776..3d6d2fe5f2019 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SharePointOnlineListSource.Serialization.cs @@ -133,12 +133,29 @@ internal static SharePointOnlineListSource DeserializeSharePointOnlineListSource httpRequestTimeout); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SharePointOnlineListSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSharePointOnlineListSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SharePointOnlineListSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SharePointOnlineListSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SharePointOnlineListSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifyLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifyLinkedService.Serialization.cs index 39f0ac101d27c..27585ed014834 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifyLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifyLinkedService.Serialization.cs @@ -250,12 +250,29 @@ internal static ShopifyLinkedService DeserializeShopifyLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ShopifyLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeShopifyLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ShopifyLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ShopifyLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ShopifyLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifyObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifyObjectDataset.Serialization.cs index 11e91644457df..ba046c06d1aa9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifyObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifyObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static ShopifyObjectDataset DeserializeShopifyObjectDataset(JsonElement tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ShopifyObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeShopifyObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ShopifyObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ShopifyObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ShopifyObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifySource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifySource.Serialization.cs index 3e9f0f5a5039a..fe9de0afe38ad 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifySource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ShopifySource.Serialization.cs @@ -149,12 +149,29 @@ internal static ShopifySource DeserializeShopifySource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ShopifySource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeShopifySource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ShopifySourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ShopifySource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ShopifySource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SkipErrorFile.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SkipErrorFile.Serialization.cs index 4cb4f42faa424..59778b9ebcfc1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SkipErrorFile.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SkipErrorFile.Serialization.cs @@ -63,12 +63,29 @@ internal static SkipErrorFile DeserializeSkipErrorFile(JsonElement element) return new SkipErrorFile(fileMissing, dataInconsistency); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SkipErrorFile FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSkipErrorFile(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SkipErrorFileConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SkipErrorFile model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SkipErrorFile Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Sku.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Sku.Serialization.cs index 9d8a00943d5cf..113e10ead24c2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Sku.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Sku.Serialization.cs @@ -70,12 +70,29 @@ internal static Sku DeserializeSku(JsonElement element) return new Sku(tier, name, capacity); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Sku FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSku(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SkuConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Sku model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Sku Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SmartsheetLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SmartsheetLinkedService.Serialization.cs index 4b02a1c5cc6e4..f71addd5acf85 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SmartsheetLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SmartsheetLinkedService.Serialization.cs @@ -186,12 +186,29 @@ internal static SmartsheetLinkedService DeserializeSmartsheetLinkedService(JsonE encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SmartsheetLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSmartsheetLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SmartsheetLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SmartsheetLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SmartsheetLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeDataset.Serialization.cs index 07ae9e31c1bbe..904ace8052b10 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static SnowflakeDataset DeserializeSnowflakeDataset(JsonElement element table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SnowflakeDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSnowflakeDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SnowflakeDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SnowflakeDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SnowflakeDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeExportCopyCommand.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeExportCopyCommand.Serialization.cs index e9f07868c4fa2..4207a5f406a80 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeExportCopyCommand.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeExportCopyCommand.Serialization.cs @@ -127,12 +127,29 @@ internal static SnowflakeExportCopyCommand DeserializeSnowflakeExportCopyCommand return new SnowflakeExportCopyCommand(type, additionalProperties, additionalCopyOptions ?? new ChangeTrackingDictionary(), additionalFormatOptions ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SnowflakeExportCopyCommand FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSnowflakeExportCopyCommand(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SnowflakeExportCopyCommandConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SnowflakeExportCopyCommand model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SnowflakeExportCopyCommand Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeImportCopyCommand.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeImportCopyCommand.Serialization.cs index 3a0a474dbff1e..cae3e2f2a6203 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeImportCopyCommand.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeImportCopyCommand.Serialization.cs @@ -127,12 +127,29 @@ internal static SnowflakeImportCopyCommand DeserializeSnowflakeImportCopyCommand return new SnowflakeImportCopyCommand(type, additionalProperties, additionalCopyOptions ?? new ChangeTrackingDictionary(), additionalFormatOptions ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SnowflakeImportCopyCommand FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSnowflakeImportCopyCommand(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SnowflakeImportCopyCommandConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SnowflakeImportCopyCommand model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SnowflakeImportCopyCommand Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeLinkedService.Serialization.cs index 6596aa781a73e..aea8918ec7564 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeLinkedService.Serialization.cs @@ -202,12 +202,29 @@ internal static SnowflakeLinkedService DeserializeSnowflakeLinkedService(JsonEle encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SnowflakeLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSnowflakeLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SnowflakeLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SnowflakeLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SnowflakeLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeSink.Serialization.cs index c32e78a3532c9..cf452942df0d6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeSink.Serialization.cs @@ -165,12 +165,29 @@ internal static SnowflakeSink DeserializeSnowflakeSink(JsonElement element) importSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SnowflakeSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSnowflakeSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SnowflakeSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SnowflakeSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SnowflakeSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeSource.Serialization.cs index 7876cfa93cb31..5d6cb41eba161 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SnowflakeSource.Serialization.cs @@ -126,12 +126,29 @@ internal static SnowflakeSource DeserializeSnowflakeSource(JsonElement element) exportSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SnowflakeSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSnowflakeSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SnowflakeSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SnowflakeSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SnowflakeSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.Serialization.cs index 0ac88b65f6a2a..4a5ec428ef0b3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJob.Serialization.cs @@ -218,12 +218,21 @@ internal static SparkBatchJob DeserializeSparkBatchJob(JsonElement element) log ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkBatchJob FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkBatchJob(document.RootElement); + } + internal partial class SparkBatchJobConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkBatchJob model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SparkBatchJob Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJobState.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJobState.Serialization.cs index bfa7f098bb46c..f54d3beb43b51 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJobState.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkBatchJobState.Serialization.cs @@ -128,12 +128,21 @@ internal static SparkBatchJobState DeserializeSparkBatchJobState(JsonElement ele jobCreationRequest); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkBatchJobState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkBatchJobState(document.RootElement); + } + internal partial class SparkBatchJobStateConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkBatchJobState model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SparkBatchJobState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfiguration.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfiguration.Serialization.cs index c0a4099ca5158..ceb6078054177 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfiguration.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfiguration.Serialization.cs @@ -159,12 +159,29 @@ internal static SparkConfiguration DeserializeSparkConfiguration(JsonElement ele configMergeRule ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkConfigurationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkConfiguration model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkConfiguration Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationListResponse.Serialization.cs index c7675b7575a8d..6b245867edd72 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static SparkConfigurationListResponse DeserializeSparkConfigurationList return new SparkConfigurationListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkConfigurationListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkConfigurationListResponse(document.RootElement); + } + internal partial class SparkConfigurationListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkConfigurationListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SparkConfigurationListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationParametrizationReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationParametrizationReference.Serialization.cs index e67ec1e8000b5..78877bbd37282 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationParametrizationReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationParametrizationReference.Serialization.cs @@ -49,12 +49,29 @@ internal static SparkConfigurationParametrizationReference DeserializeSparkConfi return new SparkConfigurationParametrizationReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkConfigurationParametrizationReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkConfigurationParametrizationReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkConfigurationParametrizationReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkConfigurationParametrizationReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkConfigurationParametrizationReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationReference.Serialization.cs index 70482589a256d..a4c440fde4a30 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationReference.Serialization.cs @@ -49,12 +49,29 @@ internal static SparkConfigurationReference DeserializeSparkConfigurationReferen return new SparkConfigurationReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkConfigurationReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkConfigurationReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkConfigurationReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkConfigurationReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkConfigurationReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationResource.Serialization.cs index 03cfdb8232dc6..e576a98e50beb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkConfigurationResource.Serialization.cs @@ -65,12 +65,29 @@ internal static SparkConfigurationResource DeserializeSparkConfigurationResource return new SparkConfigurationResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SparkConfigurationResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkConfigurationResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkConfigurationResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkConfigurationResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkConfigurationResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinition.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinition.Serialization.cs index 5d4f8defd8af9..df4cade26a99a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinition.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinition.Serialization.cs @@ -138,12 +138,29 @@ internal static SparkJobDefinition DeserializeSparkJobDefinition(JsonElement ele additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkJobDefinition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkJobDefinition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkJobDefinitionConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkJobDefinition model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkJobDefinition Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionFolder.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionFolder.Serialization.cs index adbd6155fa8d3..8b452f66b0248 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionFolder.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionFolder.Serialization.cs @@ -40,5 +40,21 @@ internal static SparkJobDefinitionFolder DeserializeSparkJobDefinitionFolder(Jso } return new SparkJobDefinitionFolder(name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkJobDefinitionFolder FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkJobDefinitionFolder(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionResource.Serialization.cs index 5f47a05775e3c..6824178ebaf5b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionResource.Serialization.cs @@ -65,12 +65,29 @@ internal static SparkJobDefinitionResource DeserializeSparkJobDefinitionResource return new SparkJobDefinitionResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SparkJobDefinitionResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkJobDefinitionResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkJobDefinitionResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkJobDefinitionResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkJobDefinitionResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionsListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionsListResponse.Serialization.cs index a012f343e2fec..01f51fa93a877 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionsListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobDefinitionsListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static SparkJobDefinitionsListResponse DeserializeSparkJobDefinitionsLi return new SparkJobDefinitionsListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkJobDefinitionsListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkJobDefinitionsListResponse(document.RootElement); + } + internal partial class SparkJobDefinitionsListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkJobDefinitionsListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SparkJobDefinitionsListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobProperties.Serialization.cs index 1157f30002a99..2fa714ffebae3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkJobProperties.Serialization.cs @@ -242,12 +242,29 @@ internal static SparkJobProperties DeserializeSparkJobProperties(JsonElement ele additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkJobProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkJobProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkJobPropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkJobProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkJobProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.Serialization.cs index e97dd67d17466..fee2c364a9690 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkLinkedService.Serialization.cs @@ -364,12 +364,29 @@ internal static SparkLinkedService DeserializeSparkLinkedService(JsonElement ele encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SparkLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkObjectDataset.Serialization.cs index e439e80b6a3c3..c0c36f6137918 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkObjectDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static SparkObjectDataset DeserializeSparkObjectDataset(JsonElement ele schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SparkObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.Serialization.cs index 24560b2f007e0..0000eff586fc5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkRequest.Serialization.cs @@ -191,12 +191,21 @@ internal static SparkRequest DeserializeSparkRequest(JsonElement element) numExecutors); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkRequest(document.RootElement); + } + internal partial class SparkRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkRequest model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SparkRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkScheduler.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkScheduler.Serialization.cs index c7afe2f84dc18..98ca53cbc4da9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkScheduler.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkScheduler.Serialization.cs @@ -80,12 +80,21 @@ internal static SparkScheduler DeserializeSparkScheduler(JsonElement element) return new SparkScheduler(submittedAt, scheduledAt, endedAt, cancellationRequestedAt, currentState); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkScheduler FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkScheduler(document.RootElement); + } + internal partial class SparkSchedulerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkScheduler model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SparkScheduler Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkServiceError.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkServiceError.Serialization.cs index ca448d48f1beb..0819d5875f699 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkServiceError.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkServiceError.Serialization.cs @@ -48,12 +48,21 @@ internal static SparkServiceError DeserializeSparkServiceError(JsonElement eleme return new SparkServiceError(message, errorCode, source); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkServiceError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkServiceError(document.RootElement); + } + internal partial class SparkServiceErrorConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkServiceError model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SparkServiceError Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkServicePlugin.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkServicePlugin.Serialization.cs index f283707488cd3..b3176d5d5cf69 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkServicePlugin.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkServicePlugin.Serialization.cs @@ -97,12 +97,21 @@ internal static SparkServicePlugin DeserializeSparkServicePlugin(JsonElement ele currentState); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkServicePlugin FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkServicePlugin(document.RootElement); + } + internal partial class SparkServicePluginConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkServicePlugin model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SparkServicePlugin Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkSource.Serialization.cs index 1b8996381bcc9..5e542b014549f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SparkSource.Serialization.cs @@ -149,12 +149,29 @@ internal static SparkSource DeserializeSparkSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SparkSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SparkSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SparkSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SparkSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlAlwaysEncryptedProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlAlwaysEncryptedProperties.Serialization.cs index 045c893e98122..32fae0c5e3408 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlAlwaysEncryptedProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlAlwaysEncryptedProperties.Serialization.cs @@ -86,12 +86,29 @@ internal static SqlAlwaysEncryptedProperties DeserializeSqlAlwaysEncryptedProper return new SqlAlwaysEncryptedProperties(alwaysEncryptedAkvAuthType, servicePrincipalId, servicePrincipalKey, credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlAlwaysEncryptedProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlAlwaysEncryptedProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlAlwaysEncryptedPropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlAlwaysEncryptedProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlAlwaysEncryptedProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlConnection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlConnection.Serialization.cs index 8533e86d1a876..90016ec46bed7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlConnection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlConnection.Serialization.cs @@ -91,12 +91,29 @@ internal static SqlConnection DeserializeSqlConnection(JsonElement element) return new SqlConnection(type, name, poolName, databaseName, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlConnection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlConnection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlConnectionConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlConnection model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlConnection Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlDWSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlDWSink.Serialization.cs index 1b3f3421d949e..e2e5cf7a71ef0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlDWSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlDWSink.Serialization.cs @@ -229,12 +229,29 @@ internal static SqlDWSink DeserializeSqlDWSink(JsonElement element) tableOption); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlDWSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlDWSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlDWSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlDWSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlDWSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlDWSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlDWSource.Serialization.cs index 3049cabdcd86b..af907296becf0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlDWSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlDWSource.Serialization.cs @@ -229,12 +229,29 @@ internal static SqlDWSource DeserializeSqlDWSource(JsonElement element) partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlDWSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlDWSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlDWSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlDWSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlDWSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.Serialization.cs index 2e902d972ad4f..5d51ff61778a5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.Serialization.cs @@ -229,12 +229,29 @@ internal static SqlMISink DeserializeSqlMISink(JsonElement element) tableOption); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlMISink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlMISink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlMISinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlMISink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlMISink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.Serialization.cs index 1311093757625..3f3766dabc273 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.Serialization.cs @@ -245,12 +245,29 @@ internal static SqlMISource DeserializeSqlMISource(JsonElement element) partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlMISource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlMISource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlMISourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlMISource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlMISource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPartitionSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPartitionSettings.Serialization.cs index a0ca65536d20e..979541080904a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPartitionSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPartitionSettings.Serialization.cs @@ -78,12 +78,29 @@ internal static SqlPartitionSettings DeserializeSqlPartitionSettings(JsonElement return new SqlPartitionSettings(partitionColumnName, partitionUpperBound, partitionLowerBound); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlPartitionSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlPartitionSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlPartitionSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlPartitionSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlPartitionSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPool.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPool.Serialization.cs index a0fb194966567..f7cc2e6f2253f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPool.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPool.Serialization.cs @@ -242,12 +242,29 @@ internal static SqlPool DeserializeSqlPool(JsonElement element) creationDate); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlPool FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlPool(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlPoolConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlPool model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlPool Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.Serialization.cs index f9cd3453a5272..9a6477435b5ae 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolInfoListResult.Serialization.cs @@ -48,12 +48,21 @@ internal static SqlPoolInfoListResult DeserializeSqlPoolInfoListResult(JsonEleme return new SqlPoolInfoListResult(nextLink, value ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlPoolInfoListResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlPoolInfoListResult(document.RootElement); + } + internal partial class SqlPoolInfoListResultConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlPoolInfoListResult model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SqlPoolInfoListResult Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolReference.Serialization.cs index 7e0317b904831..b0333020678ae 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolReference.Serialization.cs @@ -49,12 +49,29 @@ internal static SqlPoolReference DeserializeSqlPoolReference(JsonElement element return new SqlPoolReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlPoolReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlPoolReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlPoolReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlPoolReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlPoolReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.Serialization.cs index cbb926a4afe91..b52c72644bd6d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.Serialization.cs @@ -207,12 +207,29 @@ internal static SqlPoolStoredProcedureActivity DeserializeSqlPoolStoredProcedure storedProcedureParameters); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlPoolStoredProcedureActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlPoolStoredProcedureActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlPoolStoredProcedureActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlPoolStoredProcedureActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlPoolStoredProcedureActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScript.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScript.Serialization.cs index bcea7a0866055..84e16c99629de 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScript.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScript.Serialization.cs @@ -100,12 +100,29 @@ internal static SqlScript DeserializeSqlScript(JsonElement element) return new SqlScript(description, type, content, folder, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlScript FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlScript(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlScriptConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlScript model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlScript Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptContent.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptContent.Serialization.cs index 79e04e062412b..eb61a96d08d24 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptContent.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptContent.Serialization.cs @@ -96,12 +96,29 @@ internal static SqlScriptContent DeserializeSqlScriptContent(JsonElement element return new SqlScriptContent(query, currentConnection, resultLimit, metadata, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlScriptContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlScriptContent(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlScriptContentConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlScriptContent model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlScriptContent Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptFolder.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptFolder.Serialization.cs index a1aa96da17965..f0e80dabb025b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptFolder.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptFolder.Serialization.cs @@ -40,5 +40,21 @@ internal static SqlScriptFolder DeserializeSqlScriptFolder(JsonElement element) } return new SqlScriptFolder(name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlScriptFolder FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlScriptFolder(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptMetadata.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptMetadata.Serialization.cs index 24fd777440457..b5d10c4f88054 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptMetadata.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptMetadata.Serialization.cs @@ -54,12 +54,29 @@ internal static SqlScriptMetadata DeserializeSqlScriptMetadata(JsonElement eleme return new SqlScriptMetadata(language, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlScriptMetadata FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlScriptMetadata(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlScriptMetadataConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlScriptMetadata model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlScriptMetadata Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptResource.Serialization.cs index 41322ef0f112c..da1ac6ea6756f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptResource.Serialization.cs @@ -67,12 +67,29 @@ internal static SqlScriptResource DeserializeSqlScriptResource(JsonElement eleme return new SqlScriptResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlScriptResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlScriptResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlScriptResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlScriptResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlScriptResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptsListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptsListResponse.Serialization.cs index 819586f563331..83ffa0177151e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptsListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlScriptsListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static SqlScriptsListResponse DeserializeSqlScriptsListResponse(JsonEle return new SqlScriptsListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlScriptsListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlScriptsListResponse(document.RootElement); + } + internal partial class SqlScriptsListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlScriptsListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override SqlScriptsListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerLinkedService.Serialization.cs index 49c49633ade2c..261ae1a4a1aa5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerLinkedService.Serialization.cs @@ -234,12 +234,29 @@ internal static SqlServerLinkedService DeserializeSqlServerLinkedService(JsonEle alwaysEncryptedSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlServerLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlServerLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlServerLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlServerLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlServerLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.Serialization.cs index 8657de088d781..580c634558a87 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.Serialization.cs @@ -229,12 +229,29 @@ internal static SqlServerSink DeserializeSqlServerSink(JsonElement element) tableOption); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlServerSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlServerSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlServerSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlServerSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlServerSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.Serialization.cs index 77965ece15f5f..47ff38b28e06f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.Serialization.cs @@ -245,12 +245,29 @@ internal static SqlServerSource DeserializeSqlServerSource(JsonElement element) partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlServerSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlServerSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlServerSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlServerSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlServerSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerStoredProcedureActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerStoredProcedureActivity.Serialization.cs index 0143b5f49bd93..5481f41d18cd7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerStoredProcedureActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerStoredProcedureActivity.Serialization.cs @@ -230,12 +230,29 @@ internal static SqlServerStoredProcedureActivity DeserializeSqlServerStoredProce storedProcedureParameters); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlServerStoredProcedureActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlServerStoredProcedureActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlServerStoredProcedureActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlServerStoredProcedureActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlServerStoredProcedureActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerTableDataset.Serialization.cs index 6e6dea9fee071..a2425014a9847 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static SqlServerTableDataset DeserializeSqlServerTableDataset(JsonEleme table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlServerTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlServerTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlServerTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlServerTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlServerTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.Serialization.cs index 27eb4202404bd..560db4a7dc9ab 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.Serialization.cs @@ -229,12 +229,29 @@ internal static SqlSink DeserializeSqlSink(JsonElement element) tableOption); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlSinkConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlSink model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlSink Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.Serialization.cs index dad3cdeac1e62..fab3ba0a38f13 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.Serialization.cs @@ -229,12 +229,29 @@ internal static SqlSource DeserializeSqlSource(JsonElement element) partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SqlSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SqlSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SqlSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SqlSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareLinkedService.Serialization.cs index a50e8a96b72e5..9499221b0a4d2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareLinkedService.Serialization.cs @@ -284,12 +284,29 @@ internal static SquareLinkedService DeserializeSquareLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SquareLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSquareLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SquareLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SquareLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SquareLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareObjectDataset.Serialization.cs index 9c3b2498e41ec..8139b55ff862b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static SquareObjectDataset DeserializeSquareObjectDataset(JsonElement e tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SquareObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSquareObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SquareObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SquareObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SquareObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareSource.Serialization.cs index d1f7038228ac1..41f9f3b68f298 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SquareSource.Serialization.cs @@ -149,12 +149,29 @@ internal static SquareSource DeserializeSquareSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SquareSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSquareSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SquareSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SquareSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SquareSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisAccessCredential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisAccessCredential.Serialization.cs index 1221eee57441f..61119b60c4df0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisAccessCredential.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisAccessCredential.Serialization.cs @@ -57,12 +57,29 @@ internal static SsisAccessCredential DeserializeSsisAccessCredential(JsonElement return new SsisAccessCredential(domain, userName, password); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SsisAccessCredential FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSsisAccessCredential(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SsisAccessCredentialConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SsisAccessCredential model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SsisAccessCredential Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisChildPackage.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisChildPackage.Serialization.cs index 6bea78cbc0657..a5ffe68a263f5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisChildPackage.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisChildPackage.Serialization.cs @@ -71,12 +71,29 @@ internal static SsisChildPackage DeserializeSsisChildPackage(JsonElement element return new SsisChildPackage(packagePath, packageName, packageContent, packageLastModifiedDate); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SsisChildPackage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSsisChildPackage(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SsisChildPackageConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SsisChildPackage model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SsisChildPackage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisExecutionCredential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisExecutionCredential.Serialization.cs index 931045c33ea08..724e2ed5b2425 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisExecutionCredential.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisExecutionCredential.Serialization.cs @@ -57,12 +57,29 @@ internal static SsisExecutionCredential DeserializeSsisExecutionCredential(JsonE return new SsisExecutionCredential(domain, userName, password); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SsisExecutionCredential FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSsisExecutionCredential(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SsisExecutionCredentialConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SsisExecutionCredential model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SsisExecutionCredential Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisExecutionParameter.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisExecutionParameter.Serialization.cs index 9eab18f86cd0d..197ef995f60d8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisExecutionParameter.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisExecutionParameter.Serialization.cs @@ -41,12 +41,29 @@ internal static SsisExecutionParameter DeserializeSsisExecutionParameter(JsonEle return new SsisExecutionParameter(value); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SsisExecutionParameter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSsisExecutionParameter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SsisExecutionParameterConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SsisExecutionParameter model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SsisExecutionParameter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisLogLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisLogLocation.Serialization.cs index 3ea8ade99a4b9..914bb021ad781 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisLogLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisLogLocation.Serialization.cs @@ -94,12 +94,29 @@ internal static SsisLogLocation DeserializeSsisLogLocation(JsonElement element) return new SsisLogLocation(logPath, type, accessCredential, logRefreshInterval); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SsisLogLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSsisLogLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SsisLogLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SsisLogLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SsisLogLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisObjectMetadataStatusResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisObjectMetadataStatusResponse.Serialization.cs index 4da5b58803cdb..988310cac3789 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisObjectMetadataStatusResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisObjectMetadataStatusResponse.Serialization.cs @@ -77,12 +77,29 @@ internal static SsisObjectMetadataStatusResponse DeserializeSsisObjectMetadataSt return new SsisObjectMetadataStatusResponse(status, name, properties, error); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SsisObjectMetadataStatusResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSsisObjectMetadataStatusResponse(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SsisObjectMetadataStatusResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SsisObjectMetadataStatusResponse model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SsisObjectMetadataStatusResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPackageLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPackageLocation.Serialization.cs index a8e3490042eff..1929b04dc1046 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPackageLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPackageLocation.Serialization.cs @@ -211,12 +211,29 @@ internal static SsisPackageLocation DeserializeSsisPackageLocation(JsonElement e childPackages ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SsisPackageLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSsisPackageLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SsisPackageLocationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SsisPackageLocation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SsisPackageLocation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPropertyOverride.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPropertyOverride.Serialization.cs index 9eab03e48898d..381f3345a0ac1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPropertyOverride.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SsisPropertyOverride.Serialization.cs @@ -56,12 +56,29 @@ internal static SsisPropertyOverride DeserializeSsisPropertyOverride(JsonElement return new SsisPropertyOverride(value, isSensitive); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SsisPropertyOverride FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSsisPropertyOverride(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SsisPropertyOverrideConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SsisPropertyOverride model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SsisPropertyOverride Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StagingSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StagingSettings.Serialization.cs index bcae17392f451..8d919da836969 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StagingSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StagingSettings.Serialization.cs @@ -81,12 +81,29 @@ internal static StagingSettings DeserializeStagingSettings(JsonElement element) return new StagingSettings(linkedServiceName, path, enableCompression, additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StagingSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStagingSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class StagingSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StagingSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override StagingSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionRequest.Serialization.cs index b1f71393e47e6..4647daa432fca 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionRequest.Serialization.cs @@ -188,12 +188,29 @@ internal static StartDataFlowDebugSessionRequest DeserializeStartDataFlowDebugSe incrementalDebug); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StartDataFlowDebugSessionRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStartDataFlowDebugSessionRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class StartDataFlowDebugSessionRequestConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StartDataFlowDebugSessionRequest model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override StartDataFlowDebugSessionRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionResponse.Serialization.cs index c65e4bf7ae596..5369c3a3d614d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StartDataFlowDebugSessionResponse.Serialization.cs @@ -44,12 +44,29 @@ internal static StartDataFlowDebugSessionResponse DeserializeStartDataFlowDebugS return new StartDataFlowDebugSessionResponse(jobVersion); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StartDataFlowDebugSessionResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStartDataFlowDebugSessionResponse(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class StartDataFlowDebugSessionResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StartDataFlowDebugSessionResponse model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override StartDataFlowDebugSessionResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreReadSettings.Serialization.cs index f796a823051dc..9a48a97fac2e8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreReadSettings.Serialization.cs @@ -59,12 +59,29 @@ internal static StoreReadSettings DeserializeStoreReadSettings(JsonElement eleme return UnknownStoreReadSettings.DeserializeUnknownStoreReadSettings(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StoreReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStoreReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class StoreReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StoreReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override StoreReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreWriteSettings.Serialization.cs index 7046df8d093f8..c32bd68e709f7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreWriteSettings.Serialization.cs @@ -59,12 +59,29 @@ internal static StoreWriteSettings DeserializeStoreWriteSettings(JsonElement ele return UnknownStoreWriteSettings.DeserializeUnknownStoreWriteSettings(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StoreWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStoreWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class StoreWriteSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, StoreWriteSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override StoreWriteSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SubResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SubResource.Serialization.cs index d72402d02747e..1a5be1f2e7f23 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SubResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SubResource.Serialization.cs @@ -57,12 +57,29 @@ internal static SubResource DeserializeSubResource(JsonElement element) return new SubResource(id, name, type, etag); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SubResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSubResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SubResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SubResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SubResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SubResourceDebugResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SubResourceDebugResource.Serialization.cs index cd3db927c8fc5..4254ac95416da 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SubResourceDebugResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SubResourceDebugResource.Serialization.cs @@ -44,12 +44,29 @@ internal static SubResourceDebugResource DeserializeSubResourceDebugResource(Jso return new SubResourceDebugResource(name); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SubResourceDebugResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSubResourceDebugResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SubResourceDebugResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SubResourceDebugResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SubResourceDebugResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchActivity.Serialization.cs index b0a4f41d39d4f..a0a903b2ae6bb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchActivity.Serialization.cs @@ -234,12 +234,29 @@ internal static SwitchActivity DeserializeSwitchActivity(JsonElement element) defaultActivities ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SwitchActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSwitchActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SwitchActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SwitchActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SwitchActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchCase.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchCase.Serialization.cs index 3a2ef8dca9f8d..5f0cb5508352f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchCase.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SwitchCase.Serialization.cs @@ -70,12 +70,29 @@ internal static SwitchCase DeserializeSwitchCase(JsonElement element) return new SwitchCase(value, activities ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SwitchCase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSwitchCase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SwitchCaseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SwitchCase model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SwitchCase Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseLinkedService.Serialization.cs index 2caa602a7531b..959731cd323d9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseLinkedService.Serialization.cs @@ -259,12 +259,29 @@ internal static SybaseLinkedService DeserializeSybaseLinkedService(JsonElement e encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SybaseLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSybaseLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SybaseLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SybaseLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SybaseLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseSource.Serialization.cs index 574f3d02c4336..e98131bdc54f3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseSource.Serialization.cs @@ -149,12 +149,29 @@ internal static SybaseSource DeserializeSybaseSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SybaseSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSybaseSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SybaseSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SybaseSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SybaseSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseTableDataset.Serialization.cs index a5244e0ae40b2..9a2a5bd26c25e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SybaseTableDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static SybaseTableDataset DeserializeSybaseTableDataset(JsonElement ele tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SybaseTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSybaseTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SybaseTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SybaseTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SybaseTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseNotebookActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseNotebookActivity.Serialization.cs index 218e44f275d91..0f93765e0ba3d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseNotebookActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseNotebookActivity.Serialization.cs @@ -392,12 +392,29 @@ internal static SynapseNotebookActivity DeserializeSynapseNotebookActivity(JsonE sparkConfig ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SynapseNotebookActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSynapseNotebookActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SynapseNotebookActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SynapseNotebookActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SynapseNotebookActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseNotebookReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseNotebookReference.Serialization.cs index ee7c0fbce3f24..0af27450830d4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseNotebookReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseNotebookReference.Serialization.cs @@ -49,12 +49,29 @@ internal static SynapseNotebookReference DeserializeSynapseNotebookReference(Jso return new SynapseNotebookReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SynapseNotebookReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSynapseNotebookReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SynapseNotebookReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SynapseNotebookReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SynapseNotebookReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobDefinitionActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobDefinitionActivity.Serialization.cs index 81ed3dae4de3d..d65ceb3e6463b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobDefinitionActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobDefinitionActivity.Serialization.cs @@ -565,12 +565,29 @@ internal static SynapseSparkJobDefinitionActivity DeserializeSynapseSparkJobDefi sparkConfig ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SynapseSparkJobDefinitionActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSynapseSparkJobDefinitionActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SynapseSparkJobDefinitionActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SynapseSparkJobDefinitionActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SynapseSparkJobDefinitionActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobReference.Serialization.cs index 019514b69f2e1..4af3a41a6eb4d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SynapseSparkJobReference.Serialization.cs @@ -49,12 +49,29 @@ internal static SynapseSparkJobReference DeserializeSynapseSparkJobReference(Jso return new SynapseSparkJobReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SynapseSparkJobReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSynapseSparkJobReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class SynapseSparkJobReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, SynapseSparkJobReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override SynapseSparkJobReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TabularSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TabularSource.Serialization.cs index 0e32c96b91bd6..8617e775e2e4e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TabularSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TabularSource.Serialization.cs @@ -198,12 +198,29 @@ internal static TabularSource DeserializeTabularSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TabularSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTabularSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TabularSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TabularSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TabularSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TabularTranslator.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TabularTranslator.Serialization.cs index 7adbd781f09b8..fea3a0bde8b29 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TabularTranslator.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TabularTranslator.Serialization.cs @@ -165,12 +165,29 @@ internal static TabularTranslator DeserializeTabularTranslator(JsonElement eleme typeConversionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TabularTranslator FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTabularTranslator(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TabularTranslatorConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TabularTranslator model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TabularTranslator Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TarGZipReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TarGZipReadSettings.Serialization.cs index ffcc1a7a6ed04..535b2724179c0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TarGZipReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TarGZipReadSettings.Serialization.cs @@ -66,12 +66,29 @@ internal static TarGZipReadSettings DeserializeTarGZipReadSettings(JsonElement e return new TarGZipReadSettings(type, additionalProperties, preserveCompressionFileNameAsFolder); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TarGZipReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTarGZipReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TarGZipReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TarGZipReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TarGZipReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TarReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TarReadSettings.Serialization.cs index 0e83e703580c5..6b645fcd1700d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TarReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TarReadSettings.Serialization.cs @@ -66,12 +66,29 @@ internal static TarReadSettings DeserializeTarReadSettings(JsonElement element) return new TarReadSettings(type, additionalProperties, preserveCompressionFileNameAsFolder); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TarReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTarReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TarReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TarReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TarReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeamDeskLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeamDeskLinkedService.Serialization.cs index d6f07c69a6ddd..2310d6925bd3b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeamDeskLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeamDeskLinkedService.Serialization.cs @@ -243,12 +243,29 @@ internal static TeamDeskLinkedService DeserializeTeamDeskLinkedService(JsonEleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TeamDeskLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTeamDeskLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TeamDeskLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TeamDeskLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TeamDeskLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataLinkedService.Serialization.cs index dfbc6618479ad..8a06440b0b946 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataLinkedService.Serialization.cs @@ -257,12 +257,29 @@ internal static TeradataLinkedService DeserializeTeradataLinkedService(JsonEleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TeradataLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTeradataLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TeradataLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TeradataLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TeradataLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataPartitionSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataPartitionSettings.Serialization.cs index edf4d30db9902..26d52dbe895f8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataPartitionSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataPartitionSettings.Serialization.cs @@ -78,12 +78,29 @@ internal static TeradataPartitionSettings DeserializeTeradataPartitionSettings(J return new TeradataPartitionSettings(partitionColumnName, partitionUpperBound, partitionLowerBound); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TeradataPartitionSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTeradataPartitionSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TeradataPartitionSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TeradataPartitionSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TeradataPartitionSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataSource.Serialization.cs index aa163a74b5874..78790363e4253 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataSource.Serialization.cs @@ -181,12 +181,29 @@ internal static TeradataSource DeserializeTeradataSource(JsonElement element) partitionSettings); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TeradataSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTeradataSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TeradataSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TeradataSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TeradataSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataTableDataset.Serialization.cs index d8660b43a580e..44ac863197109 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TeradataTableDataset.Serialization.cs @@ -234,12 +234,29 @@ internal static TeradataTableDataset DeserializeTeradataTableDataset(JsonElement table); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TeradataTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTeradataTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TeradataTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TeradataTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TeradataTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TextFormat.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TextFormat.Serialization.cs index 9244cd7ad7a75..fc434bdb6f189 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TextFormat.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TextFormat.Serialization.cs @@ -229,12 +229,29 @@ internal static TextFormat DeserializeTextFormat(JsonElement element) firstRowAsHeader); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TextFormat FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextFormat(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TextFormatConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TextFormat model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TextFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TrackedResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TrackedResource.Serialization.cs index 10d4b48bca98d..5d5a0317086f3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TrackedResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TrackedResource.Serialization.cs @@ -86,12 +86,29 @@ internal static TrackedResource DeserializeTrackedResource(JsonElement element) return new TrackedResource(id, name, type, tags ?? new ChangeTrackingDictionary(), location); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TrackedResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTrackedResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TrackedResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TrackedResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TrackedResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Transformation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Transformation.Serialization.cs index 26ef4a710a7cc..a11b21d4ef766 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Transformation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Transformation.Serialization.cs @@ -97,12 +97,29 @@ internal static Transformation DeserializeTransformation(JsonElement element) return new Transformation(name, description, dataset, linkedService, flowlet); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Transformation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTransformation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TransformationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Transformation model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Transformation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.Serialization.cs index aba9033220a7b..e73cb7fe3ef58 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.Serialization.cs @@ -71,12 +71,29 @@ internal static Trigger DeserializeTrigger(JsonElement element) return UnknownTrigger.DeserializeUnknownTrigger(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Trigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TriggerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Trigger model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Trigger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerDependencyProvisioningStatus.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerDependencyProvisioningStatus.Serialization.cs index a4d12997444ba..597d7fc00c2b6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerDependencyProvisioningStatus.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerDependencyProvisioningStatus.Serialization.cs @@ -49,12 +49,29 @@ internal static TriggerDependencyProvisioningStatus DeserializeTriggerDependency return new TriggerDependencyProvisioningStatus(triggerName, provisioningStatus); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TriggerDependencyProvisioningStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTriggerDependencyProvisioningStatus(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TriggerDependencyProvisioningStatusConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TriggerDependencyProvisioningStatus model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TriggerDependencyProvisioningStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerDependencyReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerDependencyReference.Serialization.cs index fa0d66d9b2f30..8b5ea2b1e499b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerDependencyReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerDependencyReference.Serialization.cs @@ -56,12 +56,29 @@ internal static TriggerDependencyReference DeserializeTriggerDependencyReference return new TriggerDependencyReference(type, referenceTrigger); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TriggerDependencyReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTriggerDependencyReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TriggerDependencyReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TriggerDependencyReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TriggerDependencyReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerListResponse.Serialization.cs index 2e6e1ccaf3f3e..5bdf254cb5d6e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerListResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static TriggerListResponse DeserializeTriggerListResponse(JsonElement e return new TriggerListResponse(value, nextLink); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TriggerListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTriggerListResponse(document.RootElement); + } + internal partial class TriggerListResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TriggerListResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override TriggerListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerPipelineReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerPipelineReference.Serialization.cs index ea793edb00a8a..5f6c1aa521373 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerPipelineReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerPipelineReference.Serialization.cs @@ -87,12 +87,29 @@ internal static TriggerPipelineReference DeserializeTriggerPipelineReference(Jso return new TriggerPipelineReference(pipelineReference, parameters ?? new ChangeTrackingDictionary()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TriggerPipelineReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTriggerPipelineReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TriggerPipelineReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TriggerPipelineReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TriggerPipelineReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerReference.Serialization.cs index dfe02796034af..20b1aca163c95 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerReference.Serialization.cs @@ -49,12 +49,29 @@ internal static TriggerReference DeserializeTriggerReference(JsonElement element return new TriggerReference(type, referenceName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TriggerReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTriggerReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TriggerReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TriggerReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TriggerReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerResource.Serialization.cs index 75a637d8b778d..3022bd09cca35 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerResource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerResource.Serialization.cs @@ -65,12 +65,29 @@ internal static TriggerResource DeserializeTriggerResource(JsonElement element) return new TriggerResource(id, name, type, etag, properties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TriggerResource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTriggerResource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TriggerResourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TriggerResource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TriggerResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerRun.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerRun.Serialization.cs index d1d1020af56dd..43b35047b1131 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerRun.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerRun.Serialization.cs @@ -114,12 +114,21 @@ internal static TriggerRun DeserializeTriggerRun(JsonElement element) additionalProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TriggerRun FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTriggerRun(document.RootElement); + } + internal partial class TriggerRunConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TriggerRun model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override TriggerRun Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerRunsQueryResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerRunsQueryResponse.Serialization.cs index cefff3d0134ba..1f2874322a823 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerRunsQueryResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerRunsQueryResponse.Serialization.cs @@ -44,12 +44,21 @@ internal static TriggerRunsQueryResponse DeserializeTriggerRunsQueryResponse(Jso return new TriggerRunsQueryResponse(value, continuationToken); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TriggerRunsQueryResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTriggerRunsQueryResponse(document.RootElement); + } + internal partial class TriggerRunsQueryResponseConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TriggerRunsQueryResponse model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override TriggerRunsQueryResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerSubscriptionOperationStatus.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerSubscriptionOperationStatus.Serialization.cs index 6b2c3a33dbb84..23a63a826f913 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerSubscriptionOperationStatus.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TriggerSubscriptionOperationStatus.Serialization.cs @@ -42,12 +42,21 @@ internal static TriggerSubscriptionOperationStatus DeserializeTriggerSubscriptio return new TriggerSubscriptionOperationStatus(triggerName, status); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TriggerSubscriptionOperationStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTriggerSubscriptionOperationStatus(document.RootElement); + } + internal partial class TriggerSubscriptionOperationStatusConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TriggerSubscriptionOperationStatus model, JsonSerializerOptions options) { throw new NotImplementedException(); } + public override TriggerSubscriptionOperationStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTrigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTrigger.Serialization.cs index 28f42e81397e8..f7fe8f0f91573 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTrigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTrigger.Serialization.cs @@ -248,12 +248,29 @@ internal static TumblingWindowTrigger DeserializeTumblingWindowTrigger(JsonEleme dependsOn ?? new ChangeTrackingList()); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TumblingWindowTrigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTumblingWindowTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TumblingWindowTriggerConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TumblingWindowTrigger model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TumblingWindowTrigger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTriggerDependencyReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTriggerDependencyReference.Serialization.cs index 07081c805f11a..dca30a0ddb798 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTriggerDependencyReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TumblingWindowTriggerDependencyReference.Serialization.cs @@ -71,12 +71,29 @@ internal static TumblingWindowTriggerDependencyReference DeserializeTumblingWind return new TumblingWindowTriggerDependencyReference(type, referenceTrigger, offset, size); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TumblingWindowTriggerDependencyReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTumblingWindowTriggerDependencyReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TumblingWindowTriggerDependencyReferenceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TumblingWindowTriggerDependencyReference model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TumblingWindowTriggerDependencyReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TwilioLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TwilioLinkedService.Serialization.cs index ae5532477d928..9841d09460fd2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TwilioLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TwilioLinkedService.Serialization.cs @@ -179,12 +179,29 @@ internal static TwilioLinkedService DeserializeTwilioLinkedService(JsonElement e password); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TwilioLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTwilioLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TwilioLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TwilioLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TwilioLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.Serialization.cs index 9264de30b9f87..8167768b78846 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/TypeConversionSettings.Serialization.cs @@ -129,12 +129,29 @@ internal static TypeConversionSettings DeserializeTypeConversionSettings(JsonEle culture); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TypeConversionSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTypeConversionSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class TypeConversionSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, TypeConversionSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override TypeConversionSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownActivity.Serialization.cs index 36117a2e93eae..9048cfdd6bd5a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownActivity.Serialization.cs @@ -154,5 +154,21 @@ internal static UnknownActivity DeserializeUnknownActivity(JsonElement element) userProperties ?? new ChangeTrackingList(), additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCompressionReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCompressionReadSettings.Serialization.cs index 4a5bbc0344207..39c61b5b2da60 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCompressionReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCompressionReadSettings.Serialization.cs @@ -47,5 +47,21 @@ internal static UnknownCompressionReadSettings DeserializeUnknownCompressionRead additionalProperties = additionalPropertiesDictionary; return new UnknownCompressionReadSettings(type, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownCompressionReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownCompressionReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopySink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopySink.Serialization.cs index 241ee4b2515d8..9fcec33a22346 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopySink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopySink.Serialization.cs @@ -129,5 +129,21 @@ internal static UnknownCopySink DeserializeUnknownCopySink(JsonElement element) maxConcurrentConnections, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownCopySink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownCopySink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopySource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopySource.Serialization.cs index 8e81697ea549d..24079599e3388 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopySource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopySource.Serialization.cs @@ -92,5 +92,21 @@ internal static UnknownCopySource DeserializeUnknownCopySource(JsonElement eleme additionalProperties = additionalPropertiesDictionary; return new UnknownCopySource(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownCopySource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownCopySource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopyTranslator.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopyTranslator.Serialization.cs index 8e149058a26bf..22a545fafcf75 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopyTranslator.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCopyTranslator.Serialization.cs @@ -47,5 +47,21 @@ internal static UnknownCopyTranslator DeserializeUnknownCopyTranslator(JsonEleme additionalProperties = additionalPropertiesDictionary; return new UnknownCopyTranslator(type, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownCopyTranslator FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownCopyTranslator(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCustomSetupBase.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCustomSetupBase.Serialization.cs index 8bf9eea7bf104..6a47108c9a651 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCustomSetupBase.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCustomSetupBase.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownCustomSetupBase DeserializeUnknownCustomSetupBase(JsonEle } return new UnknownCustomSetupBase(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownCustomSetupBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownCustomSetupBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDataFlow.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDataFlow.Serialization.cs index c6b8d36caf6c6..fdaa7306e10f7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDataFlow.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDataFlow.Serialization.cs @@ -101,5 +101,21 @@ internal static UnknownDataFlow DeserializeUnknownDataFlow(JsonElement element) } return new UnknownDataFlow(type, description, annotations ?? new ChangeTrackingList(), folder); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDataFlow FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDataFlow(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDataset.Serialization.cs index 65bef4b270d3f..eae60527c6525 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDataset.Serialization.cs @@ -183,5 +183,21 @@ internal static UnknownDataset DeserializeUnknownDataset(JsonElement element) folder, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDatasetLocation.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDatasetLocation.Serialization.cs index 9dbcc8b7fe7f1..e90297a30ddcf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDatasetLocation.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDatasetLocation.Serialization.cs @@ -77,5 +77,21 @@ internal static UnknownDatasetLocation DeserializeUnknownDatasetLocation(JsonEle additionalProperties = additionalPropertiesDictionary; return new UnknownDatasetLocation(type, folderPath, fileName, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDatasetLocation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDatasetLocation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDatasetStorageFormat.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDatasetStorageFormat.Serialization.cs index bafc7bd0a8857..a42350b92851f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDatasetStorageFormat.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDatasetStorageFormat.Serialization.cs @@ -77,5 +77,21 @@ internal static UnknownDatasetStorageFormat DeserializeUnknownDatasetStorageForm additionalProperties = additionalPropertiesDictionary; return new UnknownDatasetStorageFormat(type, serializer, deserializer, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDatasetStorageFormat FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDatasetStorageFormat(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDependencyReference.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDependencyReference.Serialization.cs index ca590305fd560..87501d5527ee7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDependencyReference.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownDependencyReference.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownDependencyReference DeserializeUnknownDependencyReference } return new UnknownDependencyReference(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownDependencyReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownDependencyReference(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownExportSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownExportSettings.Serialization.cs index e240ff1dc5cae..ec6e0e90cd683 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownExportSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownExportSettings.Serialization.cs @@ -47,5 +47,21 @@ internal static UnknownExportSettings DeserializeUnknownExportSettings(JsonEleme additionalProperties = additionalPropertiesDictionary; return new UnknownExportSettings(type, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownExportSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownExportSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownFormatReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownFormatReadSettings.Serialization.cs index eaaf7b0c9351e..a44b6a5799cb4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownFormatReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownFormatReadSettings.Serialization.cs @@ -47,5 +47,21 @@ internal static UnknownFormatReadSettings DeserializeUnknownFormatReadSettings(J additionalProperties = additionalPropertiesDictionary; return new UnknownFormatReadSettings(type, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownFormatReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownFormatReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownFormatWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownFormatWriteSettings.Serialization.cs index 88d5a435051c3..398256fa0c55a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownFormatWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownFormatWriteSettings.Serialization.cs @@ -47,5 +47,21 @@ internal static UnknownFormatWriteSettings DeserializeUnknownFormatWriteSettings additionalProperties = additionalPropertiesDictionary; return new UnknownFormatWriteSettings(type, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownFormatWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownFormatWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownImportSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownImportSettings.Serialization.cs index 8813902e0fe2b..5646cfd4bd3b0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownImportSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownImportSettings.Serialization.cs @@ -47,5 +47,21 @@ internal static UnknownImportSettings DeserializeUnknownImportSettings(JsonEleme additionalProperties = additionalPropertiesDictionary; return new UnknownImportSettings(type, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownImportSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownImportSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownIntegrationRuntime.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownIntegrationRuntime.Serialization.cs index ba70df83a2c3d..f8ec0d54d0459 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownIntegrationRuntime.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownIntegrationRuntime.Serialization.cs @@ -58,5 +58,21 @@ internal static UnknownIntegrationRuntime DeserializeUnknownIntegrationRuntime(J additionalProperties = additionalPropertiesDictionary; return new UnknownIntegrationRuntime(type, description, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownIntegrationRuntime FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownIntegrationRuntime(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownLinkedIntegrationRuntimeType.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownLinkedIntegrationRuntimeType.Serialization.cs index 84e1974f2d563..509562c937362 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownLinkedIntegrationRuntimeType.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownLinkedIntegrationRuntimeType.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownLinkedIntegrationRuntimeType DeserializeUnknownLinkedInte } return new UnknownLinkedIntegrationRuntimeType(authorizationType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownLinkedIntegrationRuntimeType FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownLinkedIntegrationRuntimeType(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownLinkedService.Serialization.cs index 23a1fad3d9b70..07e874781adc2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownLinkedService.Serialization.cs @@ -142,5 +142,21 @@ internal static UnknownLinkedService DeserializeUnknownLinkedService(JsonElement annotations ?? new ChangeTrackingList(), additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownSecretBase.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownSecretBase.Serialization.cs index 3a50789f89af2..3ada0a748a869 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownSecretBase.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownSecretBase.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownSecretBase DeserializeUnknownSecretBase(JsonElement eleme } return new UnknownSecretBase(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownSecretBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownSecretBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownStoreReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownStoreReadSettings.Serialization.cs index d44ca54699f43..45bc4c572c996 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownStoreReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownStoreReadSettings.Serialization.cs @@ -62,5 +62,21 @@ internal static UnknownStoreReadSettings DeserializeUnknownStoreReadSettings(Jso additionalProperties = additionalPropertiesDictionary; return new UnknownStoreReadSettings(type, maxConcurrentConnections, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownStoreReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownStoreReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownStoreWriteSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownStoreWriteSettings.Serialization.cs index 40ae6bc9e1e50..977ab299a1441 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownStoreWriteSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownStoreWriteSettings.Serialization.cs @@ -77,5 +77,21 @@ internal static UnknownStoreWriteSettings DeserializeUnknownStoreWriteSettings(J additionalProperties = additionalPropertiesDictionary; return new UnknownStoreWriteSettings(type, maxConcurrentConnections, copyBehavior, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownStoreWriteSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownStoreWriteSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownTrigger.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownTrigger.Serialization.cs index 423e00803a26e..c920c6784c4a5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownTrigger.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownTrigger.Serialization.cs @@ -105,5 +105,21 @@ internal static UnknownTrigger DeserializeUnknownTrigger(JsonElement element) additionalProperties = additionalPropertiesDictionary; return new UnknownTrigger(type, description, runtimeState, annotations ?? new ChangeTrackingList(), additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownTrigger FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownTrigger(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownWebLinkedServiceTypeProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownWebLinkedServiceTypeProperties.Serialization.cs index 41204836f659f..4ed1d79247d12 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownWebLinkedServiceTypeProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownWebLinkedServiceTypeProperties.Serialization.cs @@ -45,5 +45,21 @@ internal static UnknownWebLinkedServiceTypeProperties DeserializeUnknownWebLinke } return new UnknownWebLinkedServiceTypeProperties(url, authenticationType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownWebLinkedServiceTypeProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownWebLinkedServiceTypeProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UntilActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UntilActivity.Serialization.cs index bacd3ff822ceb..dc1fcef9d5109 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UntilActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UntilActivity.Serialization.cs @@ -217,12 +217,29 @@ internal static UntilActivity DeserializeUntilActivity(JsonElement element) activities); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UntilActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUntilActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class UntilActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, UntilActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override UntilActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UpdateLandingZoneCredential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UpdateLandingZoneCredential.Serialization.cs index 9b0f3734d041e..e082d959238f5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UpdateLandingZoneCredential.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UpdateLandingZoneCredential.Serialization.cs @@ -26,12 +26,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class UpdateLandingZoneCredentialConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, UpdateLandingZoneCredential model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override UpdateLandingZoneCredential Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw new NotImplementedException(); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UserProperty.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UserProperty.Serialization.cs index 7fa4bee8f02f6..dd1d7c614dff2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UserProperty.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UserProperty.Serialization.cs @@ -49,12 +49,29 @@ internal static UserProperty DeserializeUserProperty(JsonElement element) return new UserProperty(name, value); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static UserProperty FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUserProperty(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class UserPropertyConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, UserProperty model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override UserProperty Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ValidationActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ValidationActivity.Serialization.cs index b942dd0648ae8..12ed594ace463 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ValidationActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ValidationActivity.Serialization.cs @@ -246,12 +246,29 @@ internal static ValidationActivity DeserializeValidationActivity(JsonElement ele dataset); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ValidationActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeValidationActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ValidationActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ValidationActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ValidationActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VariableSpecification.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VariableSpecification.Serialization.cs index 48cc22a9bb6c7..96740fc5d9d4f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VariableSpecification.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VariableSpecification.Serialization.cs @@ -56,12 +56,29 @@ internal static VariableSpecification DeserializeVariableSpecification(JsonEleme return new VariableSpecification(type, defaultValue); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VariableSpecification FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVariableSpecification(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class VariableSpecificationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, VariableSpecification model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override VariableSpecification Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaLinkedService.Serialization.cs index 8b08974297807..2e161cde9f8cf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaLinkedService.Serialization.cs @@ -209,12 +209,29 @@ internal static VerticaLinkedService DeserializeVerticaLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new VerticaLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVerticaLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class VerticaLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, VerticaLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override VerticaLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaSource.Serialization.cs index a2612cf901e10..0b0d4b0acb246 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaSource.Serialization.cs @@ -149,12 +149,29 @@ internal static VerticaSource DeserializeVerticaSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new VerticaSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVerticaSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class VerticaSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, VerticaSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override VerticaSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaTableDataset.Serialization.cs index 978a4e5e33da8..576af950f3a27 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VerticaTableDataset.Serialization.cs @@ -250,12 +250,29 @@ internal static VerticaTableDataset DeserializeVerticaTableDataset(JsonElement e schema0); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new VerticaTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVerticaTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class VerticaTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, VerticaTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override VerticaTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VirtualNetworkProfile.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VirtualNetworkProfile.Serialization.cs index 75d77df5e8dae..8f3e37663971a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VirtualNetworkProfile.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/VirtualNetworkProfile.Serialization.cs @@ -44,12 +44,29 @@ internal static VirtualNetworkProfile DeserializeVirtualNetworkProfile(JsonEleme return new VirtualNetworkProfile(computeSubnetId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VirtualNetworkProfile FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVirtualNetworkProfile(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class VirtualNetworkProfileConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, VirtualNetworkProfile model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override VirtualNetworkProfile Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WaitActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WaitActivity.Serialization.cs index 07c8f667c0e3c..a5c98cbe42863 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WaitActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WaitActivity.Serialization.cs @@ -182,12 +182,29 @@ internal static WaitActivity DeserializeWaitActivity(JsonElement element) waitTimeInSeconds); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WaitActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWaitActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WaitActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WaitActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WaitActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivity.Serialization.cs index 6e9d1cd881334..d9df4e81c21ac 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivity.Serialization.cs @@ -339,12 +339,29 @@ internal static WebActivity DeserializeWebActivity(JsonElement element) connectVia); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.Serialization.cs index fccdcb632cd91..bfca4bf61b269 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.Serialization.cs @@ -138,12 +138,29 @@ internal static WebActivityAuthentication DeserializeWebActivityAuthentication(J credential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebActivityAuthentication FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebActivityAuthentication(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebActivityAuthenticationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebActivityAuthentication model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebActivityAuthentication Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebAnonymousAuthentication.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebAnonymousAuthentication.Serialization.cs index f6a93bf3f982b..557d05cdc8074 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebAnonymousAuthentication.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebAnonymousAuthentication.Serialization.cs @@ -49,12 +49,29 @@ internal static WebAnonymousAuthentication DeserializeWebAnonymousAuthentication return new WebAnonymousAuthentication(url, authenticationType); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebAnonymousAuthentication FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebAnonymousAuthentication(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebAnonymousAuthenticationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebAnonymousAuthentication model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebAnonymousAuthentication Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebBasicAuthentication.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebBasicAuthentication.Serialization.cs index d0a0ba5aa1006..d6eb2bbedfb51 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebBasicAuthentication.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebBasicAuthentication.Serialization.cs @@ -65,12 +65,29 @@ internal static WebBasicAuthentication DeserializeWebBasicAuthentication(JsonEle return new WebBasicAuthentication(url, authenticationType, username, password); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebBasicAuthentication FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebBasicAuthentication(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebBasicAuthenticationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebBasicAuthentication model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebBasicAuthentication Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebClientCertificateAuthentication.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebClientCertificateAuthentication.Serialization.cs index b7136a7e3909e..504082fc67cdc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebClientCertificateAuthentication.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebClientCertificateAuthentication.Serialization.cs @@ -65,12 +65,29 @@ internal static WebClientCertificateAuthentication DeserializeWebClientCertifica return new WebClientCertificateAuthentication(url, authenticationType, pfx, password); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebClientCertificateAuthentication FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebClientCertificateAuthentication(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebClientCertificateAuthenticationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebClientCertificateAuthentication model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebClientCertificateAuthentication Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebHookActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebHookActivity.Serialization.cs index e8b0b25feacd8..159eb6d4ac665 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebHookActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebHookActivity.Serialization.cs @@ -267,12 +267,29 @@ internal static WebHookActivity DeserializeWebHookActivity(JsonElement element) reportStatusOnCallBack); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebHookActivity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebHookActivity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebHookActivityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebHookActivity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebHookActivity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebLinkedService.Serialization.cs index cac8a37d0e86a..7897e07b32e4d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebLinkedService.Serialization.cs @@ -155,12 +155,29 @@ internal static WebLinkedService DeserializeWebLinkedService(JsonElement element typeProperties); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebLinkedServiceTypeProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebLinkedServiceTypeProperties.Serialization.cs index 67ef8e7d3c6e1..4d08040a2c793 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebLinkedServiceTypeProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebLinkedServiceTypeProperties.Serialization.cs @@ -43,12 +43,29 @@ internal static WebLinkedServiceTypeProperties DeserializeWebLinkedServiceTypePr return UnknownWebLinkedServiceTypeProperties.DeserializeUnknownWebLinkedServiceTypeProperties(element); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebLinkedServiceTypeProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebLinkedServiceTypeProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebLinkedServiceTypePropertiesConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebLinkedServiceTypeProperties model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebLinkedServiceTypeProperties Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebSource.Serialization.cs index e32db33524d6c..d13cea3e47fe3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebSource.Serialization.cs @@ -117,12 +117,29 @@ internal static WebSource DeserializeWebSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebTableDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebTableDataset.Serialization.cs index 14c74c495582c..c02b20a9c63d6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebTableDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebTableDataset.Serialization.cs @@ -227,12 +227,29 @@ internal static WebTableDataset DeserializeWebTableDataset(JsonElement element) path); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebTableDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWebTableDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WebTableDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WebTableDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WebTableDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Workspace.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Workspace.Serialization.cs index 000bd5348a991..2a4dde19a51f9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Workspace.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Workspace.Serialization.cs @@ -367,12 +367,29 @@ internal static Workspace DeserializeWorkspace(JsonElement element) adlaResourceId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new Workspace FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWorkspace(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WorkspaceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, Workspace model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override Workspace Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceIdentity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceIdentity.Serialization.cs index 9a7438dd9d546..cfaa9c5abe5f4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceIdentity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceIdentity.Serialization.cs @@ -53,12 +53,29 @@ internal static WorkspaceIdentity DeserializeWorkspaceIdentity(JsonElement eleme return new WorkspaceIdentity(type, principalId, tenantId); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WorkspaceIdentity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWorkspaceIdentity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WorkspaceIdentityConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WorkspaceIdentity model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WorkspaceIdentity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceKeyDetails.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceKeyDetails.Serialization.cs index b138d765dba5a..7aaddbf9347d5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceKeyDetails.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceKeyDetails.Serialization.cs @@ -55,12 +55,29 @@ internal static WorkspaceKeyDetails DeserializeWorkspaceKeyDetails(JsonElement e return new WorkspaceKeyDetails(name, keyVaultUrl); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WorkspaceKeyDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWorkspaceKeyDetails(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WorkspaceKeyDetailsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WorkspaceKeyDetails model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WorkspaceKeyDetails Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceRepositoryConfiguration.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceRepositoryConfiguration.Serialization.cs index d35299b0d6c9a..2ee50f13508d5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceRepositoryConfiguration.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceRepositoryConfiguration.Serialization.cs @@ -173,12 +173,29 @@ internal static WorkspaceRepositoryConfiguration DeserializeWorkspaceRepositoryC clientSecret); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WorkspaceRepositoryConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWorkspaceRepositoryConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WorkspaceRepositoryConfigurationConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WorkspaceRepositoryConfiguration model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WorkspaceRepositoryConfiguration Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceUpdateParameters.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceUpdateParameters.Serialization.cs index 8d26f76fe26f7..9e8d63ddf6b55 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceUpdateParameters.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WorkspaceUpdateParameters.Serialization.cs @@ -75,12 +75,29 @@ internal static WorkspaceUpdateParameters DeserializeWorkspaceUpdateParameters(J return new WorkspaceUpdateParameters(tags ?? new ChangeTrackingDictionary(), identity); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WorkspaceUpdateParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeWorkspaceUpdateParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class WorkspaceUpdateParametersConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, WorkspaceUpdateParameters model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override WorkspaceUpdateParameters Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroLinkedService.Serialization.cs index cadbbb928b480..2abcd673545d5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroLinkedService.Serialization.cs @@ -282,12 +282,29 @@ internal static XeroLinkedService DeserializeXeroLinkedService(JsonElement eleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new XeroLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeXeroLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class XeroLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, XeroLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override XeroLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroObjectDataset.Serialization.cs index 7fe6d3211edbf..a0e775e4ddde7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static XeroObjectDataset DeserializeXeroObjectDataset(JsonElement eleme tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new XeroObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeXeroObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class XeroObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, XeroObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override XeroObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroSource.Serialization.cs index a16400bc7f5f7..e46e7c9ea8e85 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XeroSource.Serialization.cs @@ -149,12 +149,29 @@ internal static XeroSource DeserializeXeroSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new XeroSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeXeroSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class XeroSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, XeroSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override XeroSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlDataset.Serialization.cs index cd29d56da858e..6c1247c148026 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlDataset.Serialization.cs @@ -266,12 +266,29 @@ internal static XmlDataset DeserializeXmlDataset(JsonElement element) compression); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new XmlDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeXmlDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class XmlDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, XmlDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override XmlDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlReadSettings.Serialization.cs index d9b776ab0ff42..6a3d5ff0a8583 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlReadSettings.Serialization.cs @@ -133,12 +133,29 @@ internal static XmlReadSettings DeserializeXmlReadSettings(JsonElement element) namespacePrefixes); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new XmlReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeXmlReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class XmlReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, XmlReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override XmlReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlSource.Serialization.cs index 4e97021b3832e..1689cde4b7d7b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/XmlSource.Serialization.cs @@ -149,12 +149,29 @@ internal static XmlSource DeserializeXmlSource(JsonElement element) additionalColumns); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new XmlSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeXmlSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class XmlSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, XmlSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override XmlSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZendeskLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZendeskLinkedService.Serialization.cs index 07fcda1b2df87..1ec38737b896a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZendeskLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZendeskLinkedService.Serialization.cs @@ -243,12 +243,29 @@ internal static ZendeskLinkedService DeserializeZendeskLinkedService(JsonElement encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ZendeskLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeZendeskLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ZendeskLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ZendeskLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ZendeskLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZipDeflateReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZipDeflateReadSettings.Serialization.cs index 7525f8a580263..1caab027e4785 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZipDeflateReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZipDeflateReadSettings.Serialization.cs @@ -66,12 +66,29 @@ internal static ZipDeflateReadSettings DeserializeZipDeflateReadSettings(JsonEle return new ZipDeflateReadSettings(type, additionalProperties, preserveZipFileNameAsFolder); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ZipDeflateReadSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeZipDeflateReadSettings(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ZipDeflateReadSettingsConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ZipDeflateReadSettings model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ZipDeflateReadSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoLinkedService.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoLinkedService.Serialization.cs index 265f302fe3917..8c42bf32046b3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoLinkedService.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoLinkedService.Serialization.cs @@ -266,12 +266,29 @@ internal static ZohoLinkedService DeserializeZohoLinkedService(JsonElement eleme encryptedCredential); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ZohoLinkedService FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeZohoLinkedService(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ZohoLinkedServiceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ZohoLinkedService model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ZohoLinkedService Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoObjectDataset.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoObjectDataset.Serialization.cs index c98d042ddbcdb..2430b905ff843 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoObjectDataset.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoObjectDataset.Serialization.cs @@ -218,12 +218,29 @@ internal static ZohoObjectDataset DeserializeZohoObjectDataset(JsonElement eleme tableName); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ZohoObjectDataset FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeZohoObjectDataset(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ZohoObjectDatasetConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ZohoObjectDataset model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ZohoObjectDataset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoSource.Serialization.cs index 9c451c85f1301..bcffc259699c2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ZohoSource.Serialization.cs @@ -149,12 +149,29 @@ internal static ZohoSource DeserializeZohoSource(JsonElement element) query); } + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ZohoSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeZohoSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } + internal partial class ZohoSourceConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, ZohoSource model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } + public override ZohoSource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpoint.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpoint.Serialization.cs index a79e44fcb7bde..ccb8a79700d53 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpoint.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpoint.Serialization.cs @@ -62,5 +62,21 @@ internal static ManagedPrivateEndpoint DeserializeManagedPrivateEndpoint(JsonEle } return new ManagedPrivateEndpoint(id, name, type, properties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ManagedPrivateEndpoint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManagedPrivateEndpoint(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointConnectionState.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointConnectionState.Serialization.cs index 0d3fd449db3de..fbd81a12304dd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointConnectionState.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointConnectionState.Serialization.cs @@ -57,5 +57,21 @@ internal static ManagedPrivateEndpointConnectionState DeserializeManagedPrivateE } return new ManagedPrivateEndpointConnectionState(status, description, actionsRequired); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ManagedPrivateEndpointConnectionState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManagedPrivateEndpointConnectionState(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs index db40dd3a16bb6..54246ee48e69d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs @@ -44,5 +44,13 @@ internal static ManagedPrivateEndpointListResponse DeserializeManagedPrivateEndp } return new ManagedPrivateEndpointListResponse(value ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ManagedPrivateEndpointListResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManagedPrivateEndpointListResponse(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointProperties.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointProperties.Serialization.cs index a8b86aa55edfc..0945457512a06 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointProperties.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/Models/ManagedPrivateEndpointProperties.Serialization.cs @@ -142,5 +142,21 @@ internal static ManagedPrivateEndpointProperties DeserializeManagedPrivateEndpoi fqdns ?? new ChangeTrackingList(), isCompliant); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ManagedPrivateEndpointProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeManagedPrivateEndpointProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.Serialization.cs index 5a3e8090420e3..576440ddbd0fb 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJob.Serialization.cs @@ -162,5 +162,13 @@ internal static SparkJob DeserializeSparkJob(JsonElement element) runningDuration, totalDuration); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkJob FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkJob(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.Serialization.cs index 750d9b213a9f8..65431e99393a2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SparkJobListViewResponse.Serialization.cs @@ -48,5 +48,13 @@ internal static SparkJobListViewResponse DeserializeSparkJobListViewResponse(Jso } return new SparkJobListViewResponse(nJobs, sparkJobs ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkJobListViewResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkJobListViewResponse(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SqlQueryStringDataModel.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SqlQueryStringDataModel.Serialization.cs index 19be783886dc8..efe755d22fbbf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SqlQueryStringDataModel.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/Models/SqlQueryStringDataModel.Serialization.cs @@ -28,5 +28,13 @@ internal static SqlQueryStringDataModel DeserializeSqlQueryStringDataModel(JsonE } return new SqlQueryStringDataModel(query); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SqlQueryStringDataModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSqlQueryStringDataModel(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.Serialization.cs index a8e2b3e686c0e..8b6bda9bec201 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJob.Serialization.cs @@ -214,5 +214,13 @@ internal static SparkBatchJob DeserializeSparkBatchJob(JsonElement element) state, log ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkBatchJob FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkBatchJob(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.Serialization.cs index a024d8337c6f5..1ade7dc7dd530 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobCollection.Serialization.cs @@ -50,5 +50,13 @@ internal static SparkBatchJobCollection DeserializeSparkBatchJobCollection(JsonE } return new SparkBatchJobCollection(@from, total, sessions ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkBatchJobCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkBatchJobCollection(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobOptions.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobOptions.Serialization.cs index 52d96abaf8ca7..1a472ce58fc3b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobOptions.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobOptions.Serialization.cs @@ -128,5 +128,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobState.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobState.Serialization.cs index dad5bbb8e1cc9..ad24405334454 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobState.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkBatchJobState.Serialization.cs @@ -125,5 +125,13 @@ internal static SparkBatchJobState DeserializeSparkBatchJobState(JsonElement ele currentState, jobCreationRequest); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkBatchJobState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkBatchJobState(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.Serialization.cs index a4edee9a3358a..0a811569108ed 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkRequest.Serialization.cs @@ -187,5 +187,13 @@ internal static SparkRequest DeserializeSparkRequest(JsonElement element) executorCores, numExecutors); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkRequest(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkScheduler.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkScheduler.Serialization.cs index 70a30e50e4e4f..ed81657d08830 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkScheduler.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkScheduler.Serialization.cs @@ -77,5 +77,13 @@ internal static SparkScheduler DeserializeSparkScheduler(JsonElement element) } return new SparkScheduler(submittedAt, scheduledAt, endedAt, cancellationRequestedAt, currentState); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkScheduler FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkScheduler(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkServiceError.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkServiceError.Serialization.cs index 944a5d3eb22b0..70f0e1c9f080b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkServiceError.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkServiceError.Serialization.cs @@ -44,5 +44,13 @@ internal static SparkServiceError DeserializeSparkServiceError(JsonElement eleme } return new SparkServiceError(message, errorCode, source); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkServiceError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkServiceError(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkServicePlugin.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkServicePlugin.Serialization.cs index 31e145d725b08..83046a818b9db 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkServicePlugin.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkServicePlugin.Serialization.cs @@ -94,5 +94,13 @@ internal static SparkServicePlugin DeserializeSparkServicePlugin(JsonElement ele cleanupStartedAt, currentState); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkServicePlugin FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkServicePlugin(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.Serialization.cs index 3584813eec7f8..4d3b1b45f14de 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSession.Serialization.cs @@ -214,5 +214,13 @@ internal static SparkSession DeserializeSparkSession(JsonElement element) state, log ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkSession FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkSession(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.Serialization.cs index eff7d0ea4debd..78d00eeb8916b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionCollection.Serialization.cs @@ -50,5 +50,13 @@ internal static SparkSessionCollection DeserializeSparkSessionCollection(JsonEle } return new SparkSessionCollection(@from, total, sessions ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkSessionCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkSessionCollection(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionOptions.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionOptions.Serialization.cs index 09006fe4811df..54286e01f585d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionOptions.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionOptions.Serialization.cs @@ -131,5 +131,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionState.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionState.Serialization.cs index 04d5e417f936c..07227fc89d9e1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionState.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkSessionState.Serialization.cs @@ -149,5 +149,13 @@ internal static SparkSessionState DeserializeSparkSessionState(JsonElement eleme currentState, jobCreationRequest); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkSessionState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkSessionState(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatement.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatement.Serialization.cs index e2cc8a4239dfa..2e617e72b1460 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatement.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatement.Serialization.cs @@ -55,5 +55,13 @@ internal static SparkStatement DeserializeSparkStatement(JsonElement element) } return new SparkStatement(id, code, state, output); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkStatement FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkStatement(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCancellationResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCancellationResult.Serialization.cs index 024340311e840..8c25b12d1a59f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCancellationResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCancellationResult.Serialization.cs @@ -28,5 +28,13 @@ internal static SparkStatementCancellationResult DeserializeSparkStatementCancel } return new SparkStatementCancellationResult(msg); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkStatementCancellationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkStatementCancellationResult(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.Serialization.cs index d3b6b73ed9a19..b850b7d11ae3a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementCollection.Serialization.cs @@ -44,5 +44,13 @@ internal static SparkStatementCollection DeserializeSparkStatementCollection(Jso } return new SparkStatementCollection(totalStatements, statements ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkStatementCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkStatementCollection(document.RootElement); + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOptions.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOptions.Serialization.cs index bc3d9a1eef106..e47591b7f1656 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOptions.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOptions.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.Serialization.cs index 48cd2525d41dd..743eb358d8680 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/Models/SparkStatementOutput.Serialization.cs @@ -88,5 +88,13 @@ internal static SparkStatementOutput DeserializeSparkStatementOutput(JsonElement evalue, traceback ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SparkStatementOutput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSparkStatementOutput(document.RootElement); + } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.Serialization.cs index fb75ea9af1394..5a642fa1d99d0 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableEntityQueryResponse.Serialization.cs @@ -63,5 +63,13 @@ internal static TableEntityQueryResponse DeserializeTableEntityQueryResponse(Jso } return new TableEntityQueryResponse(odataMetadata, value ?? new ChangeTrackingList>()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TableEntityQueryResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTableEntityQueryResponse(document.RootElement); + } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableItem.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableItem.Serialization.cs index 0d0074661b4f4..de05f714c8120 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableItem.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableItem.Serialization.cs @@ -46,5 +46,13 @@ internal static TableItem DeserializeTableItem(JsonElement element) } return new TableItem(tableName, odataType, odataId, odataEditLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TableItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTableItem(document.RootElement); + } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableProperties.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableProperties.Serialization.cs index 5c40cd4581a90..a9f392fdd274e 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableProperties.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableProperties.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.Serialization.cs index 15aded8ee5fe9..225a6dbf0424a 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableQueryResponse.Serialization.cs @@ -44,5 +44,13 @@ internal static TableQueryResponse DeserializeTableQueryResponse(JsonElement ele } return new TableQueryResponse(odataMetadata, value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TableQueryResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTableQueryResponse(document.RootElement); + } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableResponse.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableResponse.Serialization.cs index 2023b44f450b5..05738f84c416d 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableResponse.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableResponse.Serialization.cs @@ -52,5 +52,13 @@ internal static TableResponse DeserializeTableResponse(JsonElement element) } return new TableResponse(tableName, odataType, odataId, odataEditLink, odataMetadata); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TableResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTableResponse(document.RootElement); + } } } diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableServiceError.Serialization.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableServiceError.Serialization.cs index 1289615f60f4c..5a2c712f9d77d 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableServiceError.Serialization.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Models/TableServiceError.Serialization.cs @@ -39,5 +39,13 @@ internal static TableServiceError DeserializeTableServiceError(JsonElement eleme } return new TableServiceError(message); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TableServiceError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTableServiceError(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalysisInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalysisInput.Serialization.cs index 0279caff34f26..df2b0db026068 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalysisInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalysisInput.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(AnalysisInputProperty); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeBatchInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeBatchInput.Serialization.cs index dbb07844ef6b4..a75056c800f81 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeBatchInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeBatchInput.Serialization.cs @@ -26,5 +26,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobDisplayName.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobDisplayName.Serialization.cs index ff0d8a4d4ea86..addcdb80f5e2a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobDisplayName.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobDisplayName.Serialization.cs @@ -28,5 +28,13 @@ internal static AnalyzeJobDisplayName DeserializeAnalyzeJobDisplayName(JsonEleme } return new AnalyzeJobDisplayName(displayName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzeJobDisplayName FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeJobDisplayName(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.Serialization.cs index e396b86522c84..30e51766634b1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobErrorsAndStatistics.Serialization.cs @@ -48,5 +48,13 @@ internal static AnalyzeJobErrorsAndStatistics DeserializeAnalyzeJobErrorsAndStat } return new AnalyzeJobErrorsAndStatistics(errors ?? new ChangeTrackingList(), statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzeJobErrorsAndStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeJobErrorsAndStatistics(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobMetadata.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobMetadata.Serialization.cs index 3ceb24ddda83a..c2132756740bc 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobMetadata.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobMetadata.Serialization.cs @@ -70,5 +70,13 @@ internal static AnalyzeJobMetadata DeserializeAnalyzeJobMetadata(JsonElement ele status, displayName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AnalyzeJobMetadata FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeJobMetadata(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobState.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobState.Serialization.cs index 803fda9449a16..eb3c1b3f2d327 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobState.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/AnalyzeJobState.Serialization.cs @@ -112,5 +112,13 @@ internal static AnalyzeJobState DeserializeAnalyzeJobState(JsonElement element) statistics, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AnalyzeJobState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeJobState(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DetectedLanguage.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DetectedLanguage.Serialization.cs index f30529daee157..0d5125ffc34de 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DetectedLanguage.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DetectedLanguage.Serialization.cs @@ -50,5 +50,13 @@ internal static DetectedLanguage DeserializeDetectedLanguage(JsonElement element } return new DetectedLanguage(name, iso6391Name, confidenceScore); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DetectedLanguage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDetectedLanguage(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentEntities.Serialization.cs index b776b57eb8393..c85b5ea130757 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentEntities.Serialization.cs @@ -61,5 +61,13 @@ internal static DocumentEntities DeserializeDocumentEntities(JsonElement element } return new DocumentEntities(id, entities, warnings, statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentEntities FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentEntities(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentError.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentError.Serialization.cs index 65ef6478243e1..0b906a6f234af 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentError.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentError.Serialization.cs @@ -34,5 +34,13 @@ internal static DocumentError DeserializeDocumentError(JsonElement element) } return new DocumentError(id, error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentError(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentHealthcareEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentHealthcareEntities.Serialization.cs index bb6db8dd70c56..8508874761d50 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentHealthcareEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentHealthcareEntities.Serialization.cs @@ -72,5 +72,13 @@ internal static DocumentHealthcareEntities DeserializeDocumentHealthcareEntities } return new DocumentHealthcareEntities(id, entities, relations, warnings, statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentHealthcareEntities FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentHealthcareEntities(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentKeyPhrases.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentKeyPhrases.Serialization.cs index 8ae3d092cee4e..a9e73ce9adba4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentKeyPhrases.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentKeyPhrases.Serialization.cs @@ -61,5 +61,13 @@ internal static DocumentKeyPhrases DeserializeDocumentKeyPhrases(JsonElement ele } return new DocumentKeyPhrases(id, keyPhrases, warnings, statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentKeyPhrases FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentKeyPhrases(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentLanguage.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentLanguage.Serialization.cs index 09c9ea4e59911..ad34ac5d94b0d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentLanguage.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentLanguage.Serialization.cs @@ -56,5 +56,13 @@ internal static DocumentLanguage DeserializeDocumentLanguage(JsonElement element } return new DocumentLanguage(id, detectedLanguage, warnings, statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentLanguage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentLanguage(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentLinkedEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentLinkedEntities.Serialization.cs index 59d9ef201786d..e7e0d32692c24 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentLinkedEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentLinkedEntities.Serialization.cs @@ -61,5 +61,13 @@ internal static DocumentLinkedEntities DeserializeDocumentLinkedEntities(JsonEle } return new DocumentLinkedEntities(id, entities, warnings, statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentLinkedEntities FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentLinkedEntities(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentSentiment.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentSentiment.Serialization.cs index 0f8960ad661ef..1d1da44ac8695 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentSentiment.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentSentiment.Serialization.cs @@ -80,5 +80,13 @@ internal static DocumentSentiment DeserializeDocumentSentiment(JsonElement eleme sentences, warnings); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentSentiment FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentSentiment(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentStatistics.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentStatistics.Serialization.cs index adf9ba728bf96..cfde2cdd5e8fe 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentStatistics.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/DocumentStatistics.Serialization.cs @@ -34,5 +34,13 @@ internal static DocumentStatistics DeserializeDocumentStatistics(JsonElement ele } return new DocumentStatistics(charactersCount, transactionsCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentStatistics(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesResult.Serialization.cs index a0c0a7e30479b..3dcc25667254d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesResult.Serialization.cs @@ -61,5 +61,13 @@ internal static EntitiesResult DeserializeEntitiesResult(JsonElement element) } return new EntitiesResult(documents, errors, statistics, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EntitiesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntitiesResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTask.Serialization.cs index b302887564956..be4b05eb3db99 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTask.Serialization.cs @@ -28,5 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTaskParameters.Serialization.cs index 68315328b0bcd..a13dcc7f57554 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTaskParameters.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTaskResult.Serialization.cs index 1d0f2b82cc326..f3bc3dbb017c4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntitiesTaskResult.Serialization.cs @@ -32,5 +32,13 @@ internal static EntitiesTaskResult DeserializeEntitiesTaskResult(JsonElement ele } return new EntitiesTaskResult(results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EntitiesTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntitiesTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Entity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Entity.Serialization.cs index 1b35f76ca5019..1245c6a6c0900 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Entity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Entity.Serialization.cs @@ -64,5 +64,13 @@ internal static Entity DeserializeEntity(JsonElement element) length, confidenceScore); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Entity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntity(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingResult.Serialization.cs index 615c1c9e5f354..105e7922d854e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingResult.Serialization.cs @@ -61,5 +61,13 @@ internal static EntityLinkingResult DeserializeEntityLinkingResult(JsonElement e } return new EntityLinkingResult(documents, errors, statistics, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EntityLinkingResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityLinkingResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTask.Serialization.cs index f015c9d48f3b4..63d773fbf6aef 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTask.Serialization.cs @@ -28,5 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTaskParameters.Serialization.cs index 4d40ca1bbb9ea..1e866d3dc0c31 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTaskParameters.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTaskResult.Serialization.cs index 4f3136f15a6a3..1dbee2ddf567d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/EntityLinkingTaskResult.Serialization.cs @@ -32,5 +32,13 @@ internal static EntityLinkingTaskResult DeserializeEntityLinkingTaskResult(JsonE } return new EntityLinkingTaskResult(results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EntityLinkingTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityLinkingTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/ErrorResponse.Serialization.cs index 7ea1d6a95a8b8..0250e27da39cb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/ErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareAssertion.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareAssertion.Serialization.cs index 01d5d6ee9385d..80d7baacfd274 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareAssertion.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareAssertion.Serialization.cs @@ -53,5 +53,13 @@ internal static HealthcareAssertion DeserializeHealthcareAssertion(JsonElement e } return new HealthcareAssertion(conditionality, certainty, association); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareAssertion FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareAssertion(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.Serialization.cs index d411e4ea26bab..b9c23b1cabf67 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntity.Serialization.cs @@ -100,5 +100,13 @@ internal static HealthcareEntity DeserializeHealthcareEntity(JsonElement element name, links ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HealthcareEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareEntity(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntityLink.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntityLink.Serialization.cs index f210b7b3e8c95..fd102091c592f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntityLink.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntityLink.Serialization.cs @@ -34,5 +34,13 @@ internal static HealthcareEntityLink DeserializeHealthcareEntityLink(JsonElement } return new HealthcareEntityLink(dataSource, id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareEntityLink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareEntityLink(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntityProperties.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntityProperties.Serialization.cs index 76e565682ce47..3ea20b16247e7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntityProperties.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareEntityProperties.Serialization.cs @@ -65,5 +65,13 @@ internal static HealthcareEntityProperties DeserializeHealthcareEntityProperties length, confidenceScore); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareEntityProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareEntityProperties(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareJobState.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareJobState.Serialization.cs index 0bdee6c95bb84..b13bf64afd5e4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareJobState.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareJobState.Serialization.cs @@ -98,5 +98,13 @@ internal static HealthcareJobState DeserializeHealthcareJobState(JsonElement ele errors ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HealthcareJobState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareJobState(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.Serialization.cs index 0ca5de2374c7f..57ee31dc298e1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareLinkingProperties.Serialization.cs @@ -54,5 +54,13 @@ internal static HealthcareLinkingProperties DeserializeHealthcareLinkingProperti } return new HealthcareLinkingProperties(assertion, name, links ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareLinkingProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareLinkingProperties(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareRelation.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareRelation.Serialization.cs index 4cdcb4ab73d7f..1db3abc1bd5d6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareRelation.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareRelation.Serialization.cs @@ -41,5 +41,13 @@ internal static HealthcareRelation DeserializeHealthcareRelation(JsonElement ele } return new HealthcareRelation(relationType, entities); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareRelation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareRelation(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareRelationEntity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareRelationEntity.Serialization.cs index df49cfc187d5a..a55c95716835d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareRelationEntity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareRelationEntity.Serialization.cs @@ -34,5 +34,13 @@ internal static HealthcareRelationEntity DeserializeHealthcareRelationEntity(Jso } return new HealthcareRelationEntity(@ref, role); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareRelationEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareRelationEntity(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareResult.Serialization.cs index 0a9761714090f..41a4b763bd72b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareResult.Serialization.cs @@ -61,5 +61,13 @@ internal static HealthcareResult DeserializeHealthcareResult(JsonElement element } return new HealthcareResult(documents, errors, statistics, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.Serialization.cs index a8fe44587f9a6..4ce3a7541feca 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/HealthcareTaskResult.Serialization.cs @@ -48,5 +48,13 @@ internal static HealthcareTaskResult DeserializeHealthcareTaskResult(JsonElement } return new HealthcareTaskResult(results, errors ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/InnerError.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/InnerError.Serialization.cs index 1904786a9e2dc..5dcb09f13421a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/InnerError.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/InnerError.Serialization.cs @@ -67,5 +67,13 @@ internal static InnerError DeserializeInnerError(JsonElement element) } return new InnerError(code, message, details ?? new ChangeTrackingDictionary(), target, innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InnerError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInnerError(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobDescriptor.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobDescriptor.Serialization.cs index 7f6652596b6c8..726607ab60ec2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobDescriptor.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobDescriptor.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifest.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifest.Serialization.cs index 9f8f7a00fdc92..7081f585d7694 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifest.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifest.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(Tasks); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifestTasks.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifestTasks.Serialization.cs index 9587dd210f479..0090a203936fe 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifestTasks.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobManifestTasks.Serialization.cs @@ -67,5 +67,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobMetadata.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobMetadata.Serialization.cs index 590574719ff3d..92101dd985252 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobMetadata.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/JobMetadata.Serialization.cs @@ -58,5 +58,13 @@ internal static JobMetadata DeserializeJobMetadata(JsonElement element) } return new JobMetadata(createdDateTime, expirationDateTime, jobId, lastUpdateDateTime, status); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JobMetadata FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJobMetadata(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhraseResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhraseResult.Serialization.cs index 42312fb0abf5c..dfa45164e418c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhraseResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhraseResult.Serialization.cs @@ -61,5 +61,13 @@ internal static KeyPhraseResult DeserializeKeyPhraseResult(JsonElement element) } return new KeyPhraseResult(documents, errors, statistics, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyPhraseResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhraseResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhraseTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhraseTaskResult.Serialization.cs index 18f7556017d16..e1f89d6776f83 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhraseTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhraseTaskResult.Serialization.cs @@ -32,5 +32,13 @@ internal static KeyPhraseTaskResult DeserializeKeyPhraseTaskResult(JsonElement e } return new KeyPhraseTaskResult(results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KeyPhraseTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhraseTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhrasesTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhrasesTask.Serialization.cs index 035c34b4f17a6..f3dc4ab0e2f5a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhrasesTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhrasesTask.Serialization.cs @@ -28,5 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhrasesTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhrasesTaskParameters.Serialization.cs index a43cf355f3a40..e6bc1e47e2e3f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhrasesTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/KeyPhrasesTaskParameters.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageBatchInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageBatchInput.Serialization.cs index 90bc2cf07f79e..d40afb440be95 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageBatchInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageBatchInput.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageInput.Serialization.cs index 80ad97df71e1f..e87deab80211a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageInput.Serialization.cs @@ -40,5 +40,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageResult.Serialization.cs index 3c4974de0b9a5..d5e1ffd213ebf 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LanguageResult.Serialization.cs @@ -61,5 +61,13 @@ internal static LanguageResult DeserializeLanguageResult(JsonElement element) } return new LanguageResult(documents, errors, statistics, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LanguageResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLanguageResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LinkedEntity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LinkedEntity.Serialization.cs index db5b98525ff93..4ff342f11621e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LinkedEntity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/LinkedEntity.Serialization.cs @@ -77,5 +77,13 @@ internal static LinkedEntity DeserializeLinkedEntity(JsonElement element) dataSource, bingId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkedEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedEntity(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Match.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Match.Serialization.cs index e2c030f65f3a4..ad7019ba1e77c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Match.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Match.Serialization.cs @@ -46,5 +46,13 @@ internal static Match DeserializeMatch(JsonElement element) } return new Match(confidenceScore, text, offset, length); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Match FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMatch(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs index 9926fa515f746..f387c7f85157e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/MultiLanguageBatchInput.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/MultiLanguageInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/MultiLanguageInput.Serialization.cs index ce63a33ec1378..3722e9e811f83 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/MultiLanguageInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/MultiLanguageInput.Serialization.cs @@ -40,5 +40,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Pagination.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Pagination.Serialization.cs index a2ede5becc881..87ac9fffd2a45 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Pagination.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/Pagination.Serialization.cs @@ -28,5 +28,13 @@ internal static Pagination DeserializePagination(JsonElement element) } return new Pagination(nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Pagination FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePagination(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiDocumentEntities.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiDocumentEntities.Serialization.cs index bcfe9b32f091f..058e1a0ee8123 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiDocumentEntities.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiDocumentEntities.Serialization.cs @@ -67,5 +67,13 @@ internal static PiiDocumentEntities DeserializePiiDocumentEntities(JsonElement e } return new PiiDocumentEntities(id, redactedText, entities, warnings, statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PiiDocumentEntities FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiDocumentEntities(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiResult.Serialization.cs index 9f3e26d09a66d..4351eb2b6e384 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiResult.Serialization.cs @@ -61,5 +61,13 @@ internal static PiiResult DeserializePiiResult(JsonElement element) } return new PiiResult(documents, errors, statistics, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PiiResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTask.Serialization.cs index d93595389e7c9..83732a610b11c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTask.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskParameters.Serialization.cs index 8852be1bd3112..a45b7f0ba3c41 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskParameters.Serialization.cs @@ -47,5 +47,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskResult.Serialization.cs index 0314c01397b27..81825811da25a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/PiiTaskResult.Serialization.cs @@ -32,5 +32,13 @@ internal static PiiTaskResult DeserializePiiTaskResult(JsonElement element) } return new PiiTaskResult(results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PiiTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/RequestStatistics.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/RequestStatistics.Serialization.cs index 70ee6bc765f88..7dc25c27976e8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/RequestStatistics.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/RequestStatistics.Serialization.cs @@ -46,5 +46,13 @@ internal static RequestStatistics DeserializeRequestStatistics(JsonElement eleme } return new RequestStatistics(documentsCount, validDocumentsCount, erroneousDocumentsCount, transactionsCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RequestStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRequestStatistics(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceAssessment.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceAssessment.Serialization.cs index 4a09212286fa7..bda630a8012ae 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceAssessment.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceAssessment.Serialization.cs @@ -65,5 +65,13 @@ internal static SentenceAssessment DeserializeSentenceAssessment(JsonElement ele text, isNegated); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentenceAssessment FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentenceAssessment(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.Serialization.cs index 37def709308c7..d8e015d90ac95 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceSentiment.Serialization.cs @@ -91,5 +91,13 @@ internal static SentenceSentiment DeserializeSentenceSentiment(JsonElement eleme targets ?? new ChangeTrackingList(), assessments ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentenceSentiment FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentenceSentiment(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceTarget.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceTarget.Serialization.cs index 83e46967616f4..e04284aab6641 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceTarget.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentenceTarget.Serialization.cs @@ -71,5 +71,13 @@ internal static SentenceTarget DeserializeSentenceTarget(JsonElement element) text, relations); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentenceTarget FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentenceTarget(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentAnalysisTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentAnalysisTask.Serialization.cs index ff4fc8cbe3423..d7fbe270debca 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentAnalysisTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentAnalysisTask.Serialization.cs @@ -28,5 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentAnalysisTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentAnalysisTaskParameters.Serialization.cs index 71d1c02533289..dbba7c08867e4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentAnalysisTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentAnalysisTaskParameters.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentConfidenceScorePerLabel.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentConfidenceScorePerLabel.Serialization.cs index 51b1af6181ca0..83f29925ed4f9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentConfidenceScorePerLabel.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentConfidenceScorePerLabel.Serialization.cs @@ -40,5 +40,13 @@ internal static SentimentConfidenceScorePerLabel DeserializeSentimentConfidenceS } return new SentimentConfidenceScorePerLabel(positive, neutral, negative); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentimentConfidenceScorePerLabel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentConfidenceScorePerLabel(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentResponse.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentResponse.Serialization.cs index c06bb430db69c..a95b3d4dbc95c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentResponse.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentResponse.Serialization.cs @@ -61,5 +61,13 @@ internal static SentimentResponse DeserializeSentimentResponse(JsonElement eleme } return new SentimentResponse(documents, errors, statistics, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentimentResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentResponse(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentTaskResult.Serialization.cs index fe923f70be9e6..a36b7c47382b0 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/SentimentTaskResult.Serialization.cs @@ -32,5 +32,13 @@ internal static SentimentTaskResult DeserializeSentimentTaskResult(JsonElement e } return new SentimentTaskResult(results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentimentTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs index a0d3d9718fad2..01a6e9d17bd84 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs @@ -34,5 +34,13 @@ internal static TargetConfidenceScoreLabel DeserializeTargetConfidenceScoreLabel } return new TargetConfidenceScoreLabel(positive, negative); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TargetConfidenceScoreLabel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTargetConfidenceScoreLabel(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetRelation.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetRelation.Serialization.cs index 0221d3911f7a9..e896dc71352cb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetRelation.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TargetRelation.Serialization.cs @@ -35,5 +35,13 @@ internal static TargetRelation DeserializeTargetRelation(JsonElement element) } return new TargetRelation(relationType, @ref); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TargetRelation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTargetRelation(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TaskState.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TaskState.Serialization.cs index 4a5d7f1ac9fea..e5e0e90c93b46 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TaskState.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TaskState.Serialization.cs @@ -42,5 +42,13 @@ internal static TaskState DeserializeTaskState(JsonElement element) } return new TaskState(lastUpdateDateTime, taskName, status); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TaskState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTaskState(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksState.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksState.Serialization.cs index 3859606855c26..43897b28a8754 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksState.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksState.Serialization.cs @@ -29,5 +29,13 @@ internal static TasksState DeserializeTasksState(JsonElement element) } return new TasksState(tasks); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TasksState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTasksState(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.Serialization.cs index 9845dcbd9b343..0ee85aa3e4a10 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasks.Serialization.cs @@ -131,5 +131,13 @@ internal static TasksStateTasks DeserializeTasksStateTasks(JsonElement element) entityLinkingTasks ?? new ChangeTrackingList(), sentimentAnalysisTasks ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TasksStateTasks FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTasksStateTasks(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityLinkingTasksItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityLinkingTasksItem.Serialization.cs index bb0ffdd7eff1d..e70fadd1fb522 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityLinkingTasksItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityLinkingTasksItem.Serialization.cs @@ -51,5 +51,13 @@ internal static TasksStateTasksEntityLinkingTasksItem DeserializeTasksStateTasks } return new TasksStateTasksEntityLinkingTasksItem(lastUpdateDateTime, taskName, status, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TasksStateTasksEntityLinkingTasksItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTasksStateTasksEntityLinkingTasksItem(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityRecognitionPiiTasksItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityRecognitionPiiTasksItem.Serialization.cs index cbcb8335a46c1..ef7fcb9dc9f71 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityRecognitionPiiTasksItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityRecognitionPiiTasksItem.Serialization.cs @@ -51,5 +51,13 @@ internal static TasksStateTasksEntityRecognitionPiiTasksItem DeserializeTasksSta } return new TasksStateTasksEntityRecognitionPiiTasksItem(lastUpdateDateTime, taskName, status, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TasksStateTasksEntityRecognitionPiiTasksItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTasksStateTasksEntityRecognitionPiiTasksItem(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityRecognitionTasksItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityRecognitionTasksItem.Serialization.cs index dad1748b26201..61a3720b4169e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityRecognitionTasksItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksEntityRecognitionTasksItem.Serialization.cs @@ -51,5 +51,13 @@ internal static TasksStateTasksEntityRecognitionTasksItem DeserializeTasksStateT } return new TasksStateTasksEntityRecognitionTasksItem(lastUpdateDateTime, taskName, status, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TasksStateTasksEntityRecognitionTasksItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTasksStateTasksEntityRecognitionTasksItem(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksKeyPhraseExtractionTasksItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksKeyPhraseExtractionTasksItem.Serialization.cs index 492970164ba98..19e2ef711d4bf 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksKeyPhraseExtractionTasksItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksKeyPhraseExtractionTasksItem.Serialization.cs @@ -51,5 +51,13 @@ internal static TasksStateTasksKeyPhraseExtractionTasksItem DeserializeTasksStat } return new TasksStateTasksKeyPhraseExtractionTasksItem(lastUpdateDateTime, taskName, status, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TasksStateTasksKeyPhraseExtractionTasksItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTasksStateTasksKeyPhraseExtractionTasksItem(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.Serialization.cs index c10dbefcca102..b8e2b83b62176 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TasksStateTasksSentimentAnalysisTasksItem.Serialization.cs @@ -51,5 +51,13 @@ internal static TasksStateTasksSentimentAnalysisTasksItem DeserializeTasksStateT } return new TasksStateTasksSentimentAnalysisTasksItem(lastUpdateDateTime, taskName, status, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TasksStateTasksSentimentAnalysisTasksItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTasksStateTasksSentimentAnalysisTasksItem(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.Serialization.cs index 2af423849da1d..10d17ea27206c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsError.Serialization.cs @@ -67,5 +67,13 @@ internal static TextAnalyticsError DeserializeTextAnalyticsError(JsonElement ele } return new TextAnalyticsError(code, message, target, innererror, details ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TextAnalyticsError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextAnalyticsError(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsWarning.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsWarning.Serialization.cs index e6917c8b61563..bac2434e36949 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsWarning.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared/src/Generated/Models/TextAnalyticsWarning.Serialization.cs @@ -41,5 +41,13 @@ internal static TextAnalyticsWarning DeserializeTextAnalyticsWarning(JsonElement } return new TextAnalyticsWarning(code, message, targetRef); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TextAnalyticsWarning FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextAnalyticsWarning(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationLROResult.Serialization.cs index 9fe1e01ece5d7..b60275e4c59be 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static AbstractiveSummarizationLROResult DeserializeAbstractiveSummariz } return new AbstractiveSummarizationLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AbstractiveSummarizationLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAbstractiveSummarizationLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationLROTask.Serialization.cs index dd3a73bfcf1c9..2f3ebcff8a28e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationLROTask.Serialization.cs @@ -56,5 +56,21 @@ internal static AbstractiveSummarizationLROTask DeserializeAbstractiveSummarizat } return new AbstractiveSummarizationLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AbstractiveSummarizationLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAbstractiveSummarizationLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationResult.Serialization.cs index 913d1c7c4d88b..ca358fca59fc2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationResult.Serialization.cs @@ -89,5 +89,21 @@ internal static AbstractiveSummarizationResult DeserializeAbstractiveSummarizati } return new AbstractiveSummarizationResult(documents, errors, statistics, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AbstractiveSummarizationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAbstractiveSummarizationResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationResultBase.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationResultBase.Serialization.cs index 0255958083878..3bb0f9edb15a0 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationResultBase.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationResultBase.Serialization.cs @@ -48,5 +48,21 @@ internal static AbstractiveSummarizationResultBase DeserializeAbstractiveSummari } return new AbstractiveSummarizationResultBase(documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AbstractiveSummarizationResultBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAbstractiveSummarizationResultBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationTaskParameters.Serialization.cs index f22fb85eed527..45bc31a0009ee 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationTaskParameters.Serialization.cs @@ -85,5 +85,21 @@ internal static AbstractiveSummarizationTaskParameters DeserializeAbstractiveSum } return new AbstractiveSummarizationTaskParameters(sentenceCount, stringIndexType, modelVersion, loggingOptOut); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AbstractiveSummarizationTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAbstractiveSummarizationTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationTaskParametersBase.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationTaskParametersBase.Serialization.cs index 07eaa3bfb57d9..c922e6e52d0a5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationTaskParametersBase.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummarizationTaskParametersBase.Serialization.cs @@ -59,5 +59,21 @@ internal static AbstractiveSummarizationTaskParametersBase DeserializeAbstractiv } return new AbstractiveSummarizationTaskParametersBase(sentenceCount, stringIndexType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AbstractiveSummarizationTaskParametersBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAbstractiveSummarizationTaskParametersBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryDocumentResult.Serialization.cs index ca9c6d6f4ec76..5b862c2177258 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryDocumentResult.Serialization.cs @@ -89,5 +89,21 @@ internal static AbstractiveSummaryDocumentResult DeserializeAbstractiveSummaryDo } return new AbstractiveSummaryDocumentResult(id, warnings, statistics, summaries); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AbstractiveSummaryDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAbstractiveSummaryDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryInternal.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryInternal.Serialization.cs index d5183ce492ede..1948eb49b4b1d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryInternal.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AbstractiveSummaryInternal.Serialization.cs @@ -63,5 +63,21 @@ internal static AbstractiveSummaryInternal DeserializeAbstractiveSummaryInternal } return new AbstractiveSummaryInternal(text, contexts ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AbstractiveSummaryInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAbstractiveSummaryInternal(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs index 47bcc826a8744..1095e91649ae1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTasks.Serialization.cs @@ -62,5 +62,13 @@ internal static AnalyzeTasks DeserializeAnalyzeTasks(JsonElement element) } return new AnalyzeTasks(completed, failed, inProgress, total, items ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzeTasks FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeTasks(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextEntityLinkingInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextEntityLinkingInput.Serialization.cs index 2912b1b34df11..f4088a7f43a7f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextEntityLinkingInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextEntityLinkingInput.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextEntityRecognitionInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextEntityRecognitionInput.Serialization.cs index 5918b911b9089..eb957650a6de8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextEntityRecognitionInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextEntityRecognitionInput.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobState.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobState.Serialization.cs index 0640148acc77d..692b3289b34a0 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobState.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobState.Serialization.cs @@ -111,5 +111,13 @@ internal static AnalyzeTextJobState DeserializeAnalyzeTextJobState(JsonElement e tasks, statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AnalyzeTextJobState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeTextJobState(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobStatistics.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobStatistics.Serialization.cs index 38974d984411a..8e47f382446ee 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobStatistics.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobStatistics.Serialization.cs @@ -32,5 +32,13 @@ internal static AnalyzeTextJobStatistics DeserializeAnalyzeTextJobStatistics(Jso } return new AnalyzeTextJobStatistics(statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzeTextJobStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeTextJobStatistics(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobsInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobsInput.Serialization.cs index b58e73937dc74..50cdd5732a9f0 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobsInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextJobsInput.Serialization.cs @@ -31,5 +31,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextKeyPhraseExtractionInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextKeyPhraseExtractionInput.Serialization.cs index 886a074773613..362a4f2e33844 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextKeyPhraseExtractionInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextKeyPhraseExtractionInput.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLROResult.Serialization.cs index fbfab4426b17d..1181335605bcc 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLROResult.Serialization.cs @@ -54,5 +54,21 @@ internal static AnalyzeTextLROResult DeserializeAnalyzeTextLROResult(JsonElement } return UnknownAnalyzeTextLROResult.DeserializeUnknownAnalyzeTextLROResult(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AnalyzeTextLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeTextLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLROTask.Serialization.cs index c7101848bd426..4921fbcca4b66 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLROTask.Serialization.cs @@ -50,5 +50,21 @@ internal static AnalyzeTextLROTask DeserializeAnalyzeTextLROTask(JsonElement ele } return UnknownAnalyzeTextLROTask.DeserializeUnknownAnalyzeTextLROTask(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AnalyzeTextLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeTextLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLanguageDetectionInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLanguageDetectionInput.Serialization.cs index e29dde73c4723..b496abc6ced04 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLanguageDetectionInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextLanguageDetectionInput.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextPiiEntitiesRecognitionInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextPiiEntitiesRecognitionInput.Serialization.cs index 1f1eaa75ff6c4..6ff20d1b4fdca 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextPiiEntitiesRecognitionInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextPiiEntitiesRecognitionInput.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextSentimentAnalysisInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextSentimentAnalysisInput.Serialization.cs index 83da6f4313bb6..253c7dbe42077 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextSentimentAnalysisInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextSentimentAnalysisInput.Serialization.cs @@ -29,5 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextTask.Serialization.cs index ad2142234d20d..4541de5c9a3cf 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextTask.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStringValue(Kind.ToString()); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextTaskResult.Serialization.cs index bff06a4f1661f..e74312703058a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/AnalyzeTextTaskResult.Serialization.cs @@ -31,5 +31,13 @@ internal static AnalyzeTextTaskResult DeserializeAnalyzeTextTaskResult(JsonEleme } return UnknownAnalyzeTextTaskResult.DeserializeUnknownAnalyzeTextTaskResult(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AnalyzeTextTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAnalyzeTextTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ClassificationDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ClassificationDocumentResult.Serialization.cs index 2735353398887..30b495ac587e9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ClassificationDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ClassificationDocumentResult.Serialization.cs @@ -89,5 +89,21 @@ internal static ClassificationDocumentResult DeserializeClassificationDocumentRe } return new ClassificationDocumentResult(id, warnings, statistics, @class); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ClassificationDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeClassificationDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ClassificationResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ClassificationResult.Serialization.cs index c9fc84ff91b41..09d33c595c4a7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ClassificationResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ClassificationResult.Serialization.cs @@ -45,5 +45,21 @@ internal static ClassificationResult DeserializeClassificationResult(JsonElement } return new ClassificationResult(category, confidenceScore); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ClassificationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeClassificationResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesLROTask.Serialization.cs index fd53577116f31..30dcf2ce0303c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static CustomEntitiesLROTask DeserializeCustomEntitiesLROTask(JsonEleme } return new CustomEntitiesLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomEntitiesLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomEntitiesLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesResult.Serialization.cs index ca177740a0cf3..4546539451ba3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesResult.Serialization.cs @@ -97,5 +97,21 @@ internal static CustomEntitiesResult DeserializeCustomEntitiesResult(JsonElement } return new CustomEntitiesResult(errors, statistics, projectName, deploymentName, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomEntitiesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomEntitiesResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesResultDocumentsItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesResultDocumentsItem.Serialization.cs index 290ef2b9326be..05c45ce34af41 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesResultDocumentsItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesResultDocumentsItem.Serialization.cs @@ -89,5 +89,21 @@ internal static CustomEntitiesResultDocumentsItem DeserializeCustomEntitiesResul } return new CustomEntitiesResultDocumentsItem(id, warnings, statistics, entities); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomEntitiesResultDocumentsItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomEntitiesResultDocumentsItem(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesTaskParameters.Serialization.cs index 080057763da21..30ea386678dbf 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntitiesTaskParameters.Serialization.cs @@ -75,5 +75,21 @@ internal static CustomEntitiesTaskParameters DeserializeCustomEntitiesTaskParame } return new CustomEntitiesTaskParameters(loggingOptOut, projectName, deploymentName, stringIndexType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomEntitiesTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomEntitiesTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntityRecognitionLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntityRecognitionLROResult.Serialization.cs index 9d4eba42ed4e7..09d4aee5b2f3d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntityRecognitionLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomEntityRecognitionLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static CustomEntityRecognitionLROResult DeserializeCustomEntityRecognit } return new CustomEntityRecognitionLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomEntityRecognitionLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomEntityRecognitionLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomLabelClassificationResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomLabelClassificationResult.Serialization.cs index eedd9f2d92ac9..ab4ad737576cc 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomLabelClassificationResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomLabelClassificationResult.Serialization.cs @@ -97,5 +97,21 @@ internal static CustomLabelClassificationResult DeserializeCustomLabelClassifica } return new CustomLabelClassificationResult(errors, statistics, projectName, deploymentName, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomLabelClassificationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomLabelClassificationResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomLabelClassificationResultDocumentsItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomLabelClassificationResultDocumentsItem.Serialization.cs index bf2cf4d717e9f..f7f644f7276fb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomLabelClassificationResultDocumentsItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomLabelClassificationResultDocumentsItem.Serialization.cs @@ -89,5 +89,21 @@ internal static CustomLabelClassificationResultDocumentsItem DeserializeCustomLa } return new CustomLabelClassificationResultDocumentsItem(id, warnings, statistics, @class); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomLabelClassificationResultDocumentsItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomLabelClassificationResultDocumentsItem(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationLROResult.Serialization.cs index ab5fe17ff5b64..ff086e292eba4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static CustomMultiLabelClassificationLROResult DeserializeCustomMultiLa } return new CustomMultiLabelClassificationLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomMultiLabelClassificationLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomMultiLabelClassificationLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationLROTask.Serialization.cs index 0fcd77de5b310..31b4254e2bf9c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static CustomMultiLabelClassificationLROTask DeserializeCustomMultiLabe } return new CustomMultiLabelClassificationLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomMultiLabelClassificationLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomMultiLabelClassificationLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationTaskParameters.Serialization.cs index db52cdd238011..34475e8b16fb7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomMultiLabelClassificationTaskParameters.Serialization.cs @@ -60,5 +60,21 @@ internal static CustomMultiLabelClassificationTaskParameters DeserializeCustomMu } return new CustomMultiLabelClassificationTaskParameters(loggingOptOut, projectName, deploymentName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomMultiLabelClassificationTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomMultiLabelClassificationTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomResult.Serialization.cs index 663039bcd386c..13964f1fd0d1b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomResult.Serialization.cs @@ -79,5 +79,21 @@ internal static CustomResult DeserializeCustomResult(JsonElement element) } return new CustomResult(errors, statistics, projectName, deploymentName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CustomResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationLROResult.Serialization.cs index 8d834ed09936d..25fe94ad21920 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static CustomSingleLabelClassificationLROResult DeserializeCustomSingle } return new CustomSingleLabelClassificationLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomSingleLabelClassificationLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomSingleLabelClassificationLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationLROTask.Serialization.cs index 1c261ab7b357c..2febedf78ed73 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static CustomSingleLabelClassificationLROTask DeserializeCustomSingleLa } return new CustomSingleLabelClassificationLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomSingleLabelClassificationLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomSingleLabelClassificationLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationTaskParameters.Serialization.cs index 346a6902c4bc0..8e4b39e66f2b8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomSingleLabelClassificationTaskParameters.Serialization.cs @@ -60,5 +60,21 @@ internal static CustomSingleLabelClassificationTaskParameters DeserializeCustomS } return new CustomSingleLabelClassificationTaskParameters(loggingOptOut, projectName, deploymentName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomSingleLabelClassificationTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomSingleLabelClassificationTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomTaskParameters.Serialization.cs index 82887761d724c..fdd93cdb8fde5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/CustomTaskParameters.Serialization.cs @@ -60,5 +60,21 @@ internal static CustomTaskParameters DeserializeCustomTaskParameters(JsonElement } return new CustomTaskParameters(loggingOptOut, projectName, deploymentName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CustomTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCustomTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs index d8c919079d472..c5f1309cde957 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DetectedLanguageInternal.Serialization.cs @@ -73,5 +73,21 @@ internal static DetectedLanguageInternal DeserializeDetectedLanguageInternal(Jso } return new DetectedLanguageInternal(name, iso6391Name, confidenceScore); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DetectedLanguageInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDetectedLanguageInternal(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs index 98211e7ded629..2a4027eb49cf9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentError.Serialization.cs @@ -45,5 +45,21 @@ internal static DocumentError DeserializeDocumentError(JsonElement element) } return new DocumentError(id, error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentError(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentResult.Serialization.cs index c1bf75e8a4ca2..acb0c7d66002e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentResult.Serialization.cs @@ -71,5 +71,21 @@ internal static DocumentResult DeserializeDocumentResult(JsonElement element) } return new DocumentResult(id, warnings, statistics); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentWarning.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentWarning.Serialization.cs index fc9fc5803b51f..81d0d8883a286 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentWarning.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentWarning.Serialization.cs @@ -56,5 +56,21 @@ internal static DocumentWarning DeserializeDocumentWarning(JsonElement element) } return new DocumentWarning(code, message, targetRef); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentWarning FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentWarning(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesDocumentResult.Serialization.cs index c0fd6f14bf19e..f7069f50c9041 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesDocumentResult.Serialization.cs @@ -89,5 +89,21 @@ internal static EntitiesDocumentResult DeserializeEntitiesDocumentResult(JsonEle } return new EntitiesDocumentResult(id, warnings, statistics, entities); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntitiesDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntitiesDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesLROTask.Serialization.cs index 97c4046b8cc7f..370f89a422e7c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static EntitiesLROTask DeserializeEntitiesLROTask(JsonElement element) } return new EntitiesLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntitiesLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntitiesLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs index 9c1f138aff9b3..5759533ceb34a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.Serialization.cs @@ -89,5 +89,21 @@ internal static EntitiesResult DeserializeEntitiesResult(JsonElement element) } return new EntitiesResult(errors, statistics, modelVersion, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntitiesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntitiesResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResultDocumentsItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResultDocumentsItem.Serialization.cs index 92e0485c574c1..192cc66ab4bc7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResultDocumentsItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResultDocumentsItem.Serialization.cs @@ -89,5 +89,21 @@ internal static EntitiesResultDocumentsItem DeserializeEntitiesResultDocumentsIt } return new EntitiesResultDocumentsItem(id, warnings, statistics, entities); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntitiesResultDocumentsItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntitiesResultDocumentsItem(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskParameters.Serialization.cs index 43a8f2908fd99..d700b9ff24c39 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskParameters.Serialization.cs @@ -70,5 +70,21 @@ internal static EntitiesTaskParameters DeserializeEntitiesTaskParameters(JsonEle } return new EntitiesTaskParameters(loggingOptOut, modelVersion, stringIndexType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntitiesTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntitiesTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskResult.Serialization.cs index f3a821397386c..9fbc22e9b64f4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesTaskResult.Serialization.cs @@ -34,5 +34,13 @@ internal static EntitiesTaskResult DeserializeEntitiesTaskResult(JsonElement ele } return new EntitiesTaskResult(kind, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntitiesTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntitiesTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs index e013f677ccfec..b078502cf3033 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Entity.Serialization.cs @@ -86,5 +86,21 @@ internal static Entity DeserializeEntity(JsonElement element) length, confidenceScore); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Entity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.Serialization.cs index fb789b5b101da..eaf118e2939a9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.Serialization.cs @@ -45,5 +45,21 @@ internal static EntityDataSource DeserializeEntityDataSource(JsonElement element } return new EntityDataSource(dataSource, id); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EntityDataSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityDataSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingLROResult.Serialization.cs index 8aad9b48ecd7c..49a1c931c8399 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static EntityLinkingLROResult DeserializeEntityLinkingLROResult(JsonEle } return new EntityLinkingLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityLinkingLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityLinkingLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingLROTask.Serialization.cs index c65e9b5fb262e..9926916ed32d5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static EntityLinkingLROTask DeserializeEntityLinkingLROTask(JsonElement } return new EntityLinkingLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityLinkingLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityLinkingLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs index a2ed0775fe671..de8aced05488f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResult.Serialization.cs @@ -89,5 +89,21 @@ internal static EntityLinkingResult DeserializeEntityLinkingResult(JsonElement e } return new EntityLinkingResult(errors, statistics, modelVersion, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityLinkingResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityLinkingResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResultDocumentsItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResultDocumentsItem.Serialization.cs index 601aeb5113243..668106d92b637 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResultDocumentsItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingResultDocumentsItem.Serialization.cs @@ -89,5 +89,21 @@ internal static EntityLinkingResultDocumentsItem DeserializeEntityLinkingResultD } return new EntityLinkingResultDocumentsItem(id, warnings, statistics, entities); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityLinkingResultDocumentsItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityLinkingResultDocumentsItem(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTaskParameters.Serialization.cs index 6cfdecf41bb20..473bbde1d083e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTaskParameters.Serialization.cs @@ -70,5 +70,21 @@ internal static EntityLinkingTaskParameters DeserializeEntityLinkingTaskParamete } return new EntityLinkingTaskParameters(loggingOptOut, modelVersion, stringIndexType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityLinkingTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityLinkingTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTaskResult.Serialization.cs index 7e838b77ec64d..e35866a77908f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityLinkingTaskResult.Serialization.cs @@ -34,5 +34,13 @@ internal static EntityLinkingTaskResult DeserializeEntityLinkingTaskResult(JsonE } return new EntityLinkingTaskResult(kind, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityLinkingTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityLinkingTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionLROResult.Serialization.cs index 69dfe06f6965f..d23287c59781b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityRecognitionLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static EntityRecognitionLROResult DeserializeEntityRecognitionLROResult } return new EntityRecognitionLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new EntityRecognitionLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEntityRecognitionLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Error.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Error.Serialization.cs index 66f80a615f96b..580f0fae6f489 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Error.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/Error.Serialization.cs @@ -112,5 +112,21 @@ internal static Error DeserializeError(JsonElement element) innererror, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Error FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeError(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ErrorResponse.Serialization.cs index b204b25f7ae73..b442d737a56b9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ErrorResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) } return new ErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeErrorResponse(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractedSummaryDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractedSummaryDocumentResult.Serialization.cs index d36463676ac26..6e4d70737418b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractedSummaryDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractedSummaryDocumentResult.Serialization.cs @@ -89,5 +89,21 @@ internal static ExtractedSummaryDocumentResult DeserializeExtractedSummaryDocume } return new ExtractedSummaryDocumentResult(id, warnings, statistics, sentences); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExtractedSummaryDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExtractedSummaryDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractedSummarySentence.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractedSummarySentence.Serialization.cs index 1550a523d8ed3..cd0c4829c383f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractedSummarySentence.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractedSummarySentence.Serialization.cs @@ -61,5 +61,21 @@ internal static ExtractedSummarySentence DeserializeExtractedSummarySentence(Jso } return new ExtractedSummarySentence(text, rankScore, offset, length); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ExtractedSummarySentence FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExtractedSummarySentence(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationLROResult.Serialization.cs index 6a1924e42d58c..e2801d62d45c6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static ExtractiveSummarizationLROResult DeserializeExtractiveSummarizat } return new ExtractiveSummarizationLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExtractiveSummarizationLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExtractiveSummarizationLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationLROTask.Serialization.cs index d388d536d2e2b..07d985c99be0e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static ExtractiveSummarizationLROTask DeserializeExtractiveSummarizatio } return new ExtractiveSummarizationLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExtractiveSummarizationLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExtractiveSummarizationLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationResult.Serialization.cs index fc369e339447d..b92928fd9e01b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationResult.Serialization.cs @@ -89,5 +89,21 @@ internal static ExtractiveSummarizationResult DeserializeExtractiveSummarization } return new ExtractiveSummarizationResult(errors, statistics, modelVersion, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExtractiveSummarizationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExtractiveSummarizationResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationTaskParameters.Serialization.cs index 51710a23bbaf9..bcc1476544865 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/ExtractiveSummarizationTaskParameters.Serialization.cs @@ -100,5 +100,21 @@ internal static ExtractiveSummarizationTaskParameters DeserializeExtractiveSumma } return new ExtractiveSummarizationTaskParameters(loggingOptOut, modelVersion, sentenceCount, sortBy, stringIndexType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExtractiveSummarizationTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExtractiveSummarizationTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntitiesDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntitiesDocumentResult.Serialization.cs index 43cc6455bb3ea..66dab06412bb7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntitiesDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntitiesDocumentResult.Serialization.cs @@ -107,5 +107,21 @@ internal static HealthcareEntitiesDocumentResult DeserializeHealthcareEntitiesDo } return new HealthcareEntitiesDocumentResult(id, warnings, statistics, entities, relations); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HealthcareEntitiesDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareEntitiesDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityAssertion.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityAssertion.Serialization.cs index 1aff8029be81d..eca497a225750 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityAssertion.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityAssertion.Serialization.cs @@ -74,5 +74,21 @@ internal static HealthcareEntityAssertion DeserializeHealthcareEntityAssertion(J } return new HealthcareEntityAssertion(conditionality, certainty, association); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareEntityAssertion FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareEntityAssertion(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.Serialization.cs index 278b587a51e32..b4fd41dd39b4e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.Serialization.cs @@ -141,5 +141,21 @@ internal static HealthcareEntityInternal DeserializeHealthcareEntityInternal(Jso name, links ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareEntityInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareEntityInternal(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareLROResult.Serialization.cs index 5ffc19ea26aa8..239fc20df41da 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static HealthcareLROResult DeserializeHealthcareLROResult(JsonElement e } return new HealthcareLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HealthcareLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareLROTask.Serialization.cs index fcf758c21fdb6..2e2642d633ee5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static HealthcareLROTask DeserializeHealthcareLROTask(JsonElement eleme } return new HealthcareLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HealthcareLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareRelationEntity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareRelationEntity.Serialization.cs index 7f4becd34e2f2..d9369d1b1c51a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareRelationEntity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareRelationEntity.Serialization.cs @@ -45,5 +45,21 @@ internal static HealthcareRelationEntity DeserializeHealthcareRelationEntity(Jso } return new HealthcareRelationEntity(@ref, role); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareRelationEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareRelationEntity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareRelationInternal.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareRelationInternal.Serialization.cs index cd67299a6804f..931ca3788f7f5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareRelationInternal.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareRelationInternal.Serialization.cs @@ -71,5 +71,21 @@ internal static HealthcareRelationInternal DeserializeHealthcareRelationInternal } return new HealthcareRelationInternal(relationType, confidenceScore, entities); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HealthcareRelationInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareRelationInternal(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareResult.Serialization.cs index 24d3d74c3d20d..00364748a4d8f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareResult.Serialization.cs @@ -89,5 +89,21 @@ internal static HealthcareResult DeserializeHealthcareResult(JsonElement element } return new HealthcareResult(errors, statistics, modelVersion, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HealthcareResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareResultDocumentsItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareResultDocumentsItem.Serialization.cs index cd59cd82f634e..abe52769bb475 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareResultDocumentsItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareResultDocumentsItem.Serialization.cs @@ -107,5 +107,21 @@ internal static HealthcareResultDocumentsItem DeserializeHealthcareResultDocumen } return new HealthcareResultDocumentsItem(id, warnings, statistics, entities, relations); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HealthcareResultDocumentsItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareResultDocumentsItem(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareTaskParameters.Serialization.cs index 74c6eade85241..9919c6a291bdf 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareTaskParameters.Serialization.cs @@ -70,5 +70,21 @@ internal static HealthcareTaskParameters DeserializeHealthcareTaskParameters(Jso } return new HealthcareTaskParameters(loggingOptOut, modelVersion, stringIndexType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HealthcareTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHealthcareTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/InnerErrorModel.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/InnerErrorModel.Serialization.cs index 0c468c21695db..1fb93b6d90e0b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/InnerErrorModel.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/InnerErrorModel.Serialization.cs @@ -98,5 +98,21 @@ internal static InnerErrorModel DeserializeInnerErrorModel(JsonElement element) } return new InnerErrorModel(code, message, details ?? new ChangeTrackingDictionary(), target, innererror); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InnerErrorModel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInnerErrorModel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobState.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobState.Serialization.cs index 4d4f2297b0e1a..5a946ceda3e86 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobState.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/JobState.Serialization.cs @@ -93,5 +93,13 @@ internal static JobState DeserializeJobState(JsonElement element) errors ?? new ChangeTrackingList(), nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static JobState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeJobState(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionLROResult.Serialization.cs index 52bb3f5cbf6c2..542db14fd302c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseExtractionLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static KeyPhraseExtractionLROResult DeserializeKeyPhraseExtractionLRORe } return new KeyPhraseExtractionLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeyPhraseExtractionLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhraseExtractionLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseLROTask.Serialization.cs index e4d56a89130fc..1f8e135c53360 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static KeyPhraseLROTask DeserializeKeyPhraseLROTask(JsonElement element } return new KeyPhraseLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeyPhraseLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhraseLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs index f04afb0de415a..0a047768f2667 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResult.Serialization.cs @@ -89,5 +89,21 @@ internal static KeyPhraseResult DeserializeKeyPhraseResult(JsonElement element) } return new KeyPhraseResult(errors, statistics, modelVersion, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeyPhraseResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhraseResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResultDocumentsItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResultDocumentsItem.Serialization.cs index 947e09069b217..f8ee6241ee0c8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResultDocumentsItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseResultDocumentsItem.Serialization.cs @@ -89,5 +89,21 @@ internal static KeyPhraseResultDocumentsItem DeserializeKeyPhraseResultDocuments } return new KeyPhraseResultDocumentsItem(id, warnings, statistics, keyPhrases); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeyPhraseResultDocumentsItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhraseResultDocumentsItem(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseTaskParameters.Serialization.cs index 5eef681a0f498..02a3f0252790c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseTaskParameters.Serialization.cs @@ -55,5 +55,21 @@ internal static KeyPhraseTaskParameters DeserializeKeyPhraseTaskParameters(JsonE } return new KeyPhraseTaskParameters(loggingOptOut, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeyPhraseTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhraseTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseTaskResult.Serialization.cs index d43e2144a9ae4..5d857aa7b0f32 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhraseTaskResult.Serialization.cs @@ -34,5 +34,13 @@ internal static KeyPhraseTaskResult DeserializeKeyPhraseTaskResult(JsonElement e } return new KeyPhraseTaskResult(kind, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeyPhraseTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhraseTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesDocumentResult.Serialization.cs index 2eaeecfead829..d84849feaa5a2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/KeyPhrasesDocumentResult.Serialization.cs @@ -89,5 +89,21 @@ internal static KeyPhrasesDocumentResult DeserializeKeyPhrasesDocumentResult(Jso } return new KeyPhrasesDocumentResult(id, warnings, statistics, keyPhrases); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KeyPhrasesDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeKeyPhrasesDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionAnalysisInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionAnalysisInput.Serialization.cs index 1125c88f17436..c5ade99e5e69e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionAnalysisInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionAnalysisInput.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionDocumentResult.Serialization.cs index f5b232087d008..054495663fa38 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionDocumentResult.Serialization.cs @@ -79,5 +79,21 @@ internal static LanguageDetectionDocumentResult DeserializeLanguageDetectionDocu } return new LanguageDetectionDocumentResult(id, warnings, statistics, detectedLanguage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LanguageDetectionDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLanguageDetectionDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionResult.Serialization.cs index 96b9d2eb92214..675fb94c42435 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionResult.Serialization.cs @@ -89,5 +89,21 @@ internal static LanguageDetectionResult DeserializeLanguageDetectionResult(JsonE } return new LanguageDetectionResult(errors, statistics, modelVersion, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LanguageDetectionResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLanguageDetectionResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionTaskParameters.Serialization.cs index 6f14cdf154333..1cba64eb6db74 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionTaskParameters.Serialization.cs @@ -55,5 +55,21 @@ internal static LanguageDetectionTaskParameters DeserializeLanguageDetectionTask } return new LanguageDetectionTaskParameters(loggingOptOut, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LanguageDetectionTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLanguageDetectionTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionTaskResult.Serialization.cs index 97dab64a4a9ab..de1e4cd3710fa 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageDetectionTaskResult.Serialization.cs @@ -34,5 +34,13 @@ internal static LanguageDetectionTaskResult DeserializeLanguageDetectionTaskResu } return new LanguageDetectionTaskResult(kind, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LanguageDetectionTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLanguageDetectionTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs index f1bde22d943d6..17bb5cde16bb8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LanguageInput.Serialization.cs @@ -40,5 +40,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntitiesDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntitiesDocumentResult.Serialization.cs index 71c2b0ac2b7d0..1508c345158f3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntitiesDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntitiesDocumentResult.Serialization.cs @@ -89,5 +89,21 @@ internal static LinkedEntitiesDocumentResult DeserializeLinkedEntitiesDocumentRe } return new LinkedEntitiesDocumentResult(id, warnings, statistics, entities); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LinkedEntitiesDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedEntitiesDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntity.Serialization.cs index b2cf1fadde65f..812919682854c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntity.Serialization.cs @@ -106,5 +106,21 @@ internal static LinkedEntity DeserializeLinkedEntity(JsonElement element) dataSource, bingId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkedEntity FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedEntity(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntityMatch.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntityMatch.Serialization.cs index 87b65a2103fd4..e68423a326c90 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntityMatch.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/LinkedEntityMatch.Serialization.cs @@ -57,5 +57,21 @@ internal static LinkedEntityMatch DeserializeLinkedEntityMatch(JsonElement eleme } return new LinkedEntityMatch(confidenceScore, text, offset, length); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LinkedEntityMatch FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLinkedEntityMatch(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageAnalysisInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageAnalysisInput.Serialization.cs index 39607ed225fb9..a94d2aaba1b38 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageAnalysisInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageAnalysisInput.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs index 82be29f5b51c6..1461da53edf62 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/MultiLanguageInput.Serialization.cs @@ -40,5 +40,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntitiesDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntitiesDocumentResult.Serialization.cs index 2adb36ee80581..aff682990c1c8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntitiesDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntitiesDocumentResult.Serialization.cs @@ -97,5 +97,21 @@ internal static PiiEntitiesDocumentResult DeserializePiiEntitiesDocumentResult(J } return new PiiEntitiesDocumentResult(id, warnings, statistics, redactedText, entities); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PiiEntitiesDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiEntitiesDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntitiesResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntitiesResult.Serialization.cs index 3ee062588f9e2..4cc49caa4c987 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntitiesResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntitiesResult.Serialization.cs @@ -90,5 +90,21 @@ internal static PiiEntitiesResult DeserializePiiEntitiesResult(JsonElement eleme } return new PiiEntitiesResult(errors, statistics, modelVersion, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PiiEntitiesResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiEntitiesResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntityRecognitionLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntityRecognitionLROResult.Serialization.cs index 55f2e9794c915..cace7ded38660 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntityRecognitionLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiEntityRecognitionLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static PiiEntityRecognitionLROResult DeserializePiiEntityRecognitionLRO } return new PiiEntityRecognitionLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PiiEntityRecognitionLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiEntityRecognitionLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiLROTask.Serialization.cs index aa73f64cb3603..624fcad79a14d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static PiiLROTask DeserializePiiLROTask(JsonElement element) } return new PiiLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PiiLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiResultDocumentsItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiResultDocumentsItem.Serialization.cs index 433f662c55ae8..7dbe29de2a43a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiResultDocumentsItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiResultDocumentsItem.Serialization.cs @@ -97,5 +97,21 @@ internal static PiiResultDocumentsItem DeserializePiiResultDocumentsItem(JsonEle } return new PiiResultDocumentsItem(id, warnings, statistics, redactedText, entities); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PiiResultDocumentsItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiResultDocumentsItem(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskParameters.Serialization.cs index 7b78db6fcfba3..3a0a3fbbb5138 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskParameters.Serialization.cs @@ -111,5 +111,21 @@ internal static PiiTaskParameters DeserializePiiTaskParameters(JsonElement eleme } return new PiiTaskParameters(loggingOptOut, modelVersion, domain, piiCategories ?? new ChangeTrackingList(), stringIndexType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PiiTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskResult.Serialization.cs index 0020fb3c1d3e0..5df42ccdeaf7f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PiiTaskResult.Serialization.cs @@ -34,5 +34,13 @@ internal static PiiTaskResult DeserializePiiTaskResult(JsonElement element) } return new PiiTaskResult(kind, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PiiTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePiiTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PreBuiltResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PreBuiltResult.Serialization.cs index 09361e724a245..3ac7d6d9998a9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PreBuiltResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PreBuiltResult.Serialization.cs @@ -71,5 +71,21 @@ internal static PreBuiltResult DeserializePreBuiltResult(JsonElement element) } return new PreBuiltResult(errors, statistics, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PreBuiltResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePreBuiltResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PreBuiltTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PreBuiltTaskParameters.Serialization.cs index ca8e8ef782490..ab6c00ffd3b1f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PreBuiltTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/PreBuiltTaskParameters.Serialization.cs @@ -55,5 +55,21 @@ internal static PreBuiltTaskParameters DeserializePreBuiltTaskParameters(JsonEle } return new PreBuiltTaskParameters(loggingOptOut, modelVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PreBuiltTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePreBuiltTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceAssessment.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceAssessment.Serialization.cs index 9ff1f068641ca..54ce2ad445869 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceAssessment.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceAssessment.Serialization.cs @@ -83,5 +83,21 @@ internal static SentenceAssessment DeserializeSentenceAssessment(JsonElement ele text, isNegated); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentenceAssessment FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentenceAssessment(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceSentimentInternal.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceSentimentInternal.Serialization.cs index 975a38b0a9893..962276fd8ff72 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceSentimentInternal.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceSentimentInternal.Serialization.cs @@ -123,5 +123,21 @@ internal static SentenceSentimentInternal DeserializeSentenceSentimentInternal(J targets ?? new ChangeTrackingList(), assessments ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentenceSentimentInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentenceSentimentInternal(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceTarget.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceTarget.Serialization.cs index d22c7a149dec6..e1bf287f3ef75 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceTarget.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentenceTarget.Serialization.cs @@ -94,5 +94,21 @@ internal static SentenceTarget DeserializeSentenceTarget(JsonElement element) text, relations); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentenceTarget FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentenceTarget(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisLROTask.Serialization.cs index ed5667cdd101e..80b92420af54f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisLROTask.Serialization.cs @@ -63,5 +63,21 @@ internal static SentimentAnalysisLROTask DeserializeSentimentAnalysisLROTask(Jso } return new SentimentAnalysisLROTask(taskName, kind, parameters); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SentimentAnalysisLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentAnalysisLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTaskParameters.Serialization.cs index 402339c5c4ce4..67d681428f2ea 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentAnalysisTaskParameters.Serialization.cs @@ -85,5 +85,21 @@ internal static SentimentAnalysisTaskParameters DeserializeSentimentAnalysisTask } return new SentimentAnalysisTaskParameters(loggingOptOut, modelVersion, opinionMining, stringIndexType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SentimentAnalysisTaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentAnalysisTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentConfidenceScores.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentConfidenceScores.Serialization.cs index b8adb2a479faf..12a44da012136 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentConfidenceScores.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentConfidenceScores.Serialization.cs @@ -53,5 +53,21 @@ internal static SentimentConfidenceScores DeserializeSentimentConfidenceScores(J } return new SentimentConfidenceScores(positive, neutral, negative); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SentimentConfidenceScores FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentConfidenceScores(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentDocumentResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentDocumentResult.Serialization.cs index a7c91c83cd797..c0735d5808a4d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentDocumentResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentDocumentResult.Serialization.cs @@ -111,5 +111,21 @@ internal static SentimentDocumentResult DeserializeSentimentDocumentResult(JsonE confidenceScores, sentences); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SentimentDocumentResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentDocumentResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentLROResult.Serialization.cs index dfa9aed5a5d78..b096a2e9d5930 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentLROResult.Serialization.cs @@ -73,5 +73,21 @@ internal static SentimentLROResult DeserializeSentimentLROResult(JsonElement ele } return new SentimentLROResult(lastUpdateDateTime, status, kind, taskName, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SentimentLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs index d5ce4471c013d..d95918ba1f718 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponse.Serialization.cs @@ -89,5 +89,21 @@ internal static SentimentResponse DeserializeSentimentResponse(JsonElement eleme } return new SentimentResponse(errors, statistics, modelVersion, documents); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SentimentResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentResponse(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponseDocumentsItem.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponseDocumentsItem.Serialization.cs index 869633f4de116..6bb6bffc625a2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponseDocumentsItem.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentResponseDocumentsItem.Serialization.cs @@ -111,5 +111,21 @@ internal static SentimentResponseDocumentsItem DeserializeSentimentResponseDocum confidenceScores, sentences); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SentimentResponseDocumentsItem FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentResponseDocumentsItem(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentTaskResult.Serialization.cs index c84b534820b33..c7726729b63e7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SentimentTaskResult.Serialization.cs @@ -34,5 +34,13 @@ internal static SentimentTaskResult DeserializeSentimentTaskResult(JsonElement e } return new SentimentTaskResult(kind, results); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SentimentTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSentimentTaskResult(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SummaryContextInternal.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SummaryContextInternal.Serialization.cs index 8b7d190e81d5d..3a0d8071650d1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SummaryContextInternal.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/SummaryContextInternal.Serialization.cs @@ -45,5 +45,21 @@ internal static SummaryContextInternal DeserializeSummaryContextInternal(JsonEle } return new SummaryContextInternal(offset, length); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SummaryContextInternal FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSummaryContextInternal(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs index af19a2cd62d4e..feb780efa3240 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetConfidenceScoreLabel.Serialization.cs @@ -45,5 +45,21 @@ internal static TargetConfidenceScoreLabel DeserializeTargetConfidenceScoreLabel } return new TargetConfidenceScoreLabel(positive, negative); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TargetConfidenceScoreLabel FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTargetConfidenceScoreLabel(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs index f4434425a56a1..0cbaacde7112e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TargetRelation.Serialization.cs @@ -45,5 +45,21 @@ internal static TargetRelation DeserializeTargetRelation(JsonElement element) } return new TargetRelation(relationType, @ref); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TargetRelation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTargetRelation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskIdentifier.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskIdentifier.Serialization.cs index 49f0a851f36c6..8ce4950af2ac8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskIdentifier.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskIdentifier.Serialization.cs @@ -40,5 +40,21 @@ internal static TaskIdentifier DeserializeTaskIdentifier(JsonElement element) } return new TaskIdentifier(taskName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TaskIdentifier FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTaskIdentifier(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskParameters.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskParameters.Serialization.cs index d03a1b1a334d5..9bb9376c066a5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskParameters.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskParameters.Serialization.cs @@ -44,5 +44,21 @@ internal static TaskParameters DeserializeTaskParameters(JsonElement element) } return new TaskParameters(loggingOptOut); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TaskParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTaskParameters(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskState.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskState.Serialization.cs index 13e4e0708a9f4..d77050e029a71 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskState.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TaskState.Serialization.cs @@ -46,5 +46,21 @@ internal static TaskState DeserializeTaskState(JsonElement element) } return new TaskState(lastUpdateDateTime, status); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TaskState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTaskState(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksState.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksState.Serialization.cs index ec30cb4c12c2b..36b44f167d4e2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksState.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TasksState.Serialization.cs @@ -28,5 +28,13 @@ internal static TasksState DeserializeTasksState(JsonElement element) } return new TasksState(tasks); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TasksState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTasksState(document.RootElement); + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextDocumentBatchStatistics.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextDocumentBatchStatistics.Serialization.cs index d104bce16b608..509da77aaca22 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextDocumentBatchStatistics.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextDocumentBatchStatistics.Serialization.cs @@ -61,5 +61,21 @@ internal static TextDocumentBatchStatistics DeserializeTextDocumentBatchStatisti } return new TextDocumentBatchStatistics(documentsCount, validDocumentsCount, erroneousDocumentsCount, transactionsCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TextDocumentBatchStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextDocumentBatchStatistics(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextDocumentStatistics.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextDocumentStatistics.Serialization.cs index c4c227b626fd9..ce02a1c92e1b9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextDocumentStatistics.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/TextDocumentStatistics.Serialization.cs @@ -41,5 +41,21 @@ internal static TextDocumentStatistics DeserializeTextDocumentStatistics(JsonEle } return new TextDocumentStatistics(charactersCount, transactionsCount); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TextDocumentStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTextDocumentStatistics(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextLROResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextLROResult.Serialization.cs index d2a6d80cb85a4..a2e9c3d95604b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextLROResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextLROResult.Serialization.cs @@ -65,5 +65,21 @@ internal static UnknownAnalyzeTextLROResult DeserializeUnknownAnalyzeTextLROResu } return new UnknownAnalyzeTextLROResult(lastUpdateDateTime, status, kind, taskName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownAnalyzeTextLROResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownAnalyzeTextLROResult(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextLROTask.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextLROTask.Serialization.cs index 6a07e1a481e75..99e799840cd99 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextLROTask.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextLROTask.Serialization.cs @@ -48,5 +48,21 @@ internal static UnknownAnalyzeTextLROTask DeserializeUnknownAnalyzeTextLROTask(J } return new UnknownAnalyzeTextLROTask(taskName, kind); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownAnalyzeTextLROTask FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownAnalyzeTextLROTask(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextTaskResult.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextTaskResult.Serialization.cs index 39039fd8f79db..150a1d6f758ba 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextTaskResult.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/UnknownAnalyzeTextTaskResult.Serialization.cs @@ -28,5 +28,13 @@ internal static UnknownAnalyzeTextTaskResult DeserializeUnknownAnalyzeTextTaskRe } return new UnknownAnalyzeTextTaskResult(kind); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownAnalyzeTextTaskResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownAnalyzeTextTaskResult(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.Serialization.cs index d0dbde91f2bb5..bd630e887928b 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateSeries.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.IoT.TimeSeriesInsights { internal partial class AggregateSeries : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateVariable.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateVariable.Serialization.cs index ed8d14b27fc39..6ba1b87ad8788 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateVariable.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AggregateVariable.Serialization.cs @@ -60,5 +60,21 @@ internal static AggregateVariable DeserializeAggregateVariable(JsonElement eleme } return new AggregateVariable(kind, filter, aggregation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AggregateVariable FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAggregateVariable(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/Availability.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/Availability.Serialization.cs index bee8b06f9c23f..f35baee671935 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/Availability.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/Availability.Serialization.cs @@ -59,5 +59,13 @@ internal static Availability DeserializeAvailability(JsonElement element) } return new Availability(range, intervalSize, distribution ?? new ChangeTrackingDictionary()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Availability FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvailability(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AvailabilityResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AvailabilityResponse.Serialization.cs index 4c74df229a216..5d7c47ceae3e6 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AvailabilityResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/AvailabilityResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static AvailabilityResponse DeserializeAvailabilityResponse(JsonElement } return new AvailabilityResponse(availability); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AvailabilityResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeAvailabilityResponse(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/CategoricalVariable.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/CategoricalVariable.Serialization.cs index b0fd99091aab0..a156cb0637e43 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/CategoricalVariable.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/CategoricalVariable.Serialization.cs @@ -115,5 +115,21 @@ internal static CategoricalVariable DeserializeCategoricalVariable(JsonElement e categories ?? new ChangeTrackingList(), defaultCategory); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CategoricalVariable FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCategoricalVariable(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/DateTimeRange.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/DateTimeRange.Serialization.cs index 9f95ef6b8e3d4..7335c1458d2eb 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/DateTimeRange.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/DateTimeRange.Serialization.cs @@ -46,5 +46,21 @@ internal static DateTimeRange DeserializeDateTimeRange(JsonElement element) } return new DateTimeRange(@from, to); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DateTimeRange FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDateTimeRange(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.Serialization.cs index 45ebf6e442498..abcaeb1a741d4 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/EventSchema.Serialization.cs @@ -38,5 +38,13 @@ internal static EventSchema DeserializeEventSchema(JsonElement element) } return new EventSchema(properties ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EventSchema FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEventSchema(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEventSchemaRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEventSchemaRequest.Serialization.cs index 3241023c1fa4f..ac909f79a875c 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEventSchemaRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEventSchemaRequest.Serialization.cs @@ -19,5 +19,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteObjectValue(SearchSpan); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.Serialization.cs index 56591ed5d721a..598ec10bd9482 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetEvents.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.IoT.TimeSeriesInsights { internal partial class GetEvents : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs index 5ca55fb131223..fce02c3be11b6 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetHierarchiesPage.Serialization.cs @@ -44,5 +44,13 @@ internal static GetHierarchiesPage DeserializeGetHierarchiesPage(JsonElement ele } return new GetHierarchiesPage(continuationToken, hierarchies ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GetHierarchiesPage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetHierarchiesPage(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs index 6aa7ddfe312a2..f9fb602f1a22a 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetInstancesPage.Serialization.cs @@ -44,5 +44,13 @@ internal static GetInstancesPage DeserializeGetInstancesPage(JsonElement element } return new GetInstancesPage(continuationToken, instances ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GetInstancesPage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetInstancesPage(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.Serialization.cs index 51f4735a33f1d..4f7a9f9ff43d4 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetSeries.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.IoT.TimeSeriesInsights { internal partial class GetSeries : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs index 8f066fe3e7945..e2d36541dafc0 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/GetTypesPage.Serialization.cs @@ -44,5 +44,13 @@ internal static GetTypesPage DeserializeGetTypesPage(JsonElement element) } return new GetTypesPage(continuationToken, types ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GetTypesPage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGetTypesPage(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.Serialization.cs index 99ebe75fc07be..7ec4dc5339fa5 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchRequest.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.Serialization.cs index 4bf2d7facfa06..c7dd17d6e475a 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesBatchResponse.Serialization.cs @@ -5,9 +5,18 @@ #nullable disable +using System.Text.Json; + namespace Azure.IoT.TimeSeriesInsights { internal partial class HierarchiesBatchResponse { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HierarchiesBatchResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHierarchiesBatchResponse(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandParameter.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandParameter.Serialization.cs index 86ce7a3e92779..123ad9ada1cd8 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandParameter.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesExpandParameter.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.Serialization.cs index 20ea4b3084c14..0c51f241867d5 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesRequestBatchGetDelete.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortParameter.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortParameter.Serialization.cs index e3345b110af0f..adbdacfbf9a24 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortParameter.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchiesSortParameter.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchyHit.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchyHit.Serialization.cs index 8d0ee4e1f7a49..90f83fd92e86d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchyHit.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/HierarchyHit.Serialization.cs @@ -48,5 +48,13 @@ internal static HierarchyHit DeserializeHierarchyHit(JsonElement element) } return new HierarchyHit(name, cumulativeInstanceCount, hierarchyNodes); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static HierarchyHit FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHierarchyHit(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.Serialization.cs index dacc1998cc036..70ad4b63aeb8d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHit.Serialization.cs @@ -82,5 +82,13 @@ internal static InstanceHit DeserializeInstanceHit(JsonElement element) } return new InstanceHit(timeSeriesId ?? new ChangeTrackingList(), name, typeId, hierarchyIds ?? new ChangeTrackingList(), highlights); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InstanceHit FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInstanceHit(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs index cb5f10f892784..6e7636d0781ca 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstanceHitHighlights.Serialization.cs @@ -124,5 +124,13 @@ internal static InstanceHitHighlights DeserializeInstanceHitHighlights(JsonEleme instanceFieldNames ?? new ChangeTrackingList(), instanceFieldValues ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InstanceHitHighlights FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInstanceHitHighlights(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.Serialization.cs index db977c3bde9d6..8de23a5c48ce5 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchRequest.Serialization.cs @@ -47,5 +47,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.Serialization.cs index 5e9bc5712c9b5..0ff5fc1052446 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesBatchResponse.Serialization.cs @@ -5,9 +5,18 @@ #nullable disable +using System.Text.Json; + namespace Azure.IoT.TimeSeriesInsights { internal partial class InstancesBatchResponse { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InstancesBatchResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInstancesBatchResponse(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesOperationResult.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesOperationResult.Serialization.cs index 249106b579476..d03b6a5e7e26e 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesOperationResult.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesOperationResult.Serialization.cs @@ -42,5 +42,13 @@ internal static InstancesOperationResult DeserializeInstancesOperationResult(Jso } return new InstancesOperationResult(instance, error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InstancesOperationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInstancesOperationResult(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.Serialization.cs index 964d61ae9747a..0dca53af48f77 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesRequestBatchGetOrDelete.Serialization.cs @@ -12,5 +12,12 @@ namespace Azure.IoT.TimeSeriesInsights { internal partial class InstancesRequestBatchGetOrDelete : IUtf8JsonSerializable { + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSearchStringSuggestion.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSearchStringSuggestion.Serialization.cs index 44f6c408a37f4..e712d141db2e2 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSearchStringSuggestion.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSearchStringSuggestion.Serialization.cs @@ -34,5 +34,13 @@ internal static InstancesSearchStringSuggestion DeserializeInstancesSearchString } return new InstancesSearchStringSuggestion(searchString, highlightedSearchString); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InstancesSearchStringSuggestion FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInstancesSearchStringSuggestion(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortParameter.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortParameter.Serialization.cs index 487be203063af..6233f0f65507f 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortParameter.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSortParameter.Serialization.cs @@ -22,5 +22,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestRequest.Serialization.cs index 0a35ef0446116..e0f1a458af3b0 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestRequest.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.Serialization.cs index f084aacd1ad8f..e9ca704387f12 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesSuggestResponse.Serialization.cs @@ -38,5 +38,13 @@ internal static InstancesSuggestResponse DeserializeInstancesSuggestResponse(Jso } return new InstancesSuggestResponse(suggestions ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InstancesSuggestResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInstancesSuggestResponse(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.Serialization.cs index 25149c6a1aefc..4ca1085c8a07e 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InterpolationBoundary.Serialization.cs @@ -45,5 +45,21 @@ internal static InterpolationBoundary DeserializeInterpolationBoundary(JsonEleme } return new InterpolationBoundary(span); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InterpolationBoundary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInterpolationBoundary(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.Serialization.cs index 0cbc275b0669b..c8308b4b8c755 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/ModelSettingsResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static ModelSettingsResponse DeserializeModelSettingsResponse(JsonEleme } return new ModelSettingsResponse(modelSettings); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ModelSettingsResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeModelSettingsResponse(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/NumericVariable.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/NumericVariable.Serialization.cs index dbb152cad8fdd..1230d6b0bd1d6 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/NumericVariable.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/NumericVariable.Serialization.cs @@ -83,5 +83,21 @@ internal static NumericVariable DeserializeNumericVariable(JsonElement element) } return new NumericVariable(kind, filter, value, interpolation, aggregation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new NumericVariable FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNumericVariable(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/PagedResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/PagedResponse.Serialization.cs index 55e6b1a98b590..d8ff19b594f52 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/PagedResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/PagedResponse.Serialization.cs @@ -28,5 +28,13 @@ internal static PagedResponse DeserializePagedResponse(JsonElement element) } return new PagedResponse(continuationToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PagedResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePagedResponse(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/PropertyValues.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/PropertyValues.Serialization.cs index 8717bb36f93c0..5cefd3ee2277d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/PropertyValues.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/PropertyValues.Serialization.cs @@ -66,5 +66,21 @@ internal static PropertyValues DeserializePropertyValues(JsonElement element) } return new PropertyValues(name, type, values); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PropertyValues FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePropertyValues(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.Serialization.cs index 2711e084b91e5..47b12ca5e9e13 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryRequest.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryResultPage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryResultPage.Serialization.cs index 8292f30fd27c0..f4ad4ab35a451 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryResultPage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/QueryResultPage.Serialization.cs @@ -70,5 +70,13 @@ internal static QueryResultPage DeserializeQueryResultPage(JsonElement element) } return new QueryResultPage(continuationToken, timestamps ?? new ChangeTrackingList(), properties ?? new ChangeTrackingList(), progress); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new QueryResultPage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeQueryResultPage(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.Serialization.cs index 1e3ffe34f49bf..9994a2cc9ebe5 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchHierarchyNodesResponse.Serialization.cs @@ -54,5 +54,13 @@ internal static SearchHierarchyNodesResponse DeserializeSearchHierarchyNodesResp } return new SearchHierarchyNodesResponse(hits ?? new ChangeTrackingList(), hitCount, continuationToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchHierarchyNodesResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchHierarchyNodesResponse(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesHierarchiesParameters.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesHierarchiesParameters.Serialization.cs index ee96c592ea955..3dbe262bfb247 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesHierarchiesParameters.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesHierarchiesParameters.Serialization.cs @@ -32,5 +32,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesParameters.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesParameters.Serialization.cs index 68563bee810a5..4306700480a01 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesParameters.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesParameters.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesRequest.Serialization.cs index 8943ca17ead73..dc45beba8d73c 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesRequest.Serialization.cs @@ -39,5 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.Serialization.cs index 44804fc651bfd..2f7daec70d367 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponse.Serialization.cs @@ -54,5 +54,13 @@ internal static SearchInstancesResponse DeserializeSearchInstancesResponse(JsonE } return new SearchInstancesResponse(hits ?? new ChangeTrackingList(), hitCount, continuationToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchInstancesResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchInstancesResponse(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponsePage.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponsePage.Serialization.cs index 3e775fcbc25b0..57fd047347322 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponsePage.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/SearchInstancesResponsePage.Serialization.cs @@ -42,5 +42,13 @@ internal static SearchInstancesResponsePage DeserializeSearchInstancesResponsePa } return new SearchInstancesResponsePage(instances, hierarchyNodes); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchInstancesResponsePage FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSearchInstancesResponsePage(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesAggregateCategory.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesAggregateCategory.Serialization.cs index 7306137860b96..b71fad3dfdd85 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesAggregateCategory.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesAggregateCategory.Serialization.cs @@ -68,5 +68,21 @@ internal static TimeSeriesAggregateCategory DeserializeTimeSeriesAggregateCatego } return new TimeSeriesAggregateCategory(label, values); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesAggregateCategory FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesAggregateCategory(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesDefaultCategory.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesDefaultCategory.Serialization.cs index 0a20751483cdb..2cbe1b415f359 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesDefaultCategory.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesDefaultCategory.Serialization.cs @@ -37,5 +37,21 @@ internal static TimeSeriesDefaultCategory DeserializeTimeSeriesDefaultCategory(J } return new TimeSeriesDefaultCategory(label); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesDefaultCategory FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesDefaultCategory(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesExpression.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesExpression.Serialization.cs index 473665722f7d1..efa2ad02b4787 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesExpression.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesExpression.Serialization.cs @@ -37,5 +37,21 @@ internal static TimeSeriesExpression DeserializeTimeSeriesExpression(JsonElement } return new TimeSeriesExpression(tsx); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesExpression FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesExpression(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.Serialization.cs index 462f5fc70b6df..ec7cb1f66c4e8 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchy.Serialization.cs @@ -56,5 +56,21 @@ internal static TimeSeriesHierarchy DeserializeTimeSeriesHierarchy(JsonElement e } return new TimeSeriesHierarchy(id, name, source); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesHierarchy FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesHierarchy(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchyOperationResult.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchyOperationResult.Serialization.cs index 865f4dbf2c4cc..a742e2d47e5bc 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchyOperationResult.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchyOperationResult.Serialization.cs @@ -42,5 +42,13 @@ internal static TimeSeriesHierarchyOperationResult DeserializeTimeSeriesHierarch } return new TimeSeriesHierarchyOperationResult(hierarchy, error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesHierarchyOperationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesHierarchyOperationResult(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.Serialization.cs index 880e591e6e7c5..d8369e9bae1d0 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesHierarchySource.Serialization.cs @@ -55,5 +55,21 @@ internal static TimeSeriesHierarchySource DeserializeTimeSeriesHierarchySource(J } return new TimeSeriesHierarchySource(instanceFieldNames ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesHierarchySource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesHierarchySource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.Serialization.cs index 5d897a0ad2aa6..3852d50d35581 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesIdProperty.Serialization.cs @@ -38,5 +38,13 @@ internal static TimeSeriesIdProperty DeserializeTimeSeriesIdProperty(JsonElement } return new TimeSeriesIdProperty(name, type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesIdProperty FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesIdProperty(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInsightsEventProperty.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInsightsEventProperty.Serialization.cs index 5118ca9e4c2bd..573fa2f3abf31 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInsightsEventProperty.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInsightsEventProperty.Serialization.cs @@ -55,5 +55,21 @@ internal static TimeSeriesInsightsEventProperty DeserializeTimeSeriesInsightsEve } return new TimeSeriesInsightsEventProperty(name, type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesInsightsEventProperty FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesInsightsEventProperty(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInstance.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInstance.Serialization.cs index 1d122db007e98..a1338d8d0ca3c 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInstance.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInstance.Serialization.cs @@ -12,5 +12,20 @@ namespace Azure.IoT.TimeSeriesInsights { public partial class TimeSeriesInstance : IUtf8JsonSerializable { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesInstance FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesInstance(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInterpolation.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInterpolation.Serialization.cs index 4935feb972da0..aa95fb846c365 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInterpolation.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesInterpolation.Serialization.cs @@ -59,5 +59,21 @@ internal static TimeSeriesInterpolation DeserializeTimeSeriesInterpolation(JsonE } return new TimeSeriesInterpolation(kind, boundary); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesInterpolation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesInterpolation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.Serialization.cs index f2987d75136ee..1178a4ec3728f 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesModelSettings.Serialization.cs @@ -50,5 +50,13 @@ internal static TimeSeriesModelSettings DeserializeTimeSeriesModelSettings(JsonE } return new TimeSeriesModelSettings(name, timeSeriesIdProperties ?? new ChangeTrackingList(), defaultTypeId); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesModelSettings FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesModelSettings(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationError.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationError.Serialization.cs index cb98ca38ffde5..50fb833dacc81 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationError.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationError.Serialization.cs @@ -76,5 +76,13 @@ internal static TimeSeriesOperationError DeserializeTimeSeriesOperationError(Jso details ?? new ChangeTrackingList(), additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesOperationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesOperationError(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationErrorDetails.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationErrorDetails.Serialization.cs index d6d63712c966b..4c95e4b0697a7 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationErrorDetails.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationErrorDetails.Serialization.cs @@ -39,5 +39,13 @@ internal static TimeSeriesOperationErrorDetails DeserializeTimeSeriesOperationEr additionalProperties = additionalPropertiesDictionary; return new TimeSeriesOperationErrorDetails(code, message, additionalProperties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesOperationErrorDetails FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesOperationErrorDetails(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesType.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesType.Serialization.cs index 9690d359b037e..56d34ce3bbad3 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesType.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesType.Serialization.cs @@ -79,5 +79,21 @@ internal static TimeSeriesType DeserializeTimeSeriesType(JsonElement element) } return new TimeSeriesType(id, name, description, variables); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesType FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesType(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesTypeOperationResult.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesTypeOperationResult.Serialization.cs index 803b9f8ff75f3..3b65ede8e9c1d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesTypeOperationResult.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesTypeOperationResult.Serialization.cs @@ -42,5 +42,13 @@ internal static TimeSeriesTypeOperationResult DeserializeTimeSeriesTypeOperation } return new TimeSeriesTypeOperationResult(timeSeriesType, error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesTypeOperationResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesTypeOperationResult(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesVariable.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesVariable.Serialization.cs index 1ea28242fbf69..fbc05d84e664d 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesVariable.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesVariable.Serialization.cs @@ -42,5 +42,21 @@ internal static TimeSeriesVariable DeserializeTimeSeriesVariable(JsonElement ele } return UnknownVariable.DeserializeUnknownVariable(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TimeSeriesVariable FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTimeSeriesVariable(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TsiError.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TsiError.Serialization.cs index ac202062414e8..2f2559811c4a4 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TsiError.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TsiError.Serialization.cs @@ -32,5 +32,13 @@ internal static TsiError DeserializeTsiError(JsonElement element) } return new TsiError(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TsiError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTsiError(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.Serialization.cs index 332e6d8c473a0..481840e1f0030 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchRequest.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.Serialization.cs index cc1f95fcf5e8a..9e50a7c991191 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesBatchResponse.Serialization.cs @@ -5,9 +5,18 @@ #nullable disable +using System.Text.Json; + namespace Azure.IoT.TimeSeriesInsights { internal partial class TypesBatchResponse { + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TypesBatchResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTypesBatchResponse(document.RootElement); + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.Serialization.cs index c8d0fa356d0b8..3f6c0d48349e9 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TypesRequestBatchGetOrDelete.Serialization.cs @@ -37,5 +37,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/UnknownVariable.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/UnknownVariable.Serialization.cs index f2ce57f278e0c..c24036b5c7ac3 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/UnknownVariable.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/UnknownVariable.Serialization.cs @@ -52,5 +52,21 @@ internal static UnknownVariable DeserializeUnknownVariable(JsonElement element) } return new UnknownVariable(kind, filter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownVariable FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownVariable(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs index 0a8f937440c93..b28745303d112 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/UpdateModelSettingsRequest.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentFilter.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentFilter.Serialization.cs index 99ec5ade5aca7..3951222f2f2c9 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentFilter.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentFilter.Serialization.cs @@ -27,5 +27,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentStatusResult.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentStatusResult.Serialization.cs index 8fe34654367de..c3e60aebd3d7b 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentStatusResult.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentStatusResult.Serialization.cs @@ -101,5 +101,13 @@ internal static DocumentStatusResult DeserializeDocumentStatusResult(JsonElement id, characterCharged); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentStatusResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentStatusResult(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.Serialization.cs index a4a723de62924..cb097b95d88d3 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationFileFormat.Serialization.cs @@ -72,5 +72,13 @@ internal static DocumentTranslationFileFormat DeserializeDocumentTranslationFile } return new DocumentTranslationFileFormat(format, fileExtensions, contentTypes, defaultVersion, versions ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentTranslationFileFormat FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentTranslationFileFormat(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationInput.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationInput.Serialization.cs index 5e12f24e65a27..ba95f4052cd00 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationInput.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationInput.Serialization.cs @@ -31,5 +31,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentsStatus.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentsStatus.Serialization.cs index 023aeffdb1fd5..fccd8f5af77ca 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentsStatus.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentsStatus.Serialization.cs @@ -40,5 +40,13 @@ internal static DocumentsStatus DeserializeDocumentsStatus(JsonElement element) } return new DocumentsStatus(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DocumentsStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDocumentsStatus(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/InnerTranslationError.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/InnerTranslationError.Serialization.cs index e94a125fc7107..ef3599834a8d8 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/InnerTranslationError.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/InnerTranslationError.Serialization.cs @@ -50,5 +50,13 @@ internal static InnerTranslationError DeserializeInnerTranslationError(JsonEleme } return new InnerTranslationError(code, message, target, innerError); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static InnerTranslationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeInnerTranslationError(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StartTranslationDetails.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StartTranslationDetails.Serialization.cs index b6a7375447dc1..d600203788f03 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StartTranslationDetails.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StartTranslationDetails.Serialization.cs @@ -24,5 +24,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StatusSummary.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StatusSummary.Serialization.cs index b6e9127ed9a04..3129e129c9dea 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StatusSummary.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StatusSummary.Serialization.cs @@ -71,5 +71,13 @@ internal static StatusSummary DeserializeStatusSummary(JsonElement element) cancelled, totalCharacterCharged); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static StatusSummary FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeStatusSummary(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/SupportedFileFormats.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/SupportedFileFormats.Serialization.cs index 13de5320cb784..ab292b8b430dd 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/SupportedFileFormats.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/SupportedFileFormats.Serialization.cs @@ -34,5 +34,13 @@ internal static SupportedFileFormats DeserializeSupportedFileFormats(JsonElement } return new SupportedFileFormats(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SupportedFileFormats FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSupportedFileFormats(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/SupportedStorageSources.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/SupportedStorageSources.Serialization.cs index 712aa876a5abb..9aa570949bfb9 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/SupportedStorageSources.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/SupportedStorageSources.Serialization.cs @@ -34,5 +34,13 @@ internal static SupportedStorageSources DeserializeSupportedStorageSources(JsonE } return new SupportedStorageSources(value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SupportedStorageSources FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSupportedStorageSources(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationError.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationError.Serialization.cs index 890f63e45311f..50a317131bebe 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationError.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationError.Serialization.cs @@ -50,5 +50,13 @@ internal static TranslationError DeserializeTranslationError(JsonElement element } return new TranslationError(code, message, target, innerError); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TranslationError FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTranslationError(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationErrorResponse.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationErrorResponse.Serialization.cs index f6ee2becd5c95..0a8efbf701ee0 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationErrorResponse.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationErrorResponse.Serialization.cs @@ -32,5 +32,13 @@ internal static TranslationErrorResponse DeserializeTranslationErrorResponse(Jso } return new TranslationErrorResponse(error); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TranslationErrorResponse FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTranslationErrorResponse(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationGlossary.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationGlossary.Serialization.cs index 903edffca57c9..4d4e8d08c36de 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationGlossary.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationGlossary.Serialization.cs @@ -31,5 +31,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationSource.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationSource.Serialization.cs index 7a294b2f45b2b..4f54d231881fa 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationSource.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationSource.Serialization.cs @@ -35,5 +35,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationStatusResult.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationStatusResult.Serialization.cs index 481c908f3ef09..18ab52a0768a5 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationStatusResult.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationStatusResult.Serialization.cs @@ -66,5 +66,13 @@ internal static TranslationStatusResult DeserializeTranslationStatusResult(JsonE error, summary); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TranslationStatusResult FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTranslationStatusResult(document.RootElement); + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.Serialization.cs index f346af4a744e0..cc2f45c3876a5 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.Serialization.cs @@ -41,5 +41,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationsStatus.Serialization.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationsStatus.Serialization.cs index 9f3a2ee33cf01..4f2368070fc77 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationsStatus.Serialization.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationsStatus.Serialization.cs @@ -40,5 +40,13 @@ internal static TranslationsStatus DeserializeTranslationsStatus(JsonElement ele } return new TranslationsStatus(value, nextLink); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TranslationsStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTranslationsStatus(document.RootElement); + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CertificateSource.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CertificateSource.Serialization.cs index 469cb5798d44f..5f8a5a83414a8 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CertificateSource.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CertificateSource.Serialization.cs @@ -35,5 +35,21 @@ internal static CertificateSource DeserializeCertificateSource(JsonElement eleme } return UnknownCertificateSource.DeserializeUnknownCertificateSource(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CertificateSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCertificateSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CognitiveServicesVisionProcessor.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CognitiveServicesVisionProcessor.Serialization.cs index eb0bb6ac5851f..6718a030ceca6 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CognitiveServicesVisionProcessor.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CognitiveServicesVisionProcessor.Serialization.cs @@ -117,5 +117,21 @@ internal static CognitiveServicesVisionProcessor DeserializeCognitiveServicesVis samplingOptions, operation); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new CognitiveServicesVisionProcessor FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCognitiveServicesVisionProcessor(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CredentialsBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CredentialsBase.Serialization.cs index 75e62ac75da14..b16a53cd11e85 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CredentialsBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/CredentialsBase.Serialization.cs @@ -37,5 +37,21 @@ internal static CredentialsBase DeserializeCredentialsBase(JsonElement element) } return UnknownCredentialsBase.DeserializeUnknownCredentialsBase(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CredentialsBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeCredentialsBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDevice.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDevice.Serialization.cs index b2fda19131168..373a33e62a6da 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDevice.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDevice.Serialization.cs @@ -102,5 +102,21 @@ internal static DiscoveredOnvifDevice DeserializeDiscoveredOnvifDevice(JsonEleme } return new DiscoveredOnvifDevice(serviceIdentifier, remoteIPAddress, scopes ?? new ChangeTrackingList(), endpoints ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DiscoveredOnvifDevice FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDiscoveredOnvifDevice(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDeviceCollection.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDeviceCollection.Serialization.cs index 6dc53dfefed42..b15453ec61cb5 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDeviceCollection.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/DiscoveredOnvifDeviceCollection.Serialization.cs @@ -55,5 +55,21 @@ internal static DiscoveredOnvifDeviceCollection DeserializeDiscoveredOnvifDevice } return new DiscoveredOnvifDeviceCollection(value ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static DiscoveredOnvifDeviceCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeDiscoveredOnvifDeviceCollection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/EndpointBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/EndpointBase.Serialization.cs index f89d8c308886d..ee3d223657c34 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/EndpointBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/EndpointBase.Serialization.cs @@ -43,5 +43,21 @@ internal static EndpointBase DeserializeEndpointBase(JsonElement element) } return UnknownEndpointBase.DeserializeUnknownEndpointBase(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static EndpointBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeEndpointBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ExtensionProcessorBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ExtensionProcessorBase.Serialization.cs index 4f01e2e7b7bce..02b7437cb529f 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ExtensionProcessorBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ExtensionProcessorBase.Serialization.cs @@ -109,5 +109,21 @@ internal static ExtensionProcessorBase DeserializeExtensionProcessorBase(JsonEle image, samplingOptions); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ExtensionProcessorBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeExtensionProcessorBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/FileSink.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/FileSink.Serialization.cs index f7991fbf0d7c6..036d31016a13d 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/FileSink.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/FileSink.Serialization.cs @@ -94,5 +94,21 @@ internal static FileSink DeserializeFileSink(JsonElement element) fileNamePattern, maximumSizeMiB); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new FileSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeFileSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/GrpcExtension.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/GrpcExtension.Serialization.cs index 5198e7948fe87..01b8004df4d1f 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/GrpcExtension.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/GrpcExtension.Serialization.cs @@ -122,5 +122,21 @@ internal static GrpcExtension DeserializeGrpcExtension(JsonElement element) dataTransfer, extensionConfiguration); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new GrpcExtension FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGrpcExtension(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/GrpcExtensionDataTransfer.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/GrpcExtensionDataTransfer.Serialization.cs index 1a2a6966a0492..1b846614c08df 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/GrpcExtensionDataTransfer.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/GrpcExtensionDataTransfer.Serialization.cs @@ -48,5 +48,21 @@ internal static GrpcExtensionDataTransfer DeserializeGrpcExtensionDataTransfer(J } return new GrpcExtensionDataTransfer(sharedMemorySizeMiB, mode); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static GrpcExtensionDataTransfer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeGrpcExtensionDataTransfer(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/H264Configuration.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/H264Configuration.Serialization.cs index 4510814a07a19..2d0ac8d637d5b 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/H264Configuration.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/H264Configuration.Serialization.cs @@ -59,5 +59,21 @@ internal static H264Configuration DeserializeH264Configuration(JsonElement eleme } return new H264Configuration(govLength, profile); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static H264Configuration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeH264Configuration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/HttpExtension.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/HttpExtension.Serialization.cs index e3f3d0330168a..40a54df7d38a8 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/HttpExtension.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/HttpExtension.Serialization.cs @@ -101,5 +101,21 @@ internal static HttpExtension DeserializeHttpExtension(JsonElement element) image, samplingOptions); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HttpExtension FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHttpExtension(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/HttpHeaderCredentials.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/HttpHeaderCredentials.Serialization.cs index 4931f4f1ef213..1c950aabdd434 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/HttpHeaderCredentials.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/HttpHeaderCredentials.Serialization.cs @@ -53,5 +53,21 @@ internal static HttpHeaderCredentials DeserializeHttpHeaderCredentials(JsonEleme } return new HttpHeaderCredentials(type, headerName, headerValue); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new HttpHeaderCredentials FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeHttpHeaderCredentials(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatBmp.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatBmp.Serialization.cs index 9d1b053ead4a5..14d9e84c042a0 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatBmp.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatBmp.Serialization.cs @@ -37,5 +37,21 @@ internal static ImageFormatBmp DeserializeImageFormatBmp(JsonElement element) } return new ImageFormatBmp(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ImageFormatBmp FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageFormatBmp(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatJpeg.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatJpeg.Serialization.cs index 6338936d5dc1c..19ddc7c59e690 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatJpeg.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatJpeg.Serialization.cs @@ -48,5 +48,21 @@ internal static ImageFormatJpeg DeserializeImageFormatJpeg(JsonElement element) } return new ImageFormatJpeg(type, quality); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ImageFormatJpeg FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageFormatJpeg(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatPng.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatPng.Serialization.cs index ff8a368119136..f18fdc4a5e340 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatPng.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatPng.Serialization.cs @@ -37,5 +37,21 @@ internal static ImageFormatPng DeserializeImageFormatPng(JsonElement element) } return new ImageFormatPng(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ImageFormatPng FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageFormatPng(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatProperties.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatProperties.Serialization.cs index f326a207cb41b..36275e5d26dbf 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatProperties.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatProperties.Serialization.cs @@ -38,5 +38,21 @@ internal static ImageFormatProperties DeserializeImageFormatProperties(JsonEleme } return UnknownImageFormatProperties.DeserializeUnknownImageFormatProperties(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ImageFormatProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageFormatProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatRaw.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatRaw.Serialization.cs index aa636e073a658..f8f56639ff40e 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatRaw.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageFormatRaw.Serialization.cs @@ -45,5 +45,21 @@ internal static ImageFormatRaw DeserializeImageFormatRaw(JsonElement element) } return new ImageFormatRaw(type, pixelFormat); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ImageFormatRaw FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageFormatRaw(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageProperties.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageProperties.Serialization.cs index d55b097e6da5a..b0b36dec3c588 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageProperties.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageProperties.Serialization.cs @@ -59,5 +59,21 @@ internal static ImageProperties DeserializeImageProperties(JsonElement element) } return new ImageProperties(scale, format); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ImageProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageScale.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageScale.Serialization.cs index b49baf61ccb94..d0c089ba1c117 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageScale.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ImageScale.Serialization.cs @@ -66,5 +66,21 @@ internal static ImageScale DeserializeImageScale(JsonElement element) } return new ImageScale(mode, width, height); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ImageScale FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeImageScale(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubDeviceConnection.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubDeviceConnection.Serialization.cs index 71b2bf5b76606..995b2480fe276 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubDeviceConnection.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubDeviceConnection.Serialization.cs @@ -52,5 +52,21 @@ internal static IotHubDeviceConnection DeserializeIotHubDeviceConnection(JsonEle } return new IotHubDeviceConnection(deviceId, credentials); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IotHubDeviceConnection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIotHubDeviceConnection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubMessageSink.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubMessageSink.Serialization.cs index 76a8e15d0d279..8e67a9480442a 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubMessageSink.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubMessageSink.Serialization.cs @@ -72,5 +72,21 @@ internal static IotHubMessageSink DeserializeIotHubMessageSink(JsonElement eleme } return new IotHubMessageSink(type, name, inputs, hubOutputName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IotHubMessageSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIotHubMessageSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubMessageSource.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubMessageSource.Serialization.cs index 28c1f6e09138d..a6c7266c27550 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubMessageSource.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/IotHubMessageSource.Serialization.cs @@ -56,5 +56,21 @@ internal static IotHubMessageSource DeserializeIotHubMessageSource(JsonElement e } return new IotHubMessageSource(type, name, hubInputName); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IotHubMessageSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeIotHubMessageSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LineCrossingProcessor.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LineCrossingProcessor.Serialization.cs index 981f915b95c7e..edb32587f7bd1 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LineCrossingProcessor.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LineCrossingProcessor.Serialization.cs @@ -82,5 +82,21 @@ internal static LineCrossingProcessor DeserializeLineCrossingProcessor(JsonEleme } return new LineCrossingProcessor(type, name, inputs, lines); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LineCrossingProcessor FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLineCrossingProcessor(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipeline.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipeline.Serialization.cs index 32caf46fc0281..d3136d7a9768e 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipeline.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipeline.Serialization.cs @@ -67,5 +67,21 @@ internal static LivePipeline DeserializeLivePipeline(JsonElement element) } return new LivePipeline(name, systemData, properties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LivePipeline FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipeline(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineActivateRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineActivateRequest.Serialization.cs index ed7c5edef9c8a..ba61e9d9ebf91 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineActivateRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineActivateRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static LivePipelineActivateRequest DeserializeLivePipelineActivateReque } return new LivePipelineActivateRequest(methodName, apiVersion, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LivePipelineActivateRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipelineActivateRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineCollection.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineCollection.Serialization.cs index c53a578311e10..95ae0d6bc0092 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineCollection.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineCollection.Serialization.cs @@ -66,5 +66,21 @@ internal static LivePipelineCollection DeserializeLivePipelineCollection(JsonEle } return new LivePipelineCollection(value ?? new ChangeTrackingList(), continuationToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LivePipelineCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipelineCollection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineDeactivateRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineDeactivateRequest.Serialization.cs index b9698c23a1d1f..6fcd92dcc060f 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineDeactivateRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineDeactivateRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static LivePipelineDeactivateRequest DeserializeLivePipelineDeactivateR } return new LivePipelineDeactivateRequest(methodName, apiVersion, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LivePipelineDeactivateRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipelineDeactivateRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineDeleteRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineDeleteRequest.Serialization.cs index e16ff1b456f40..c49d877959f4f 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineDeleteRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineDeleteRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static LivePipelineDeleteRequest DeserializeLivePipelineDeleteRequest(J } return new LivePipelineDeleteRequest(methodName, apiVersion, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LivePipelineDeleteRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipelineDeleteRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineGetRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineGetRequest.Serialization.cs index dee2a8339b183..5c6c3bcab7f24 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineGetRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineGetRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static LivePipelineGetRequest DeserializeLivePipelineGetRequest(JsonEle } return new LivePipelineGetRequest(methodName, apiVersion, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LivePipelineGetRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipelineGetRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineListRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineListRequest.Serialization.cs index 59a51d69db63e..3baa5ea59c94c 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineListRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineListRequest.Serialization.cs @@ -48,5 +48,21 @@ internal static LivePipelineListRequest DeserializeLivePipelineListRequest(JsonE } return new LivePipelineListRequest(methodName, apiVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LivePipelineListRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipelineListRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineProperties.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineProperties.Serialization.cs index 1e9cd957ed069..f09d6845a65b7 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineProperties.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineProperties.Serialization.cs @@ -92,5 +92,21 @@ internal static LivePipelineProperties DeserializeLivePipelineProperties(JsonEle } return new LivePipelineProperties(description, topologyName, parameters ?? new ChangeTrackingList(), state); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static LivePipelineProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipelineProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineSetRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineSetRequest.Serialization.cs index b7f8d86dbc529..ab0cbff259f94 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineSetRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineSetRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static LivePipelineSetRequest DeserializeLivePipelineSetRequest(JsonEle } return new LivePipelineSetRequest(methodName, apiVersion, livePipeline); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LivePipelineSetRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipelineSetRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineSetRequestBody.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineSetRequestBody.Serialization.cs index 6d9c8c0e74ad0..3f62a64357c69 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineSetRequestBody.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/LivePipelineSetRequestBody.Serialization.cs @@ -86,5 +86,21 @@ internal static LivePipelineSetRequestBody DeserializeLivePipelineSetRequestBody } return new LivePipelineSetRequestBody(methodName, apiVersion, name, systemData, properties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new LivePipelineSetRequestBody FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeLivePipelineSetRequestBody(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MediaProfile.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MediaProfile.Serialization.cs index c116c1bd161bf..24085414ee5a7 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MediaProfile.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MediaProfile.Serialization.cs @@ -70,5 +70,21 @@ internal static MediaProfile DeserializeMediaProfile(JsonElement element) } return new MediaProfile(name, mediaUri, videoEncoderConfiguration); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaProfile FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaProfile(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MediaUri.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MediaUri.Serialization.cs index 68ca3da2e0c59..f5899b3fd339d 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MediaUri.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MediaUri.Serialization.cs @@ -40,5 +40,21 @@ internal static MediaUri DeserializeMediaUri(JsonElement element) } return new MediaUri(uri); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MediaUri FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMediaUri(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MethodRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MethodRequest.Serialization.cs index d596998ebc430..79b4a67f88026 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MethodRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MethodRequest.Serialization.cs @@ -59,5 +59,21 @@ internal static MethodRequest DeserializeMethodRequest(JsonElement element) } return UnknownMethodRequest.DeserializeUnknownMethodRequest(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static MethodRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMethodRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MethodRequestEmptyBodyBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MethodRequestEmptyBodyBase.Serialization.cs index 439ffca452321..94e1bfd362119 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MethodRequestEmptyBodyBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MethodRequestEmptyBodyBase.Serialization.cs @@ -70,5 +70,21 @@ internal static MethodRequestEmptyBodyBase DeserializeMethodRequestEmptyBodyBase } return new MethodRequestEmptyBodyBase(methodName, apiVersion, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MethodRequestEmptyBodyBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMethodRequestEmptyBodyBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MotionDetectionProcessor.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MotionDetectionProcessor.Serialization.cs index c28bb5530b669..559f0907746d4 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MotionDetectionProcessor.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/MotionDetectionProcessor.Serialization.cs @@ -111,5 +111,21 @@ internal static MotionDetectionProcessor DeserializeMotionDetectionProcessor(Jso outputMotionRegion, eventAggregationWindow); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new MotionDetectionProcessor FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMotionDetectionProcessor(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/Mpeg4Configuration.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/Mpeg4Configuration.Serialization.cs index 088bcad58a4f7..dcb2b56556010 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/Mpeg4Configuration.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/Mpeg4Configuration.Serialization.cs @@ -59,5 +59,21 @@ internal static Mpeg4Configuration DeserializeMpeg4Configuration(JsonElement ele } return new Mpeg4Configuration(govLength, profile); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static Mpeg4Configuration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeMpeg4Configuration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedLineBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedLineBase.Serialization.cs index 7d19cc1722297..58d79b90f802b 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedLineBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedLineBase.Serialization.cs @@ -37,5 +37,21 @@ internal static NamedLineBase DeserializeNamedLineBase(JsonElement element) } return UnknownNamedLineBase.DeserializeUnknownNamedLineBase(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NamedLineBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNamedLineBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedLineString.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedLineString.Serialization.cs index aa8c3e68a5516..fdbb6a0328b0a 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedLineString.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedLineString.Serialization.cs @@ -53,5 +53,21 @@ internal static NamedLineString DeserializeNamedLineString(JsonElement element) } return new NamedLineString(type, name, line); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new NamedLineString FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNamedLineString(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedPolygonBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedPolygonBase.Serialization.cs index be9d3a5f04086..bd3584d1269e9 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedPolygonBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedPolygonBase.Serialization.cs @@ -37,5 +37,21 @@ internal static NamedPolygonBase DeserializeNamedPolygonBase(JsonElement element } return UnknownNamedPolygonBase.DeserializeUnknownNamedPolygonBase(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NamedPolygonBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNamedPolygonBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedPolygonString.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedPolygonString.Serialization.cs index 0fdb1837d3bf6..c83aa5b3a997f 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedPolygonString.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NamedPolygonString.Serialization.cs @@ -53,5 +53,21 @@ internal static NamedPolygonString DeserializeNamedPolygonString(JsonElement ele } return new NamedPolygonString(type, name, polygon); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new NamedPolygonString FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNamedPolygonString(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NodeInput.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NodeInput.Serialization.cs index d5d390b5de1ae..7f0ca3e99d2fd 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NodeInput.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/NodeInput.Serialization.cs @@ -63,5 +63,21 @@ internal static NodeInput DeserializeNodeInput(JsonElement element) } return new NodeInput(nodeName, outputSelectors ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static NodeInput FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeNodeInput(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ObjectTrackingProcessor.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ObjectTrackingProcessor.Serialization.cs index d4fcddfb54483..84f25faa3ac98 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ObjectTrackingProcessor.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ObjectTrackingProcessor.Serialization.cs @@ -79,5 +79,21 @@ internal static ObjectTrackingProcessor DeserializeObjectTrackingProcessor(JsonE } return new ObjectTrackingProcessor(type, name, inputs, accuracy); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ObjectTrackingProcessor FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeObjectTrackingProcessor(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDevice.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDevice.Serialization.cs index 7c4954f1923c8..67be0400b3765 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDevice.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDevice.Serialization.cs @@ -100,5 +100,21 @@ internal static OnvifDevice DeserializeOnvifDevice(JsonElement element) } return new OnvifDevice(hostname, systemDateTime, dns, mediaProfiles ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OnvifDevice FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOnvifDevice(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDeviceDiscoverRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDeviceDiscoverRequest.Serialization.cs index 27ba9965c46f3..45bc70ae10d70 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDeviceDiscoverRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDeviceDiscoverRequest.Serialization.cs @@ -59,5 +59,21 @@ internal static OnvifDeviceDiscoverRequest DeserializeOnvifDeviceDiscoverRequest } return new OnvifDeviceDiscoverRequest(methodName, apiVersion, discoveryDuration); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OnvifDeviceDiscoverRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOnvifDeviceDiscoverRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDeviceGetRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDeviceGetRequest.Serialization.cs index 840cb4e606c84..4c72b8a9cd4b1 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDeviceGetRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDeviceGetRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static OnvifDeviceGetRequest DeserializeOnvifDeviceGetRequest(JsonEleme } return new OnvifDeviceGetRequest(methodName, apiVersion, endpoint); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new OnvifDeviceGetRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOnvifDeviceGetRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDns.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDns.Serialization.cs index 69193f76f077b..1065fad27a26f 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDns.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifDns.Serialization.cs @@ -95,5 +95,21 @@ internal static OnvifDns DeserializeOnvifDns(JsonElement element) } return new OnvifDns(fromDhcp, ipv4Address ?? new ChangeTrackingList(), ipv6Address ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OnvifDns FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOnvifDns(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifHostName.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifHostName.Serialization.cs index a5817e037398d..e323b5807bae7 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifHostName.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifHostName.Serialization.cs @@ -55,5 +55,21 @@ internal static OnvifHostName DeserializeOnvifHostName(JsonElement element) } return new OnvifHostName(fromDhcp, hostname); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OnvifHostName FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOnvifHostName(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifSystemDateTime.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifSystemDateTime.Serialization.cs index acad45ef2fcc3..a0822312db029 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifSystemDateTime.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OnvifSystemDateTime.Serialization.cs @@ -66,5 +66,21 @@ internal static OnvifSystemDateTime DeserializeOnvifSystemDateTime(JsonElement e } return new OnvifSystemDateTime(type, time, timeZone); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OnvifSystemDateTime FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOnvifSystemDateTime(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OutputSelector.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OutputSelector.Serialization.cs index 083cbd17b9259..bc568cc61205a 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OutputSelector.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/OutputSelector.Serialization.cs @@ -70,5 +70,21 @@ internal static OutputSelector DeserializeOutputSelector(JsonElement element) } return new OutputSelector(property, @operator, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static OutputSelector FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeOutputSelector(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ParameterDeclaration.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ParameterDeclaration.Serialization.cs index c83820b9ca80f..e616ed3fc4df9 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ParameterDeclaration.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ParameterDeclaration.Serialization.cs @@ -67,5 +67,21 @@ internal static ParameterDeclaration DeserializeParameterDeclaration(JsonElement } return new ParameterDeclaration(name, type, description, @default); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ParameterDeclaration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParameterDeclaration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ParameterDefinition.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ParameterDefinition.Serialization.cs index ece223023d367..5e9a3cd90bdad 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ParameterDefinition.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ParameterDefinition.Serialization.cs @@ -48,5 +48,21 @@ internal static ParameterDefinition DeserializeParameterDefinition(JsonElement e } return new ParameterDefinition(name, value); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ParameterDefinition FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeParameterDefinition(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PemCertificateList.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PemCertificateList.Serialization.cs index 372ee1ad85c3e..f62333cf6fa1b 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PemCertificateList.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PemCertificateList.Serialization.cs @@ -56,5 +56,21 @@ internal static PemCertificateList DeserializePemCertificateList(JsonElement ele } return new PemCertificateList(type, certificates); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PemCertificateList FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePemCertificateList(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopology.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopology.Serialization.cs index 5aef028020bc8..0585ddb0920b0 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopology.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopology.Serialization.cs @@ -67,5 +67,21 @@ internal static PipelineTopology DeserializePipelineTopology(JsonElement element } return new PipelineTopology(name, systemData, properties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PipelineTopology FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineTopology(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyCollection.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyCollection.Serialization.cs index d777d00bfb356..79707562e4970 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyCollection.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyCollection.Serialization.cs @@ -66,5 +66,21 @@ internal static PipelineTopologyCollection DeserializePipelineTopologyCollection } return new PipelineTopologyCollection(value ?? new ChangeTrackingList(), continuationToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PipelineTopologyCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineTopologyCollection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyDeleteRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyDeleteRequest.Serialization.cs index 90a1d78133445..c50439d790de6 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyDeleteRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyDeleteRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static PipelineTopologyDeleteRequest DeserializePipelineTopologyDeleteR } return new PipelineTopologyDeleteRequest(methodName, apiVersion, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PipelineTopologyDeleteRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineTopologyDeleteRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyGetRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyGetRequest.Serialization.cs index 91599df87708b..f368224ba5e04 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyGetRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyGetRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static PipelineTopologyGetRequest DeserializePipelineTopologyGetRequest } return new PipelineTopologyGetRequest(methodName, apiVersion, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PipelineTopologyGetRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineTopologyGetRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyListRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyListRequest.Serialization.cs index cc796c108f1ea..40d8d7f83206e 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyListRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyListRequest.Serialization.cs @@ -48,5 +48,21 @@ internal static PipelineTopologyListRequest DeserializePipelineTopologyListReque } return new PipelineTopologyListRequest(methodName, apiVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PipelineTopologyListRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineTopologyListRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyProperties.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyProperties.Serialization.cs index 2f1f199db99f9..22d6fec7f448d 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyProperties.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologyProperties.Serialization.cs @@ -141,5 +141,21 @@ internal static PipelineTopologyProperties DeserializePipelineTopologyProperties } return new PipelineTopologyProperties(description, parameters ?? new ChangeTrackingList(), sources ?? new ChangeTrackingList(), processors ?? new ChangeTrackingList(), sinks ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static PipelineTopologyProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineTopologyProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologySetRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologySetRequest.Serialization.cs index bb2d80a060871..b3cc3796c5b85 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologySetRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologySetRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static PipelineTopologySetRequest DeserializePipelineTopologySetRequest } return new PipelineTopologySetRequest(methodName, apiVersion, pipelineTopology); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PipelineTopologySetRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineTopologySetRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologySetRequestBody.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologySetRequestBody.Serialization.cs index b892c3af0f0b2..54a2b20549f14 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologySetRequestBody.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/PipelineTopologySetRequestBody.Serialization.cs @@ -86,5 +86,21 @@ internal static PipelineTopologySetRequestBody DeserializePipelineTopologySetReq } return new PipelineTopologySetRequestBody(methodName, apiVersion, name, systemData, properties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new PipelineTopologySetRequestBody FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializePipelineTopologySetRequestBody(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ProcessorNodeBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ProcessorNodeBase.Serialization.cs index df6f55fbeaa57..ae096e4b55446 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ProcessorNodeBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/ProcessorNodeBase.Serialization.cs @@ -51,5 +51,21 @@ internal static ProcessorNodeBase DeserializeProcessorNodeBase(JsonElement eleme } return UnknownProcessorNodeBase.DeserializeUnknownProcessorNodeBase(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ProcessorNodeBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeProcessorNodeBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RateControl.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RateControl.Serialization.cs index 769e803a0aaf8..db43bb6a7d619 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RateControl.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RateControl.Serialization.cs @@ -89,5 +89,21 @@ internal static RateControl DeserializeRateControl(JsonElement element) } return new RateControl(bitRateLimit, encodingInterval, frameRateLimit, guaranteedFrameRate); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RateControl FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRateControl(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapter.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapter.Serialization.cs index 32f782799c7ae..350ebf43d8463 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapter.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapter.Serialization.cs @@ -67,5 +67,21 @@ internal static RemoteDeviceAdapter DeserializeRemoteDeviceAdapter(JsonElement e } return new RemoteDeviceAdapter(name, systemData, properties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoteDeviceAdapter FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteDeviceAdapter(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterCollection.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterCollection.Serialization.cs index 511a9cf1c3174..f2a014e79813b 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterCollection.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterCollection.Serialization.cs @@ -66,5 +66,21 @@ internal static RemoteDeviceAdapterCollection DeserializeRemoteDeviceAdapterColl } return new RemoteDeviceAdapterCollection(value ?? new ChangeTrackingList(), continuationToken); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoteDeviceAdapterCollection FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteDeviceAdapterCollection(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterDeleteRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterDeleteRequest.Serialization.cs index c0aea4b1ec51a..9d33217c4ba90 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterDeleteRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterDeleteRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static RemoteDeviceAdapterDeleteRequest DeserializeRemoteDeviceAdapterD } return new RemoteDeviceAdapterDeleteRequest(methodName, apiVersion, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RemoteDeviceAdapterDeleteRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteDeviceAdapterDeleteRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterGetRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterGetRequest.Serialization.cs index 1a4dcb3a29858..ae79af6b2188d 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterGetRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterGetRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static RemoteDeviceAdapterGetRequest DeserializeRemoteDeviceAdapterGetR } return new RemoteDeviceAdapterGetRequest(methodName, apiVersion, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RemoteDeviceAdapterGetRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteDeviceAdapterGetRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterListRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterListRequest.Serialization.cs index 13a1659e419fc..770a2a5efa39a 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterListRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterListRequest.Serialization.cs @@ -48,5 +48,21 @@ internal static RemoteDeviceAdapterListRequest DeserializeRemoteDeviceAdapterLis } return new RemoteDeviceAdapterListRequest(methodName, apiVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RemoteDeviceAdapterListRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteDeviceAdapterListRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterProperties.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterProperties.Serialization.cs index ebe5351fc0bb2..7e566c04c64c2 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterProperties.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterProperties.Serialization.cs @@ -56,5 +56,21 @@ internal static RemoteDeviceAdapterProperties DeserializeRemoteDeviceAdapterProp } return new RemoteDeviceAdapterProperties(description, target, iotHubDeviceConnection); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoteDeviceAdapterProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteDeviceAdapterProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterSetRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterSetRequest.Serialization.cs index a754080c8f43f..ec34cf572d968 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterSetRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterSetRequest.Serialization.cs @@ -56,5 +56,21 @@ internal static RemoteDeviceAdapterSetRequest DeserializeRemoteDeviceAdapterSetR } return new RemoteDeviceAdapterSetRequest(methodName, apiVersion, remoteDeviceAdapter); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RemoteDeviceAdapterSetRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteDeviceAdapterSetRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterSetRequestBody.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterSetRequestBody.Serialization.cs index 6f91f2685632f..0ebf01c7f9099 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterSetRequestBody.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterSetRequestBody.Serialization.cs @@ -86,5 +86,21 @@ internal static RemoteDeviceAdapterSetRequestBody DeserializeRemoteDeviceAdapter } return new RemoteDeviceAdapterSetRequestBody(methodName, apiVersion, name, systemData, properties); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RemoteDeviceAdapterSetRequestBody FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteDeviceAdapterSetRequestBody(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterTarget.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterTarget.Serialization.cs index 8ac739714662e..1431c36c94f7d 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterTarget.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RemoteDeviceAdapterTarget.Serialization.cs @@ -37,5 +37,21 @@ internal static RemoteDeviceAdapterTarget DeserializeRemoteDeviceAdapterTarget(J } return new RemoteDeviceAdapterTarget(host); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoteDeviceAdapterTarget FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRemoteDeviceAdapterTarget(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RtspSource.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RtspSource.Serialization.cs index a73b30dfc86e6..48a92775f605b 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RtspSource.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/RtspSource.Serialization.cs @@ -68,5 +68,21 @@ internal static RtspSource DeserializeRtspSource(JsonElement element) } return new RtspSource(type, name, transport, endpoint); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RtspSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeRtspSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SamplingOptions.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SamplingOptions.Serialization.cs index c56d331024d03..5262415ad1441 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SamplingOptions.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SamplingOptions.Serialization.cs @@ -51,5 +51,21 @@ internal static SamplingOptions DeserializeSamplingOptions(JsonElement element) } return new SamplingOptions(skipSamplesWithoutAnnotation, maximumSamplesPerSecond); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SamplingOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSamplingOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SignalGateProcessor.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SignalGateProcessor.Serialization.cs index 325b59a4d8e6c..12288ce58a515 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SignalGateProcessor.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SignalGateProcessor.Serialization.cs @@ -115,5 +115,21 @@ internal static SignalGateProcessor DeserializeSignalGateProcessor(JsonElement e minimumActivationTime, maximumActivationTime); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SignalGateProcessor FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSignalGateProcessor(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SinkNodeBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SinkNodeBase.Serialization.cs index 7d48e71809fe1..a2bc85a466bfc 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SinkNodeBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SinkNodeBase.Serialization.cs @@ -46,5 +46,21 @@ internal static SinkNodeBase DeserializeSinkNodeBase(JsonElement element) } return UnknownSinkNodeBase.DeserializeUnknownSinkNodeBase(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SinkNodeBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSinkNodeBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SourceNodeBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SourceNodeBase.Serialization.cs index 4ffcea3107c1a..f0dd461b35319 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SourceNodeBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SourceNodeBase.Serialization.cs @@ -38,5 +38,21 @@ internal static SourceNodeBase DeserializeSourceNodeBase(JsonElement element) } return UnknownSourceNodeBase.DeserializeUnknownSourceNodeBase(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SourceNodeBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSourceNodeBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisCustomOperation.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisCustomOperation.Serialization.cs index 525c6028aa3a4..88a875ee0fce8 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisCustomOperation.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisCustomOperation.Serialization.cs @@ -45,5 +45,21 @@ internal static SpatialAnalysisCustomOperation DeserializeSpatialAnalysisCustomO } return new SpatialAnalysisCustomOperation(type, extensionConfiguration); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisCustomOperation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisCustomOperation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisOperationBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisOperationBase.Serialization.cs index 91e195b53ac62..bed7d4950f208 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisOperationBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisOperationBase.Serialization.cs @@ -40,5 +40,21 @@ internal static SpatialAnalysisOperationBase DeserializeSpatialAnalysisOperation } return UnknownSpatialAnalysisOperationBase.DeserializeUnknownSpatialAnalysisOperationBase(element); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SpatialAnalysisOperationBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisOperationBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisOperationEventBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisOperationEventBase.Serialization.cs index a11b4b5d9e265..7900d9ba21840 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisOperationEventBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisOperationEventBase.Serialization.cs @@ -55,5 +55,21 @@ internal static SpatialAnalysisOperationEventBase DeserializeSpatialAnalysisOper } return new SpatialAnalysisOperationEventBase(threshold, focus); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SpatialAnalysisOperationEventBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisOperationEventBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountEvent.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountEvent.Serialization.cs index d4329a2b8c5d4..26c096ddd69aa 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountEvent.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountEvent.Serialization.cs @@ -81,5 +81,21 @@ internal static SpatialAnalysisPersonCountEvent DeserializeSpatialAnalysisPerson } return new SpatialAnalysisPersonCountEvent(threshold, focus, trigger, outputFrequency); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisPersonCountEvent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonCountEvent(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountOperation.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountOperation.Serialization.cs index f4f9d79d7f85e..39fe18fe2c318 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountOperation.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountOperation.Serialization.cs @@ -142,5 +142,21 @@ internal static SpatialAnalysisPersonCountOperation DeserializeSpatialAnalysisPe enableFaceMaskClassifier, zones); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisPersonCountOperation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonCountOperation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountZoneEvents.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountZoneEvents.Serialization.cs index 5b4b174f5b255..dfe2774b7a315 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountZoneEvents.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonCountZoneEvents.Serialization.cs @@ -63,5 +63,21 @@ internal static SpatialAnalysisPersonCountZoneEvents DeserializeSpatialAnalysisP } return new SpatialAnalysisPersonCountZoneEvents(zone, events ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SpatialAnalysisPersonCountZoneEvents FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonCountZoneEvents(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceEvent.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceEvent.Serialization.cs index 6faa583042bfe..cd827bf141380 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceEvent.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceEvent.Serialization.cs @@ -109,5 +109,21 @@ internal static SpatialAnalysisPersonDistanceEvent DeserializeSpatialAnalysisPer minimumDistanceThreshold, maximumDistanceThreshold); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisPersonDistanceEvent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonDistanceEvent(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceOperation.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceOperation.Serialization.cs index 3db8c2a3b7bb5..a22e12a80a193 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceOperation.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceOperation.Serialization.cs @@ -142,5 +142,21 @@ internal static SpatialAnalysisPersonDistanceOperation DeserializeSpatialAnalysi enableFaceMaskClassifier, zones); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisPersonDistanceOperation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonDistanceOperation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceZoneEvents.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceZoneEvents.Serialization.cs index aada10b9f05f6..ac0f98c39b7f6 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceZoneEvents.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonDistanceZoneEvents.Serialization.cs @@ -63,5 +63,21 @@ internal static SpatialAnalysisPersonDistanceZoneEvents DeserializeSpatialAnalys } return new SpatialAnalysisPersonDistanceZoneEvents(zone, events ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SpatialAnalysisPersonDistanceZoneEvents FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonDistanceZoneEvents(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingEvent.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingEvent.Serialization.cs index bee59a7c4c54d..e737415502039 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingEvent.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingEvent.Serialization.cs @@ -55,5 +55,21 @@ internal static SpatialAnalysisPersonLineCrossingEvent DeserializeSpatialAnalysi } return new SpatialAnalysisPersonLineCrossingEvent(threshold, focus); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisPersonLineCrossingEvent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonLineCrossingEvent(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingLineEvents.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingLineEvents.Serialization.cs index 9a8cb1601fd97..0fcf9a2655fcc 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingLineEvents.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingLineEvents.Serialization.cs @@ -63,5 +63,21 @@ internal static SpatialAnalysisPersonLineCrossingLineEvents DeserializeSpatialAn } return new SpatialAnalysisPersonLineCrossingLineEvents(line, events ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SpatialAnalysisPersonLineCrossingLineEvents FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonLineCrossingLineEvents(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingOperation.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingOperation.Serialization.cs index 3e6578093cb32..281ff9037e981 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingOperation.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonLineCrossingOperation.Serialization.cs @@ -142,5 +142,21 @@ internal static SpatialAnalysisPersonLineCrossingOperation DeserializeSpatialAna enableFaceMaskClassifier, lines); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisPersonLineCrossingOperation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonLineCrossingOperation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingEvent.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingEvent.Serialization.cs index 2c5ceab5a5623..0b648462e3223 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingEvent.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingEvent.Serialization.cs @@ -70,5 +70,21 @@ internal static SpatialAnalysisPersonZoneCrossingEvent DeserializeSpatialAnalysi } return new SpatialAnalysisPersonZoneCrossingEvent(threshold, focus, eventType); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisPersonZoneCrossingEvent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonZoneCrossingEvent(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingOperation.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingOperation.Serialization.cs index bcea86078c3ee..a0c47aef48d1e 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingOperation.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingOperation.Serialization.cs @@ -142,5 +142,21 @@ internal static SpatialAnalysisPersonZoneCrossingOperation DeserializeSpatialAna enableFaceMaskClassifier, zones); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisPersonZoneCrossingOperation FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonZoneCrossingOperation(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingZoneEvents.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingZoneEvents.Serialization.cs index 45288df8c3c31..1a9d93773b1cc 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingZoneEvents.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisPersonZoneCrossingZoneEvents.Serialization.cs @@ -63,5 +63,21 @@ internal static SpatialAnalysisPersonZoneCrossingZoneEvents DeserializeSpatialAn } return new SpatialAnalysisPersonZoneCrossingZoneEvents(zone, events ?? new ChangeTrackingList()); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SpatialAnalysisPersonZoneCrossingZoneEvents FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisPersonZoneCrossingZoneEvents(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisTypedOperationBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisTypedOperationBase.Serialization.cs index 604b4ff2d9617..8aea17c524a14 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisTypedOperationBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SpatialAnalysisTypedOperationBase.Serialization.cs @@ -132,5 +132,21 @@ internal static SpatialAnalysisTypedOperationBase DeserializeSpatialAnalysisType trackerNodeConfiguration, enableFaceMaskClassifier); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SpatialAnalysisTypedOperationBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSpatialAnalysisTypedOperationBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SymmetricKeyCredentials.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SymmetricKeyCredentials.Serialization.cs index 3314c4f2f48f2..da6a345d06adb 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SymmetricKeyCredentials.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SymmetricKeyCredentials.Serialization.cs @@ -45,5 +45,21 @@ internal static SymmetricKeyCredentials DeserializeSymmetricKeyCredentials(JsonE } return new SymmetricKeyCredentials(type, key); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new SymmetricKeyCredentials FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSymmetricKeyCredentials(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SystemData.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SystemData.Serialization.cs index e1542cd28fcf0..624bda124d6af 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SystemData.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/SystemData.Serialization.cs @@ -60,5 +60,21 @@ internal static SystemData DeserializeSystemData(JsonElement element) } return new SystemData(createdAt, lastModifiedAt); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SystemData FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeSystemData(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/TlsEndpoint.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/TlsEndpoint.Serialization.cs index ba4c0ce024b4c..fb75e5bf2aed3 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/TlsEndpoint.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/TlsEndpoint.Serialization.cs @@ -90,5 +90,21 @@ internal static TlsEndpoint DeserializeTlsEndpoint(JsonElement element) } return new TlsEndpoint(type, credentials, url, trustedCertificates, validationOptions); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new TlsEndpoint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTlsEndpoint(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/TlsValidationOptions.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/TlsValidationOptions.Serialization.cs index ad0b5e5ea8346..690752d398c59 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/TlsValidationOptions.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/TlsValidationOptions.Serialization.cs @@ -51,5 +51,21 @@ internal static TlsValidationOptions DeserializeTlsValidationOptions(JsonElement } return new TlsValidationOptions(ignoreHostname, ignoreSignature); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static TlsValidationOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeTlsValidationOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownCertificateSource.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownCertificateSource.Serialization.cs index 612d6bfb51522..40123b18d9516 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownCertificateSource.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownCertificateSource.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownCertificateSource DeserializeUnknownCertificateSource(Jso } return new UnknownCertificateSource(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownCertificateSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownCertificateSource(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownCredentialsBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownCredentialsBase.Serialization.cs index 39ed02bd21db0..a888f1eb77507 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownCredentialsBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownCredentialsBase.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownCredentialsBase DeserializeUnknownCredentialsBase(JsonEle } return new UnknownCredentialsBase(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownCredentialsBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownCredentialsBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownEndpointBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownEndpointBase.Serialization.cs index 43b70f8d3e5c1..2ea16b0ee7136 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownEndpointBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownEndpointBase.Serialization.cs @@ -60,5 +60,21 @@ internal static UnknownEndpointBase DeserializeUnknownEndpointBase(JsonElement e } return new UnknownEndpointBase(type, credentials, url); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownEndpointBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownEndpointBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownImageFormatProperties.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownImageFormatProperties.Serialization.cs index 468ea92d03fa7..004c683190781 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownImageFormatProperties.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownImageFormatProperties.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownImageFormatProperties DeserializeUnknownImageFormatProper } return new UnknownImageFormatProperties(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownImageFormatProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownImageFormatProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownMethodRequest.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownMethodRequest.Serialization.cs index 0fd7da30f70c5..6613a1d2f5345 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownMethodRequest.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownMethodRequest.Serialization.cs @@ -48,5 +48,21 @@ internal static UnknownMethodRequest DeserializeUnknownMethodRequest(JsonElement } return new UnknownMethodRequest(methodName, apiVersion); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownMethodRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownMethodRequest(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownNamedLineBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownNamedLineBase.Serialization.cs index 2f4f3c9eb315a..2ce6da85812c6 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownNamedLineBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownNamedLineBase.Serialization.cs @@ -45,5 +45,21 @@ internal static UnknownNamedLineBase DeserializeUnknownNamedLineBase(JsonElement } return new UnknownNamedLineBase(type, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownNamedLineBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownNamedLineBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownNamedPolygonBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownNamedPolygonBase.Serialization.cs index 834d7d663aa5f..b5767f664db05 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownNamedPolygonBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownNamedPolygonBase.Serialization.cs @@ -45,5 +45,21 @@ internal static UnknownNamedPolygonBase DeserializeUnknownNamedPolygonBase(JsonE } return new UnknownNamedPolygonBase(type, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownNamedPolygonBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownNamedPolygonBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownProcessorNodeBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownProcessorNodeBase.Serialization.cs index 2905d3e83ea81..2d085824a163d 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownProcessorNodeBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownProcessorNodeBase.Serialization.cs @@ -64,5 +64,21 @@ internal static UnknownProcessorNodeBase DeserializeUnknownProcessorNodeBase(Jso } return new UnknownProcessorNodeBase(type, name, inputs); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownProcessorNodeBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownProcessorNodeBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSinkNodeBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSinkNodeBase.Serialization.cs index 1c3f12de80104..42c0390d19a6a 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSinkNodeBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSinkNodeBase.Serialization.cs @@ -64,5 +64,21 @@ internal static UnknownSinkNodeBase DeserializeUnknownSinkNodeBase(JsonElement e } return new UnknownSinkNodeBase(type, name, inputs); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownSinkNodeBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownSinkNodeBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSourceNodeBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSourceNodeBase.Serialization.cs index 04755468f8e23..9e26539229fd2 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSourceNodeBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSourceNodeBase.Serialization.cs @@ -45,5 +45,21 @@ internal static UnknownSourceNodeBase DeserializeUnknownSourceNodeBase(JsonEleme } return new UnknownSourceNodeBase(type, name); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownSourceNodeBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownSourceNodeBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSpatialAnalysisOperationBase.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSpatialAnalysisOperationBase.Serialization.cs index f15b81d36c331..cba4887b0513c 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSpatialAnalysisOperationBase.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnknownSpatialAnalysisOperationBase.Serialization.cs @@ -37,5 +37,21 @@ internal static UnknownSpatialAnalysisOperationBase DeserializeUnknownSpatialAna } return new UnknownSpatialAnalysisOperationBase(type); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownSpatialAnalysisOperationBase FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnknownSpatialAnalysisOperationBase(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnsecuredEndpoint.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnsecuredEndpoint.Serialization.cs index 1b819399f4be7..0e94dbb0e909a 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnsecuredEndpoint.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UnsecuredEndpoint.Serialization.cs @@ -60,5 +60,21 @@ internal static UnsecuredEndpoint DeserializeUnsecuredEndpoint(JsonElement eleme } return new UnsecuredEndpoint(type, credentials, url); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnsecuredEndpoint FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUnsecuredEndpoint(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UsernamePasswordCredentials.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UsernamePasswordCredentials.Serialization.cs index e9e9990459d5b..9680cd7e68d01 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UsernamePasswordCredentials.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/UsernamePasswordCredentials.Serialization.cs @@ -53,5 +53,21 @@ internal static UsernamePasswordCredentials DeserializeUsernamePasswordCredentia } return new UsernamePasswordCredentials(type, username, password); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UsernamePasswordCredentials FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeUsernamePasswordCredentials(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoCreationProperties.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoCreationProperties.Serialization.cs index 8c7b04d0c510c..d7db25c964a2b 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoCreationProperties.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoCreationProperties.Serialization.cs @@ -73,5 +73,21 @@ internal static VideoCreationProperties DeserializeVideoCreationProperties(JsonE } return new VideoCreationProperties(title, description, segmentLength, retentionPeriod); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VideoCreationProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVideoCreationProperties(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoEncoderConfiguration.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoEncoderConfiguration.Serialization.cs index 02cc99446279d..79fb45bc1ac13 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoEncoderConfiguration.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoEncoderConfiguration.Serialization.cs @@ -125,5 +125,21 @@ internal static VideoEncoderConfiguration DeserializeVideoEncoderConfiguration(J h264, mpeg4); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VideoEncoderConfiguration FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVideoEncoderConfiguration(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoPublishingOptions.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoPublishingOptions.Serialization.cs index efdea85307635..6d426f118282f 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoPublishingOptions.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoPublishingOptions.Serialization.cs @@ -40,5 +40,21 @@ internal static VideoPublishingOptions DeserializeVideoPublishingOptions(JsonEle } return new VideoPublishingOptions(enableVideoPreviewImage); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VideoPublishingOptions FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVideoPublishingOptions(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoResolution.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoResolution.Serialization.cs index f6cf90d0b302f..7b87b556c1319 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoResolution.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoResolution.Serialization.cs @@ -59,5 +59,21 @@ internal static VideoResolution DeserializeVideoResolution(JsonElement element) } return new VideoResolution(width, height); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static VideoResolution FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVideoResolution(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } } diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoSink.Serialization.cs b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoSink.Serialization.cs index e3a3b7c503282..107d62292ddba 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoSink.Serialization.cs +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/src/Generated/Models/VideoSink.Serialization.cs @@ -126,5 +126,21 @@ internal static VideoSink DeserializeVideoSink(JsonElement element) localMediaCachePath, localMediaCacheMaximumSizeMiB); } + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new VideoSink FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content); + return DeserializeVideoSink(document.RootElement); + } + + /// Convert into a Utf8JsonRequestContent. + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this); + return content; + } } }