diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 13015e6a14b00..90ae54c437b8f 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -354,7 +354,7 @@ com.azure.resourcemanager:azure-resourcemanager-mariadb;1.0.0-beta.3;1.0.0-beta. com.azure.resourcemanager:azure-resourcemanager-servicefabric;1.0.0-beta.5;1.0.0-beta.6 com.azure.resourcemanager:azure-resourcemanager-peering;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-policyinsights;1.0.0-beta.4;1.0.0-beta.5 -com.azure.resourcemanager:azure-resourcemanager-support;1.0.0;1.1.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-support;1.0.0;1.1.0 com.azure.resourcemanager:azure-resourcemanager-subscription;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-powerbidedicated;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-storageimportexport;1.0.0-beta.3;1.0.0-beta.4 diff --git a/sdk/support/azure-resourcemanager-support/CHANGELOG.md b/sdk/support/azure-resourcemanager-support/CHANGELOG.md index 32478dfa4452d..185c8014129cd 100644 --- a/sdk/support/azure-resourcemanager-support/CHANGELOG.md +++ b/sdk/support/azure-resourcemanager-support/CHANGELOG.md @@ -1,14 +1,21 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0 (2024-12-19) -### Features Added +- Azure Resource Manager support client library for Java. This package contains Microsoft Azure SDK for support Management SDK. Microsoft Azure Support Resource Provider. Package tag package-2024-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### Serialization/Deserialization change + +- `Jackson` is removed from dependency and no longer supported. + +##### Migration Guide -### Other Changes +If you are using `Jackson`/`ObjectMapper` for manual serialization/deserialization, configure your `ObjectMapper` for backward compatibility: +```java +objectMapper.registerModule(com.azure.core.serializer.json.jackson.JacksonJsonProvider.getJsonSerializableDatabindModule()); +``` ## 1.0.0 (2024-04-23) diff --git a/sdk/support/azure-resourcemanager-support/README.md b/sdk/support/azure-resourcemanager-support/README.md index a61658cd84bb9..da8ed713e929e 100644 --- a/sdk/support/azure-resourcemanager-support/README.md +++ b/sdk/support/azure-resourcemanager-support/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-support - 1.0.0 + 1.1.0 ``` [//]: # ({x-version-update-end}) @@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen ### Authentication -By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables. +Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package. -- `AZURE_CLIENT_ID` for Azure client ID. -- `AZURE_TENANT_ID` for Azure tenant ID. -- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. +Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. - -With above configuration, `azure` client can be authenticated using the following code: +Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -97,6 +93,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md diff --git a/sdk/support/azure-resourcemanager-support/SAMPLE.md b/sdk/support/azure-resourcemanager-support/SAMPLE.md index 04ce4ddb95890..c7500563949d1 100644 --- a/sdk/support/azure-resourcemanager-support/SAMPLE.md +++ b/sdk/support/azure-resourcemanager-support/SAMPLE.md @@ -86,7 +86,8 @@ */ public final class ChatTranscriptsGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetchatTranscriptDetailsForSubscriptionSupportTicket.json */ /** * Sample code: Get chat transcript details for a subscription support ticket. @@ -109,7 +110,8 @@ public final class ChatTranscriptsGetSamples { */ public final class ChatTranscriptsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListChatTranscriptsForSubscriptionSupportTicket.json */ /** * Sample code: List chat transcripts for a subscription support ticket. @@ -131,7 +133,8 @@ public final class ChatTranscriptsListSamples { */ public final class ChatTranscriptsNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetchatTranscriptDetailsForSupportTicket.json */ /** * Sample code: Get chat transcript details for a subscription support ticket. @@ -154,7 +157,8 @@ public final class ChatTranscriptsNoSubscriptionGetSamples { */ public final class ChatTranscriptsNoSubscriptionListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListChatTranscriptsForSupportTicket.json */ /** * Sample code: List chat transcripts for a no-subscription support ticket. @@ -179,7 +183,8 @@ import com.azure.resourcemanager.support.models.Type; */ public final class CommunicationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForSupportTicketCommunication.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CheckNameAvailabilityForSupportTicketCommunication.json */ /** * Sample code: Checks whether name is available for Communication resource for a subscription support ticket. @@ -204,7 +209,8 @@ public final class CommunicationsCheckNameAvailabilitySamples { */ public final class CommunicationsCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSupportTicketCommunication.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSupportTicketCommunication.json */ /** * Sample code: AddCommunicationToSubscriptionTicket. @@ -231,7 +237,8 @@ public final class CommunicationsCreateSamples { */ public final class CommunicationsGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetCommunicationDetailsForSubscriptionSupportTicket.json */ /** * Sample code: Get communication details for a subscription support ticket. @@ -253,7 +260,8 @@ public final class CommunicationsGetSamples { */ public final class CommunicationsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListCommunicationsForSubscriptionSupportTicket.json */ /** * Sample code: List communications for a subscription support ticket. @@ -266,7 +274,8 @@ public final class CommunicationsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListWebCommunicationsForSubscriptionSupportTicket.json */ /** * Sample code: List web communications for a subscription support ticket. @@ -280,7 +289,8 @@ public final class CommunicationsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSubscriptionSupportTicketCreatedOnOrAfter.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListWebCommunicationsForSubscriptionSupportTicketCreatedOnOrAfter.json */ /** * Sample code: List web communication created on or after a specific date for a subscription support ticket. @@ -307,7 +317,8 @@ import com.azure.resourcemanager.support.models.Type; */ public final class CommunicationsNoSubscriptionCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json */ /** * Sample code: Checks whether name is available for Communication resource. @@ -334,7 +345,8 @@ import com.azure.resourcemanager.support.fluent.models.CommunicationDetailsInner */ public final class CommunicationsNoSubscriptionCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateNoSubscriptionSupportTicketCommunication.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateNoSubscriptionSupportTicketCommunication.json */ /** * Sample code: AddCommunicationToNoSubscriptionTicket. @@ -361,7 +373,8 @@ public final class CommunicationsNoSubscriptionCreateSamples { */ public final class CommunicationsNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetCommunicationDetailsForSupportTicket.json */ /** * Sample code: Get communication details for a no-subscription support ticket. @@ -384,7 +397,8 @@ public final class CommunicationsNoSubscriptionGetSamples { */ public final class CommunicationsNoSubscriptionListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListCommunicationsForSupportTicket.json */ /** * Sample code: List communications for a no-subscription support ticket. @@ -397,7 +411,8 @@ public final class CommunicationsNoSubscriptionListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json */ /** * Sample code: List web communication created on or after a specific date for a no-subscription support ticket. @@ -412,7 +427,8 @@ public final class CommunicationsNoSubscriptionListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListWebCommunicationsForSupportTicket.json */ /** * Sample code: List web communications for a no-subscription support ticket. @@ -435,7 +451,8 @@ public final class CommunicationsNoSubscriptionListSamples { */ public final class FileWorkspacesCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspaceForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateFileWorkspaceForSubscription.json */ /** * Sample code: Create a file workspace for a subscription. @@ -456,7 +473,8 @@ public final class FileWorkspacesCreateSamples { */ public final class FileWorkspacesGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetailsForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetFileWorkspaceDetailsForSubscription.json */ /** * Sample code: Get details of a subscription file workspace. @@ -478,7 +496,8 @@ public final class FileWorkspacesGetSamples { */ public final class FileWorkspacesNoSubscriptionCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspace.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspace.json */ /** * Sample code: Create a file workspace. @@ -499,7 +518,8 @@ public final class FileWorkspacesNoSubscriptionCreateSamples { */ public final class FileWorkspacesNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetails.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetails.json */ /** * Sample code: Get details of a file workspace. @@ -520,7 +540,9 @@ public final class FileWorkspacesNoSubscriptionGetSamples { */ public final class FilesCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileForSubscription.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileForSubscription. + * json */ /** * Sample code: Create a file under a subscription workspace. @@ -548,7 +570,9 @@ public final class FilesCreateSamples { */ public final class FilesGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetailsForSubscription.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetailsForSubscription + * .json */ /** * Sample code: Get details of a subscription file. @@ -569,7 +593,8 @@ public final class FilesGetSamples { */ public final class FilesListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesForSubscriptionUnderFileWorkspace.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListFilesForSubscriptionUnderFileWorkspace.json */ /** * Sample code: List files under a workspace for a subscription. @@ -593,7 +618,9 @@ import com.azure.resourcemanager.support.models.UploadFile; */ public final class FilesUploadSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFileForSubscription.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFileForSubscription. + * json */ /** * Sample code: UploadFileForSubscription. @@ -619,7 +646,8 @@ import com.azure.resourcemanager.support.fluent.models.FileDetailsInner; */ public final class FilesNoSubscriptionCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFile.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFile.json */ /** * Sample code: Create a file workspace. @@ -643,7 +671,8 @@ public final class FilesNoSubscriptionCreateSamples { */ public final class FilesNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetails.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetails.json */ /** * Sample code: Get details of a subscription file. @@ -664,7 +693,9 @@ public final class FilesNoSubscriptionGetSamples { */ public final class FilesNoSubscriptionListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesUnderFileWorkspace.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesUnderFileWorkspace. + * json */ /** * Sample code: List files under a workspace. @@ -687,7 +718,8 @@ import com.azure.resourcemanager.support.models.UploadFile; */ public final class FilesNoSubscriptionUploadSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFile.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFile.json */ /** * Sample code: UploadFile. @@ -711,7 +743,8 @@ public final class FilesNoSubscriptionUploadSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListOperations.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListOperations.json */ /** * Sample code: Get all operations. @@ -732,7 +765,8 @@ public final class OperationsListSamples { */ public final class ProblemClassificationsGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetProblemClassification.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetProblemClassification.json */ /** * Sample code: Gets details of problemClassification for Azure service. @@ -755,7 +789,9 @@ public final class ProblemClassificationsGetSamples { */ public final class ProblemClassificationsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListProblemClassifications.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListProblemClassifications. + * json */ /** * Sample code: Gets list of problemClassifications for a service for which a support ticket can be created. @@ -777,7 +813,8 @@ public final class ProblemClassificationsListSamples { */ public final class ServicesGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetService.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetService.json */ /** * Sample code: Gets details of the Azure service. @@ -798,7 +835,8 @@ public final class ServicesGetSamples { */ public final class ServicesListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListServices.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListServices.json */ /** * Sample code: Gets list of services for which a support ticket can be created. @@ -823,7 +861,8 @@ import com.azure.resourcemanager.support.models.Type; */ public final class SupportTicketsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityWithSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CheckNameAvailabilityWithSubscription.json */ /** * Sample code: Checks whether name is available for a subscription support ticket resource. @@ -858,7 +897,8 @@ import java.util.Arrays; */ public final class SupportTicketsCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatawarehouseQuotaTicketForDTUs.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlDatawarehouseQuotaTicketForDTUs.json */ /** * Sample code: Create a ticket to request Quota increase for DTUs for Azure Synapse Analytics. @@ -893,7 +933,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json */ /** * Sample code: Create a ticket to request Quota increase for Active Jobs and Job Schedules for a Batch account. @@ -928,7 +969,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateMachineLearningQuotaTicketForLowPriorityCores.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateMachineLearningQuotaTicketForLowPriorityCores.json */ /** * Sample code: Create a ticket to request Quota increase for Low-priority cores for Machine Learning service. @@ -963,7 +1005,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSubscription.json */ /** * Sample code: Create a ticket to request Quota increase for Batch accounts for a subscription. @@ -998,7 +1041,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatabaseQuotaTicketForDTUs.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlDatabaseQuotaTicketForDTUs.json */ /** * Sample code: Create a ticket to request Quota increase for DTUs for SQL Database. @@ -1033,7 +1077,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateGenericQuotaTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateGenericQuotaTicket.json */ /** * Sample code: Create a ticket to request Quota increase for services that do not require additional details in the @@ -1064,7 +1109,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json */ /** * Sample code: Create a ticket to request Quota increase for Low-priority cores for a Batch account. @@ -1099,7 +1145,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlManagedInstanceQuotaTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlManagedInstanceQuotaTicket.json */ /** * Sample code: Create a ticket to request Quota increase for Azure SQL managed instance. @@ -1137,7 +1184,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSubMgmtSupportTicketForSubscription.json */ /** * Sample code: Create a ticket for Subscription Management related issues for a subscription. @@ -1169,7 +1217,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateTechnicalSupportTicketForSubscription.json */ /** * Sample code: Create a ticket for Technical issue related to a specific resource for a subscription. @@ -1207,7 +1256,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForPools.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSpecificBatchAccountForPools.json */ /** * Sample code: Create a ticket to request Quota increase for Pools for a Batch account. @@ -1242,7 +1292,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json */ /** * Sample code: Create a ticket to request Quota increase for specific VM family cores for a Batch account. @@ -1278,7 +1329,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatabaseQuotaTicketForServers.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlDatabaseQuotaTicketForServers.json */ /** * Sample code: Create a ticket to request Quota increase for Servers for SQL Database. @@ -1313,7 +1365,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBillingSupportTicketForSubscription.json */ /** * Sample code: Create a ticket for Billing related issues. @@ -1344,7 +1397,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateMachineLearningQuotaTicketForDedicatedCores.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateMachineLearningQuotaTicketForDedicatedCores.json */ /** * Sample code: Create a ticket to request Quota increase for specific VM family cores for Machine Learning service. @@ -1379,7 +1433,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatawarehouseQuotaTicketForServers.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlDatawarehouseQuotaTicketForServers.json */ /** * Sample code: Create a ticket to request Quota increase for Servers for Azure Synapse Analytics. @@ -1414,7 +1469,8 @@ public final class SupportTicketsCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateCoresQuotaTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateCoresQuotaTicketForSubscription.json */ /** * Sample code: Create a ticket to request Quota increase for Compute VM Cores. @@ -1457,7 +1513,8 @@ public final class SupportTicketsCreateSamples { */ public final class SupportTicketsGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSubscriptionSupportTicketDetails.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetSubscriptionSupportTicketDetails.json */ /** * Sample code: Get details of a subscription ticket. @@ -1478,7 +1535,8 @@ public final class SupportTicketsGetSamples { */ public final class SupportTicketsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsServiceIdEqualsForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsServiceIdEqualsForSubscription.json */ /** * Sample code: List support tickets with a certain service id for a subscription. @@ -1491,7 +1549,8 @@ public final class SupportTicketsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json */ /** * Sample code: List support tickets created on or after a certain date and in open state for a subscription. @@ -1505,7 +1564,8 @@ public final class SupportTicketsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInUpdatingStateBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsInUpdatingStateBySubscription.json */ /** * Sample code: List support tickets in updating state for a subscription. @@ -1518,7 +1578,8 @@ public final class SupportTicketsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json */ /** * Sample code: List support tickets created on or after a certain date and in updating state for a subscription. @@ -1533,7 +1594,8 @@ public final class SupportTicketsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsProblemClassificationIdEqualsForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsProblemClassificationIdEqualsForSubscription.json */ /** * Sample code: List support tickets with a certain problem classification id for a subscription. @@ -1548,7 +1610,8 @@ public final class SupportTicketsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsBySubscription.json */ /** * Sample code: List support tickets for a subscription. @@ -1560,7 +1623,8 @@ public final class SupportTicketsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenStateBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsInOpenStateBySubscription.json */ /** * Sample code: List support tickets in open state for a subscription. @@ -1590,7 +1654,8 @@ import java.util.Arrays; */ public final class SupportTicketsUpdateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json */ /** * Sample code: Update advanced diagnostic consent of a subscription support ticket. @@ -1605,7 +1670,8 @@ public final class SupportTicketsUpdateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateSeverityOfSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateSeverityOfSupportTicketForSubscription.json */ /** * Sample code: Update severity of a subscription support ticket. @@ -1620,7 +1686,8 @@ public final class SupportTicketsUpdateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateStatusOfSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateStatusOfSupportTicketForSubscription.json */ /** * Sample code: Update status of a subscription support ticket. @@ -1635,7 +1702,8 @@ public final class SupportTicketsUpdateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateContactDetailsOfSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateContactDetailsOfSupportTicketForSubscription.json */ /** * Sample code: Update contact details of a subscription support ticket. @@ -1672,7 +1740,8 @@ import com.azure.resourcemanager.support.models.Type; */ public final class SupportTicketsNoSubscriptionCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailability.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailability.json */ /** * Sample code: Checks whether name is available for SupportTicket resource. @@ -1705,7 +1774,9 @@ import java.util.Arrays; */ public final class SupportTicketsNoSubscriptionCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicket. + * json */ /** * Sample code: Create a ticket for Billing related issues. @@ -1735,7 +1806,9 @@ public final class SupportTicketsNoSubscriptionCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicket. + * json */ /** * Sample code: Create a ticket for Subscription Management related issues. @@ -1766,7 +1839,9 @@ public final class SupportTicketsNoSubscriptionCreateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicket. + * json */ /** * Sample code: Create a ticket for Technical issue related to a specific resource. @@ -1810,7 +1885,8 @@ public final class SupportTicketsNoSubscriptionCreateSamples { */ public final class SupportTicketsNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSupportTicketDetails.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSupportTicketDetails.json */ /** * Sample code: Get details of a ticket. @@ -1831,7 +1907,8 @@ public final class SupportTicketsNoSubscriptionGetSamples { */ public final class SupportTicketsNoSubscriptionListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json */ /** * Sample code: List support tickets created on or after a certain date and in updating state. @@ -1846,7 +1923,9 @@ public final class SupportTicketsNoSubscriptionListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenState.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenState + * .json */ /** * Sample code: List support tickets in open state. @@ -1858,7 +1937,8 @@ public final class SupportTicketsNoSubscriptionListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTickets.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTickets.json */ /** * Sample code: List support tickets. @@ -1870,7 +1950,8 @@ public final class SupportTicketsNoSubscriptionListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInUpdatingState.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsInUpdatingState.json */ /** * Sample code: List support tickets in updating state. @@ -1882,7 +1963,8 @@ public final class SupportTicketsNoSubscriptionListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenState.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsCreatedOnOrAfterAndInOpenState.json */ /** * Sample code: List support tickets created on or after a certain date and in open state. @@ -1896,7 +1978,8 @@ public final class SupportTicketsNoSubscriptionListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsServiceIdEquals.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsServiceIdEquals.json */ /** * Sample code: List support tickets with a certain service id. @@ -1910,7 +1993,8 @@ public final class SupportTicketsNoSubscriptionListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsProblemClassificationIdEquals.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsProblemClassificationIdEquals.json */ /** * Sample code: List support tickets with a certain problem classification id. @@ -1942,7 +2026,8 @@ import java.util.Arrays; */ public final class SupportTicketsNoSubscriptionUpdateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateAdvancedDiagnosticConsentOfSupportTicket.json */ /** * Sample code: Update advanced diagnostic consent of a support ticket. @@ -1957,7 +2042,9 @@ public final class SupportTicketsNoSubscriptionUpdateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateSeverityOfSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateSeverityOfSupportTicket + * .json */ /** * Sample code: Update severity of a support ticket. @@ -1971,7 +2058,9 @@ public final class SupportTicketsNoSubscriptionUpdateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateStatusOfSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateStatusOfSupportTicket. + * json */ /** * Sample code: Update status of a support ticket. @@ -1985,7 +2074,8 @@ public final class SupportTicketsNoSubscriptionUpdateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateContactDetailsOfSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateContactDetailsOfSupportTicket.json */ /** * Sample code: Update contact details of a support ticket. diff --git a/sdk/support/azure-resourcemanager-support/pom.xml b/sdk/support/azure-resourcemanager-support/pom.xml index 17c8f4adba1d3..db1c189d17932 100644 --- a/sdk/support/azure-resourcemanager-support/pom.xml +++ b/sdk/support/azure-resourcemanager-support/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-support - 1.1.0-beta.1 + 1.1.0 jar Microsoft Azure SDK for support Management @@ -45,6 +45,7 @@ UTF-8 0 0 + false diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/SupportManager.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/SupportManager.java index 2380d78ea1ee7..747c853fe12ac 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/SupportManager.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/SupportManager.java @@ -11,15 +11,15 @@ import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.AddHeadersFromContextPolicy; -import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; @@ -28,10 +28,10 @@ import com.azure.resourcemanager.support.implementation.ChatTranscriptsNoSubscriptionsImpl; import com.azure.resourcemanager.support.implementation.CommunicationsImpl; import com.azure.resourcemanager.support.implementation.CommunicationsNoSubscriptionsImpl; -import com.azure.resourcemanager.support.implementation.FilesImpl; -import com.azure.resourcemanager.support.implementation.FilesNoSubscriptionsImpl; import com.azure.resourcemanager.support.implementation.FileWorkspacesImpl; import com.azure.resourcemanager.support.implementation.FileWorkspacesNoSubscriptionsImpl; +import com.azure.resourcemanager.support.implementation.FilesImpl; +import com.azure.resourcemanager.support.implementation.FilesNoSubscriptionsImpl; import com.azure.resourcemanager.support.implementation.MicrosoftSupportBuilder; import com.azure.resourcemanager.support.implementation.OperationsImpl; import com.azure.resourcemanager.support.implementation.ProblemClassificationsImpl; @@ -42,10 +42,10 @@ import com.azure.resourcemanager.support.models.ChatTranscriptsNoSubscriptions; import com.azure.resourcemanager.support.models.Communications; import com.azure.resourcemanager.support.models.CommunicationsNoSubscriptions; -import com.azure.resourcemanager.support.models.Files; -import com.azure.resourcemanager.support.models.FilesNoSubscriptions; import com.azure.resourcemanager.support.models.FileWorkspaces; import com.azure.resourcemanager.support.models.FileWorkspacesNoSubscriptions; +import com.azure.resourcemanager.support.models.Files; +import com.azure.resourcemanager.support.models.FilesNoSubscriptions; import com.azure.resourcemanager.support.models.Operations; import com.azure.resourcemanager.support.models.ProblemClassifications; import com.azure.resourcemanager.support.models.Services; @@ -253,7 +253,7 @@ public SupportManager authenticate(TokenCredential credential, AzureProfile prof .append("-") .append("com.azure.resourcemanager.support") .append("/") - .append("1.0.0"); + .append("1.1.0"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -286,7 +286,7 @@ public SupportManager authenticate(TokenCredential credential, AzureProfile prof HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); - policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); + policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies.addAll(this.policies.stream() .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .collect(Collectors.toList())); diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ChatTranscriptDetailsInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ChatTranscriptDetailsInner.java index 1c8827b18e240..3d48219009b98 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ChatTranscriptDetailsInner.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ChatTranscriptDetailsInner.java @@ -7,8 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.models.MessageProperties; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; @@ -20,15 +23,28 @@ public final class ChatTranscriptDetailsInner extends ProxyResource { /* * Properties of the resource. */ - @JsonProperty(value = "properties") private ChatTranscriptDetailsProperties innerProperties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + /** * Creates an instance of ChatTranscriptDetailsInner class. */ @@ -53,6 +69,36 @@ public SystemData systemData() { return this.systemData; } + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + /** * Get the messages property: List of chat transcript communication resources. * @@ -95,4 +141,50 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChatTranscriptDetailsInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChatTranscriptDetailsInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ChatTranscriptDetailsInner. + */ + public static ChatTranscriptDetailsInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChatTranscriptDetailsInner deserializedChatTranscriptDetailsInner = new ChatTranscriptDetailsInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedChatTranscriptDetailsInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedChatTranscriptDetailsInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedChatTranscriptDetailsInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedChatTranscriptDetailsInner.innerProperties + = ChatTranscriptDetailsProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedChatTranscriptDetailsInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedChatTranscriptDetailsInner; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ChatTranscriptDetailsProperties.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ChatTranscriptDetailsProperties.java index d9b8a0482b561..dece455fe257c 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ChatTranscriptDetailsProperties.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ChatTranscriptDetailsProperties.java @@ -5,8 +5,13 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.models.MessageProperties; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; @@ -14,17 +19,15 @@ * Describes the properties of a Chat Transcript Details resource. */ @Fluent -public final class ChatTranscriptDetailsProperties { +public final class ChatTranscriptDetailsProperties implements JsonSerializable { /* * List of chat transcript communication resources. */ - @JsonProperty(value = "messages") private List messages; /* * Time in UTC (ISO 8601 format) when the chat began. */ - @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime startTime; /** @@ -72,4 +75,45 @@ public void validate() { messages().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("messages", this.messages, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChatTranscriptDetailsProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChatTranscriptDetailsProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ChatTranscriptDetailsProperties. + */ + public static ChatTranscriptDetailsProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChatTranscriptDetailsProperties deserializedChatTranscriptDetailsProperties + = new ChatTranscriptDetailsProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("messages".equals(fieldName)) { + List messages = reader.readArray(reader1 -> MessageProperties.fromJson(reader1)); + deserializedChatTranscriptDetailsProperties.messages = messages; + } else if ("startTime".equals(fieldName)) { + deserializedChatTranscriptDetailsProperties.startTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedChatTranscriptDetailsProperties; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CheckNameAvailabilityOutputInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CheckNameAvailabilityOutputInner.java index 2ebf3588b8ea2..03732acb0dacf 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CheckNameAvailabilityOutputInner.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CheckNameAvailabilityOutputInner.java @@ -5,29 +5,30 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * Output of check name availability API. */ @Immutable -public final class CheckNameAvailabilityOutputInner { +public final class CheckNameAvailabilityOutputInner implements JsonSerializable { /* * Indicates whether the name is available. */ - @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY) private Boolean nameAvailable; /* * The reason why the name is not available. */ - @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY) private String reason; /* * The detailed error message describing why the name is not available. */ - @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; /** @@ -70,4 +71,45 @@ public String message() { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CheckNameAvailabilityOutputInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CheckNameAvailabilityOutputInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CheckNameAvailabilityOutputInner. + */ + public static CheckNameAvailabilityOutputInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CheckNameAvailabilityOutputInner deserializedCheckNameAvailabilityOutputInner + = new CheckNameAvailabilityOutputInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nameAvailable".equals(fieldName)) { + deserializedCheckNameAvailabilityOutputInner.nameAvailable + = reader.getNullable(JsonReader::getBoolean); + } else if ("reason".equals(fieldName)) { + deserializedCheckNameAvailabilityOutputInner.reason = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedCheckNameAvailabilityOutputInner.message = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCheckNameAvailabilityOutputInner; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CommunicationDetailsInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CommunicationDetailsInner.java index 231a773441097..9944f66694db2 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CommunicationDetailsInner.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CommunicationDetailsInner.java @@ -7,9 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.models.CommunicationDirection; import com.azure.resourcemanager.support.models.CommunicationType; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; /** @@ -20,9 +23,23 @@ public final class CommunicationDetailsInner extends ProxyResource { /* * Properties of the resource. */ - @JsonProperty(value = "properties", required = true) private CommunicationDetailsProperties innerProperties = new CommunicationDetailsProperties(); + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + /** * Creates an instance of CommunicationDetailsInner class. */ @@ -38,6 +55,36 @@ private CommunicationDetailsProperties innerProperties() { return this.innerProperties; } + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + /** * Get the communicationType property: Communication type. * @@ -150,4 +197,48 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(CommunicationDetailsInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CommunicationDetailsInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CommunicationDetailsInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CommunicationDetailsInner. + */ + public static CommunicationDetailsInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CommunicationDetailsInner deserializedCommunicationDetailsInner = new CommunicationDetailsInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedCommunicationDetailsInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedCommunicationDetailsInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedCommunicationDetailsInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedCommunicationDetailsInner.innerProperties + = CommunicationDetailsProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCommunicationDetailsInner; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CommunicationDetailsProperties.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CommunicationDetailsProperties.java index 7c820948ea09b..2ca70acbc9025 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CommunicationDetailsProperties.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/CommunicationDetailsProperties.java @@ -5,51 +5,50 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.models.CommunicationDirection; import com.azure.resourcemanager.support.models.CommunicationType; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; /** * Describes the properties of a communication resource. */ @Fluent -public final class CommunicationDetailsProperties { +public final class CommunicationDetailsProperties implements JsonSerializable { /* * Communication type. */ - @JsonProperty(value = "communicationType", access = JsonProperty.Access.WRITE_ONLY) private CommunicationType communicationType; /* * Direction of communication. */ - @JsonProperty(value = "communicationDirection", access = JsonProperty.Access.WRITE_ONLY) private CommunicationDirection communicationDirection; /* * Email address of the sender. This property is required if called by a service principal. */ - @JsonProperty(value = "sender") private String sender; /* * Subject of the communication. */ - @JsonProperty(value = "subject", required = true) private String subject; /* * Body of the communication. */ - @JsonProperty(value = "body", required = true) private String body; /* * Time in UTC (ISO 8601 format) when the communication was created. */ - @JsonProperty(value = "createdDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime createdDate; /** @@ -164,4 +163,57 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(CommunicationDetailsProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("subject", this.subject); + jsonWriter.writeStringField("body", this.body); + jsonWriter.writeStringField("sender", this.sender); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CommunicationDetailsProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CommunicationDetailsProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CommunicationDetailsProperties. + */ + public static CommunicationDetailsProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CommunicationDetailsProperties deserializedCommunicationDetailsProperties + = new CommunicationDetailsProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("subject".equals(fieldName)) { + deserializedCommunicationDetailsProperties.subject = reader.getString(); + } else if ("body".equals(fieldName)) { + deserializedCommunicationDetailsProperties.body = reader.getString(); + } else if ("communicationType".equals(fieldName)) { + deserializedCommunicationDetailsProperties.communicationType + = CommunicationType.fromString(reader.getString()); + } else if ("communicationDirection".equals(fieldName)) { + deserializedCommunicationDetailsProperties.communicationDirection + = CommunicationDirection.fromString(reader.getString()); + } else if ("sender".equals(fieldName)) { + deserializedCommunicationDetailsProperties.sender = reader.getString(); + } else if ("createdDate".equals(fieldName)) { + deserializedCommunicationDetailsProperties.createdDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedCommunicationDetailsProperties; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileDetailsInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileDetailsInner.java index 17da441522511..906d890feb70c 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileDetailsInner.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileDetailsInner.java @@ -7,7 +7,10 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; /** @@ -18,15 +21,28 @@ public final class FileDetailsInner extends ProxyResource { /* * Properties of the resource */ - @JsonProperty(value = "properties") private FileDetailsProperties innerProperties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + /** * Creates an instance of FileDetailsInner class. */ @@ -51,6 +67,36 @@ public SystemData systemData() { return this.systemData; } + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + /** * Get the createdOn property: Time in UTC (ISO 8601 format) when file workspace was created. * @@ -143,4 +189,49 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileDetailsInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileDetailsInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FileDetailsInner. + */ + public static FileDetailsInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FileDetailsInner deserializedFileDetailsInner = new FileDetailsInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedFileDetailsInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedFileDetailsInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedFileDetailsInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedFileDetailsInner.innerProperties = FileDetailsProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedFileDetailsInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedFileDetailsInner; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileDetailsProperties.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileDetailsProperties.java index a7c163a257ee3..920065517c747 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileDetailsProperties.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileDetailsProperties.java @@ -5,36 +5,37 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; /** * Describes the properties of a file. */ @Fluent -public final class FileDetailsProperties { +public final class FileDetailsProperties implements JsonSerializable { /* * Time in UTC (ISO 8601 format) when file workspace was created. */ - @JsonProperty(value = "createdOn", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime createdOn; /* * Size of each chunk. The size of each chunk should be provided in bytes and must not exceed 2.5 megabytes (MB). */ - @JsonProperty(value = "chunkSize") private Integer chunkSize; /* * Size of the file to be uploaded. The file size must not exceed 5 MB and should be provided in bytes. */ - @JsonProperty(value = "fileSize") private Integer fileSize; /* * Number of chunks to be uploaded. The maximum number of allowed chunks is 2. */ - @JsonProperty(value = "numberOfChunks") private Integer numberOfChunks; /** @@ -123,4 +124,49 @@ public FileDetailsProperties withNumberOfChunks(Integer numberOfChunks) { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("chunkSize", this.chunkSize); + jsonWriter.writeNumberField("fileSize", this.fileSize); + jsonWriter.writeNumberField("numberOfChunks", this.numberOfChunks); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileDetailsProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileDetailsProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the FileDetailsProperties. + */ + public static FileDetailsProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FileDetailsProperties deserializedFileDetailsProperties = new FileDetailsProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("createdOn".equals(fieldName)) { + deserializedFileDetailsProperties.createdOn = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("chunkSize".equals(fieldName)) { + deserializedFileDetailsProperties.chunkSize = reader.getNullable(JsonReader::getInt); + } else if ("fileSize".equals(fieldName)) { + deserializedFileDetailsProperties.fileSize = reader.getNullable(JsonReader::getInt); + } else if ("numberOfChunks".equals(fieldName)) { + deserializedFileDetailsProperties.numberOfChunks = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedFileDetailsProperties; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileWorkspaceDetailsInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileWorkspaceDetailsInner.java index e799f5d18f7e8..e0178c321e063 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileWorkspaceDetailsInner.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileWorkspaceDetailsInner.java @@ -7,7 +7,10 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; /** @@ -18,15 +21,28 @@ public final class FileWorkspaceDetailsInner extends ProxyResource { /* * Properties of the resource */ - @JsonProperty(value = "properties") private FileWorkspaceDetailsProperties innerProperties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + /** * Creates an instance of FileWorkspaceDetailsInner class. */ @@ -51,6 +67,36 @@ public SystemData systemData() { return this.systemData; } + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + /** * Get the createdOn property: Time in UTC (ISO 8601 format) when file workspace was created. * @@ -79,4 +125,50 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileWorkspaceDetailsInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileWorkspaceDetailsInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the FileWorkspaceDetailsInner. + */ + public static FileWorkspaceDetailsInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FileWorkspaceDetailsInner deserializedFileWorkspaceDetailsInner = new FileWorkspaceDetailsInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedFileWorkspaceDetailsInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedFileWorkspaceDetailsInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedFileWorkspaceDetailsInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedFileWorkspaceDetailsInner.innerProperties + = FileWorkspaceDetailsProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedFileWorkspaceDetailsInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedFileWorkspaceDetailsInner; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileWorkspaceDetailsProperties.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileWorkspaceDetailsProperties.java index 4f2bd686ee29a..45f3fad585b5a 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileWorkspaceDetailsProperties.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/FileWorkspaceDetailsProperties.java @@ -5,24 +5,27 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; /** * Describes the properties of a file workspace. */ @Immutable -public final class FileWorkspaceDetailsProperties { +public final class FileWorkspaceDetailsProperties implements JsonSerializable { /* * Time in UTC (ISO 8601 format) when file workspace was created. */ - @JsonProperty(value = "createdOn", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime createdOn; /* * Time in UTC (ISO 8601 format) when file workspace is going to expire. */ - @JsonProperty(value = "expirationTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime expirationTime; /** @@ -56,4 +59,44 @@ public OffsetDateTime expirationTime() { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FileWorkspaceDetailsProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FileWorkspaceDetailsProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the FileWorkspaceDetailsProperties. + */ + public static FileWorkspaceDetailsProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FileWorkspaceDetailsProperties deserializedFileWorkspaceDetailsProperties + = new FileWorkspaceDetailsProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("createdOn".equals(fieldName)) { + deserializedFileWorkspaceDetailsProperties.createdOn = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("expirationTime".equals(fieldName)) { + deserializedFileWorkspaceDetailsProperties.expirationTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedFileWorkspaceDetailsProperties; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/OperationInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/OperationInner.java index eabf5a361619d..fa2fa9c1fef12 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/OperationInner.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/OperationInner.java @@ -5,24 +5,26 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.models.OperationDisplay; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; /** * The operation supported by Microsoft Support resource provider. */ @Fluent -public final class OperationInner { +public final class OperationInner implements JsonSerializable { /* * Operation name: {provider}/{resource}/{operation}. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The object that describes the operation. */ - @JsonProperty(value = "display") private OperationDisplay display; /** @@ -70,4 +72,42 @@ public void validate() { display().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("display", this.display); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationInner. + */ + public static OperationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationInner deserializedOperationInner = new OperationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedOperationInner.name = reader.getString(); + } else if ("display".equals(fieldName)) { + deserializedOperationInner.display = OperationDisplay.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationInner; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationInner.java index c3203115b43a0..1034e1aecac09 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationInner.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationInner.java @@ -5,37 +5,37 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.models.SecondaryConsentEnabled; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** * ProblemClassification resource object. */ @Fluent -public final class ProblemClassificationInner { +public final class ProblemClassificationInner implements JsonSerializable { /* * Id of the resource. */ - @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; /* * Name of the resource. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * Type of the resource 'Microsoft.Support/problemClassification'. */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; /* * Properties of the resource. */ - @JsonProperty(value = "properties") private ProblemClassificationProperties innerProperties; /** @@ -139,4 +139,47 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProblemClassificationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProblemClassificationInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ProblemClassificationInner. + */ + public static ProblemClassificationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProblemClassificationInner deserializedProblemClassificationInner = new ProblemClassificationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedProblemClassificationInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedProblemClassificationInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedProblemClassificationInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedProblemClassificationInner.innerProperties + = ProblemClassificationProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedProblemClassificationInner; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationProperties.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationProperties.java index 927aeaa0b4a89..5fa12d454096a 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationProperties.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationProperties.java @@ -5,25 +5,27 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.models.SecondaryConsentEnabled; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** * Details about a problem classification available for an Azure service. */ @Fluent -public final class ProblemClassificationProperties { +public final class ProblemClassificationProperties implements JsonSerializable { /* * Localized name of problem classification. */ - @JsonProperty(value = "displayName") private String displayName; /* * This property indicates whether secondary consent is present for problem classification */ - @JsonProperty(value = "secondaryConsentEnabled") private List secondaryConsentEnabled; /** @@ -85,4 +87,47 @@ public void validate() { secondaryConsentEnabled().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("displayName", this.displayName); + jsonWriter.writeArrayField("secondaryConsentEnabled", this.secondaryConsentEnabled, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProblemClassificationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProblemClassificationProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ProblemClassificationProperties. + */ + public static ProblemClassificationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProblemClassificationProperties deserializedProblemClassificationProperties + = new ProblemClassificationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("displayName".equals(fieldName)) { + deserializedProblemClassificationProperties.displayName = reader.getString(); + } else if ("secondaryConsentEnabled".equals(fieldName)) { + List secondaryConsentEnabled + = reader.readArray(reader1 -> SecondaryConsentEnabled.fromJson(reader1)); + deserializedProblemClassificationProperties.secondaryConsentEnabled = secondaryConsentEnabled; + } else { + reader.skipChildren(); + } + } + + return deserializedProblemClassificationProperties; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceInner.java index f42fa6de09bd7..ca538c0c4bf2d 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceInner.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceInner.java @@ -5,36 +5,36 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** * Object that represents a Service resource. */ @Fluent -public final class ServiceInner { +public final class ServiceInner implements JsonSerializable { /* * Id of the resource. */ - @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; /* * Name of the resource. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * Type of the resource 'Microsoft.Support/services'. */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; /* * Properties of the resource. */ - @JsonProperty(value = "properties") private ServiceProperties innerProperties; /** @@ -135,4 +135,46 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ServiceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ServiceInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ServiceInner. + */ + public static ServiceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ServiceInner deserializedServiceInner = new ServiceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedServiceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedServiceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedServiceInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedServiceInner.innerProperties = ServiceProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedServiceInner; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceProperties.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceProperties.java index 206ab7b20f04d..9bb8bed13003d 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceProperties.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceProperties.java @@ -5,24 +5,26 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** * Details about an Azure service available for support ticket creation. */ @Fluent -public final class ServiceProperties { +public final class ServiceProperties implements JsonSerializable { /* * Localized name of the Azure service. */ - @JsonProperty(value = "displayName") private String displayName; /* * ARM Resource types. */ - @JsonProperty(value = "resourceTypes") private List resourceTypes; /** @@ -78,4 +80,45 @@ public ServiceProperties withResourceTypes(List resourceTypes) { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("displayName", this.displayName); + jsonWriter.writeArrayField("resourceTypes", this.resourceTypes, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ServiceProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ServiceProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ServiceProperties. + */ + public static ServiceProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ServiceProperties deserializedServiceProperties = new ServiceProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("displayName".equals(fieldName)) { + deserializedServiceProperties.displayName = reader.getString(); + } else if ("resourceTypes".equals(fieldName)) { + List resourceTypes = reader.readArray(reader1 -> reader1.getString()); + deserializedServiceProperties.resourceTypes = resourceTypes; + } else { + reader.skipChildren(); + } + } + + return deserializedServiceProperties; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/SupportTicketDetailsInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/SupportTicketDetailsInner.java index 13ca838be138b..cd91d870a054a 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/SupportTicketDetailsInner.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/SupportTicketDetailsInner.java @@ -7,6 +7,9 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.models.Consent; import com.azure.resourcemanager.support.models.ContactProfile; import com.azure.resourcemanager.support.models.IsTemporaryTicket; @@ -16,7 +19,7 @@ import com.azure.resourcemanager.support.models.SeverityLevel; import com.azure.resourcemanager.support.models.SupportEngineer; import com.azure.resourcemanager.support.models.TechnicalTicketDetails; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; @@ -28,9 +31,23 @@ public final class SupportTicketDetailsInner extends ProxyResource { /* * Properties of the resource. */ - @JsonProperty(value = "properties", required = true) private SupportTicketDetailsProperties innerProperties = new SupportTicketDetailsProperties(); + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + /** * Creates an instance of SupportTicketDetailsInner class. */ @@ -46,6 +63,36 @@ private SupportTicketDetailsProperties innerProperties() { return this.innerProperties; } + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + /** * Get the supportTicketId property: System generated support ticket Id that is unique. * @@ -583,4 +630,48 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(SupportTicketDetailsInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SupportTicketDetailsInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SupportTicketDetailsInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SupportTicketDetailsInner. + */ + public static SupportTicketDetailsInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SupportTicketDetailsInner deserializedSupportTicketDetailsInner = new SupportTicketDetailsInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSupportTicketDetailsInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedSupportTicketDetailsInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSupportTicketDetailsInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedSupportTicketDetailsInner.innerProperties + = SupportTicketDetailsProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSupportTicketDetailsInner; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/SupportTicketDetailsProperties.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/SupportTicketDetailsProperties.java index 454157be16497..c7ce69f2e51a2 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/SupportTicketDetailsProperties.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/SupportTicketDetailsProperties.java @@ -5,7 +5,12 @@ package com.azure.resourcemanager.support.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.models.Consent; import com.azure.resourcemanager.support.models.ContactProfile; import com.azure.resourcemanager.support.models.IsTemporaryTicket; @@ -15,175 +20,152 @@ import com.azure.resourcemanager.support.models.SeverityLevel; import com.azure.resourcemanager.support.models.SupportEngineer; import com.azure.resourcemanager.support.models.TechnicalTicketDetails; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.List; /** * Describes the properties of a support ticket. */ @Fluent -public final class SupportTicketDetailsProperties { +public final class SupportTicketDetailsProperties implements JsonSerializable { /* * System generated support ticket Id that is unique. */ - @JsonProperty(value = "supportTicketId") private String supportTicketId; /* * Detailed description of the question or issue. */ - @JsonProperty(value = "description", required = true) private String description; /* - * Each Azure service has its own set of issue categories, also known as problem classification. This parameter is the unique Id for the type of problem you are experiencing. + * Each Azure service has its own set of issue categories, also known as problem classification. This parameter is + * the unique Id for the type of problem you are experiencing. */ - @JsonProperty(value = "problemClassificationId", required = true) private String problemClassificationId; /* * Localized name of problem classification. */ - @JsonProperty(value = "problemClassificationDisplayName", access = JsonProperty.Access.WRITE_ONLY) private String problemClassificationDisplayName; /* - * A value that indicates the urgency of the case, which in turn determines the response time according to the service level agreement of the technical support plan you have with Azure. Note: 'Highest critical impact', also known as the 'Emergency - Severe impact' level in the Azure portal is reserved only for our Premium customers. + * A value that indicates the urgency of the case, which in turn determines the response time according to the + * service level agreement of the technical support plan you have with Azure. Note: 'Highest critical impact', also + * known as the 'Emergency - Severe impact' level in the Azure portal is reserved only for our Premium customers. */ - @JsonProperty(value = "severity", required = true) private SeverityLevel severity; /* * Enrollment Id associated with the support ticket. */ - @JsonProperty(value = "enrollmentId") private String enrollmentId; /* * Indicates if this requires a 24x7 response from Azure. */ - @JsonProperty(value = "require24X7Response") private Boolean require24X7Response; /* * Advanced diagnostic consent to be updated on the support ticket. */ - @JsonProperty(value = "advancedDiagnosticConsent", required = true) private Consent advancedDiagnosticConsent; /* * Problem scoping questions associated with the support ticket. */ - @JsonProperty(value = "problemScopingQuestions") private String problemScopingQuestions; /* * Support plan id associated with the support ticket. */ - @JsonProperty(value = "supportPlanId") private String supportPlanId; /* * Contact information of the user requesting to create a support ticket. */ - @JsonProperty(value = "contactDetails", required = true) private ContactProfile contactDetails; /* * Service Level Agreement information for this support ticket. */ - @JsonProperty(value = "serviceLevelAgreement") private ServiceLevelAgreement serviceLevelAgreement; /* * Information about the support engineer working on this support ticket. */ - @JsonProperty(value = "supportEngineer") private SupportEngineer supportEngineer; /* * Support plan type associated with the support ticket. */ - @JsonProperty(value = "supportPlanType", access = JsonProperty.Access.WRITE_ONLY) private String supportPlanType; /* * Support plan type associated with the support ticket. */ - @JsonProperty(value = "supportPlanDisplayName", access = JsonProperty.Access.WRITE_ONLY) private String supportPlanDisplayName; /* * Title of the support ticket. */ - @JsonProperty(value = "title", required = true) private String title; /* * Time in UTC (ISO 8601 format) when the problem started. */ - @JsonProperty(value = "problemStartTime") private OffsetDateTime problemStartTime; /* * This is the resource Id of the Azure service resource associated with the support ticket. */ - @JsonProperty(value = "serviceId", required = true) private String serviceId; /* * Localized name of the Azure service. */ - @JsonProperty(value = "serviceDisplayName", access = JsonProperty.Access.WRITE_ONLY) private String serviceDisplayName; /* * Status of the support ticket. */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private String status; /* * Time in UTC (ISO 8601 format) when the support ticket was created. */ - @JsonProperty(value = "createdDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime createdDate; /* * Time in UTC (ISO 8601 format) when the support ticket was last modified. */ - @JsonProperty(value = "modifiedDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime modifiedDate; /* * File workspace name. */ - @JsonProperty(value = "fileWorkspaceName") private String fileWorkspaceName; /* * This property indicates if support ticket is a temporary ticket. */ - @JsonProperty(value = "isTemporaryTicket", access = JsonProperty.Access.WRITE_ONLY) private IsTemporaryTicket isTemporaryTicket; /* * Additional ticket details associated with a technical support ticket request. */ - @JsonProperty(value = "technicalTicketDetails") private TechnicalTicketDetails technicalTicketDetails; /* * Additional ticket details associated with a quota support ticket request. */ - @JsonProperty(value = "quotaTicketDetails") private QuotaTicketDetails quotaTicketDetails; /* * This property indicates secondary consents for the support ticket */ - @JsonProperty(value = "secondaryConsent") private List secondaryConsent; /** @@ -717,4 +699,127 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(SupportTicketDetailsProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("problemClassificationId", this.problemClassificationId); + jsonWriter.writeStringField("severity", this.severity == null ? null : this.severity.toString()); + jsonWriter.writeStringField("advancedDiagnosticConsent", + this.advancedDiagnosticConsent == null ? null : this.advancedDiagnosticConsent.toString()); + jsonWriter.writeJsonField("contactDetails", this.contactDetails); + jsonWriter.writeStringField("title", this.title); + jsonWriter.writeStringField("serviceId", this.serviceId); + jsonWriter.writeStringField("supportTicketId", this.supportTicketId); + jsonWriter.writeStringField("enrollmentId", this.enrollmentId); + jsonWriter.writeBooleanField("require24X7Response", this.require24X7Response); + jsonWriter.writeStringField("problemScopingQuestions", this.problemScopingQuestions); + jsonWriter.writeStringField("supportPlanId", this.supportPlanId); + jsonWriter.writeJsonField("serviceLevelAgreement", this.serviceLevelAgreement); + jsonWriter.writeJsonField("supportEngineer", this.supportEngineer); + jsonWriter.writeStringField("problemStartTime", + this.problemStartTime == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.problemStartTime)); + jsonWriter.writeStringField("fileWorkspaceName", this.fileWorkspaceName); + jsonWriter.writeJsonField("technicalTicketDetails", this.technicalTicketDetails); + jsonWriter.writeJsonField("quotaTicketDetails", this.quotaTicketDetails); + jsonWriter.writeArrayField("secondaryConsent", this.secondaryConsent, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SupportTicketDetailsProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SupportTicketDetailsProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SupportTicketDetailsProperties. + */ + public static SupportTicketDetailsProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SupportTicketDetailsProperties deserializedSupportTicketDetailsProperties + = new SupportTicketDetailsProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("description".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.description = reader.getString(); + } else if ("problemClassificationId".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.problemClassificationId = reader.getString(); + } else if ("severity".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.severity = SeverityLevel.fromString(reader.getString()); + } else if ("advancedDiagnosticConsent".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.advancedDiagnosticConsent + = Consent.fromString(reader.getString()); + } else if ("contactDetails".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.contactDetails = ContactProfile.fromJson(reader); + } else if ("title".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.title = reader.getString(); + } else if ("serviceId".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.serviceId = reader.getString(); + } else if ("supportTicketId".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.supportTicketId = reader.getString(); + } else if ("problemClassificationDisplayName".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.problemClassificationDisplayName = reader.getString(); + } else if ("enrollmentId".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.enrollmentId = reader.getString(); + } else if ("require24X7Response".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.require24X7Response + = reader.getNullable(JsonReader::getBoolean); + } else if ("problemScopingQuestions".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.problemScopingQuestions = reader.getString(); + } else if ("supportPlanId".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.supportPlanId = reader.getString(); + } else if ("serviceLevelAgreement".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.serviceLevelAgreement + = ServiceLevelAgreement.fromJson(reader); + } else if ("supportEngineer".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.supportEngineer = SupportEngineer.fromJson(reader); + } else if ("supportPlanType".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.supportPlanType = reader.getString(); + } else if ("supportPlanDisplayName".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.supportPlanDisplayName = reader.getString(); + } else if ("problemStartTime".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.problemStartTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("serviceDisplayName".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.serviceDisplayName = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.status = reader.getString(); + } else if ("createdDate".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.createdDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("modifiedDate".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.modifiedDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("fileWorkspaceName".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.fileWorkspaceName = reader.getString(); + } else if ("isTemporaryTicket".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.isTemporaryTicket + = IsTemporaryTicket.fromString(reader.getString()); + } else if ("technicalTicketDetails".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.technicalTicketDetails + = TechnicalTicketDetails.fromJson(reader); + } else if ("quotaTicketDetails".equals(fieldName)) { + deserializedSupportTicketDetailsProperties.quotaTicketDetails = QuotaTicketDetails.fromJson(reader); + } else if ("secondaryConsent".equals(fieldName)) { + List secondaryConsent + = reader.readArray(reader1 -> SecondaryConsent.fromJson(reader1)); + deserializedSupportTicketDetailsProperties.secondaryConsent = secondaryConsent; + } else { + reader.skipChildren(); + } + } + + return deserializedSupportTicketDetailsProperties; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ChatTranscriptsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ChatTranscriptsClientImpl.java index f9e8c5c0eee29..9276b585e8cde 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ChatTranscriptsClientImpl.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ChatTranscriptsClientImpl.java @@ -343,9 +343,7 @@ public ChatTranscriptDetailsInner get(String supportTicketName, String chatTrans /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -371,9 +369,7 @@ private Mono> listNextSinglePageAsync( /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ChatTranscriptsNoSubscriptionsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ChatTranscriptsNoSubscriptionsClientImpl.java index c3dc051acf626..cbc850c820e76 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ChatTranscriptsNoSubscriptionsClientImpl.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ChatTranscriptsNoSubscriptionsClientImpl.java @@ -323,9 +323,7 @@ public ChatTranscriptDetailsInner get(String supportTicketName, String chatTrans /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -351,9 +349,7 @@ private Mono> listNextSinglePageAsync( /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationsClientImpl.java index 48d591ebeeb02..2b8300ec3a407 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationsClientImpl.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationsClientImpl.java @@ -835,9 +835,7 @@ public CommunicationDetailsInner create(String supportTicketName, String communi /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -863,9 +861,7 @@ private Mono> listNextSinglePageAsync(S /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationsNoSubscriptionsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationsNoSubscriptionsClientImpl.java index 301416df74654..8d55d95df707e 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationsNoSubscriptionsClientImpl.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationsNoSubscriptionsClientImpl.java @@ -797,9 +797,7 @@ public CommunicationDetailsInner create(String supportTicketName, String communi /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -825,9 +823,7 @@ private Mono> listNextSinglePageAsync(S /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/FilesClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/FilesClientImpl.java index 6de8c23995b54..22a510dbccd48 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/FilesClientImpl.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/FilesClientImpl.java @@ -627,9 +627,7 @@ public void upload(String fileWorkspaceName, String fileName, UploadFile uploadF /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -655,9 +653,7 @@ private Mono> listNextSinglePageAsync(String nex /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/FilesNoSubscriptionsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/FilesNoSubscriptionsClientImpl.java index a46ea5f633f57..d4c14ed611921 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/FilesNoSubscriptionsClientImpl.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/FilesNoSubscriptionsClientImpl.java @@ -591,9 +591,7 @@ public void upload(String fileWorkspaceName, String fileName, UploadFile uploadF /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -619,9 +617,7 @@ private Mono> listNextSinglePageAsync(String nex /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/MicrosoftSupportImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/MicrosoftSupportImpl.java index b952f8eeb32e9..45eea3d125808 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/MicrosoftSupportImpl.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/MicrosoftSupportImpl.java @@ -13,8 +13,8 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.exception.ManagementError; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollerFactory; import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; @@ -27,10 +27,10 @@ import com.azure.resourcemanager.support.fluent.ChatTranscriptsNoSubscriptionsClient; import com.azure.resourcemanager.support.fluent.CommunicationsClient; import com.azure.resourcemanager.support.fluent.CommunicationsNoSubscriptionsClient; -import com.azure.resourcemanager.support.fluent.FilesClient; -import com.azure.resourcemanager.support.fluent.FilesNoSubscriptionsClient; import com.azure.resourcemanager.support.fluent.FileWorkspacesClient; import com.azure.resourcemanager.support.fluent.FileWorkspacesNoSubscriptionsClient; +import com.azure.resourcemanager.support.fluent.FilesClient; +import com.azure.resourcemanager.support.fluent.FilesNoSubscriptionsClient; import com.azure.resourcemanager.support.fluent.MicrosoftSupport; import com.azure.resourcemanager.support.fluent.OperationsClient; import com.azure.resourcemanager.support.fluent.ProblemClassificationsClient; diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketsClientImpl.java index 1e76b51a39161..79ac1773d212b 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketsClientImpl.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketsClientImpl.java @@ -1078,9 +1078,7 @@ public SupportTicketDetailsInner create(String supportTicketName, /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1106,9 +1104,7 @@ private Mono> listNextSinglePageAsync(S /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketsNoSubscriptionsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketsNoSubscriptionsClientImpl.java index 21b23140db46f..ff3e782843980 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketsNoSubscriptionsClientImpl.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketsNoSubscriptionsClientImpl.java @@ -971,9 +971,7 @@ public SupportTicketDetailsInner create(String supportTicketName, /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -999,9 +997,7 @@ private Mono> listNextSinglePageAsync(S /** * Get the next page of items. * - * @param nextLink The URL to get the next list of items - * - * The nextLink parameter. + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ChatTranscriptsListResult.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ChatTranscriptsListResult.java index 164099219604a..b50ba2e903698 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ChatTranscriptsListResult.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ChatTranscriptsListResult.java @@ -5,25 +5,27 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.fluent.models.ChatTranscriptDetailsInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** * Collection of Chat Transcripts resources. */ @Fluent -public final class ChatTranscriptsListResult { +public final class ChatTranscriptsListResult implements JsonSerializable { /* * List of Chat Transcripts resources. */ - @JsonProperty(value = "value") private List value; /* * The URI to fetch the next page of Chat Transcripts resources. */ - @JsonProperty(value = "nextLink") private String nextLink; /** @@ -82,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChatTranscriptsListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChatTranscriptsListResult if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ChatTranscriptsListResult. + */ + public static ChatTranscriptsListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChatTranscriptsListResult deserializedChatTranscriptsListResult = new ChatTranscriptsListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ChatTranscriptDetailsInner.fromJson(reader1)); + deserializedChatTranscriptsListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedChatTranscriptsListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedChatTranscriptsListResult; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CheckNameAvailabilityInput.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CheckNameAvailabilityInput.java index 4e0b4d60aba57..6c85c3e20272c 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CheckNameAvailabilityInput.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CheckNameAvailabilityInput.java @@ -6,23 +6,25 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * Input of CheckNameAvailability API. */ @Fluent -public final class CheckNameAvailabilityInput { +public final class CheckNameAvailabilityInput implements JsonSerializable { /* * The resource name to validate. */ - @JsonProperty(value = "name", required = true) private String name; /* * The type of resource. */ - @JsonProperty(value = "type", required = true) private Type type; /** @@ -90,4 +92,44 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailabilityInput.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CheckNameAvailabilityInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CheckNameAvailabilityInput if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CheckNameAvailabilityInput. + */ + public static CheckNameAvailabilityInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CheckNameAvailabilityInput deserializedCheckNameAvailabilityInput = new CheckNameAvailabilityInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedCheckNameAvailabilityInput.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedCheckNameAvailabilityInput.type = Type.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedCheckNameAvailabilityInput; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationDirection.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationDirection.java index df06357b2c8b0..c4d39a6fd72f4 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationDirection.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationDirection.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.support.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -37,7 +36,6 @@ public CommunicationDirection() { * @param name a name to look for. * @return the corresponding CommunicationDirection. */ - @JsonCreator public static CommunicationDirection fromString(String name) { return fromString(name, CommunicationDirection.class); } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationType.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationType.java index 7ce3f6c53e287..91eaf8006ef1a 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationType.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationType.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.support.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -37,7 +36,6 @@ public CommunicationType() { * @param name a name to look for. * @return the corresponding CommunicationType. */ - @JsonCreator public static CommunicationType fromString(String name) { return fromString(name, CommunicationType.class); } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationsListResult.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationsListResult.java index 35bf9967828d1..0519433f657e0 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationsListResult.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationsListResult.java @@ -5,25 +5,27 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.fluent.models.CommunicationDetailsInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** * Collection of Communication resources. */ @Fluent -public final class CommunicationsListResult { +public final class CommunicationsListResult implements JsonSerializable { /* * List of Communication resources. */ - @JsonProperty(value = "value") private List value; /* * The URI to fetch the next page of Communication resources. */ - @JsonProperty(value = "nextLink") private String nextLink; /** @@ -82,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CommunicationsListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CommunicationsListResult if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CommunicationsListResult. + */ + public static CommunicationsListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CommunicationsListResult deserializedCommunicationsListResult = new CommunicationsListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> CommunicationDetailsInner.fromJson(reader1)); + deserializedCommunicationsListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedCommunicationsListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCommunicationsListResult; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Consent.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Consent.java index 053c818c6b610..7fa4145997665 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Consent.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Consent.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.support.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -37,7 +36,6 @@ public Consent() { * @param name a name to look for. * @return the corresponding Consent. */ - @JsonCreator public static Consent fromString(String name) { return fromString(name, Consent.class); } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ContactProfile.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ContactProfile.java index 59617eb707474..b77e12a67a359 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ContactProfile.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ContactProfile.java @@ -6,66 +6,67 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** * Contact information associated with the support ticket. */ @Fluent -public final class ContactProfile { +public final class ContactProfile implements JsonSerializable { /* * First name. */ - @JsonProperty(value = "firstName", required = true) private String firstName; /* * Last name. */ - @JsonProperty(value = "lastName", required = true) private String lastName; /* * Preferred contact method. */ - @JsonProperty(value = "preferredContactMethod", required = true) private PreferredContactMethod preferredContactMethod; /* * Primary email address. */ - @JsonProperty(value = "primaryEmailAddress", required = true) private String primaryEmailAddress; /* * Additional email addresses listed will be copied on any correspondence about the support ticket. */ - @JsonProperty(value = "additionalEmailAddresses") private List additionalEmailAddresses; /* * Phone number. This is required if preferred contact method is phone. */ - @JsonProperty(value = "phoneNumber") private String phoneNumber; /* - * Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). + * Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index + * Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). */ - @JsonProperty(value = "preferredTimeZone", required = true) private String preferredTimeZone; /* * Country of the user. This is the ISO 3166-1 alpha-3 code. */ - @JsonProperty(value = "country", required = true) private String country; /* - * Preferred language of support from Azure. Support languages vary based on the severity you choose for your support ticket. Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response). Use the standard language-country code. Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German. + * Preferred language of support from Azure. Support languages vary based on the severity you choose for your + * support ticket. Learn more at [Azure Severity and + * responsiveness](https://azure.microsoft.com/support/plans/response). Use the standard language-country code. + * Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for + * Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for + * Chinese and 'de-de' for German. */ - @JsonProperty(value = "preferredSupportLanguage", required = true) private String preferredSupportLanguage; /** @@ -309,4 +310,69 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(ContactProfile.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("firstName", this.firstName); + jsonWriter.writeStringField("lastName", this.lastName); + jsonWriter.writeStringField("preferredContactMethod", + this.preferredContactMethod == null ? null : this.preferredContactMethod.toString()); + jsonWriter.writeStringField("primaryEmailAddress", this.primaryEmailAddress); + jsonWriter.writeStringField("preferredTimeZone", this.preferredTimeZone); + jsonWriter.writeStringField("country", this.country); + jsonWriter.writeStringField("preferredSupportLanguage", this.preferredSupportLanguage); + jsonWriter.writeArrayField("additionalEmailAddresses", this.additionalEmailAddresses, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("phoneNumber", this.phoneNumber); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ContactProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ContactProfile if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ContactProfile. + */ + public static ContactProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ContactProfile deserializedContactProfile = new ContactProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("firstName".equals(fieldName)) { + deserializedContactProfile.firstName = reader.getString(); + } else if ("lastName".equals(fieldName)) { + deserializedContactProfile.lastName = reader.getString(); + } else if ("preferredContactMethod".equals(fieldName)) { + deserializedContactProfile.preferredContactMethod + = PreferredContactMethod.fromString(reader.getString()); + } else if ("primaryEmailAddress".equals(fieldName)) { + deserializedContactProfile.primaryEmailAddress = reader.getString(); + } else if ("preferredTimeZone".equals(fieldName)) { + deserializedContactProfile.preferredTimeZone = reader.getString(); + } else if ("country".equals(fieldName)) { + deserializedContactProfile.country = reader.getString(); + } else if ("preferredSupportLanguage".equals(fieldName)) { + deserializedContactProfile.preferredSupportLanguage = reader.getString(); + } else if ("additionalEmailAddresses".equals(fieldName)) { + List additionalEmailAddresses = reader.readArray(reader1 -> reader1.getString()); + deserializedContactProfile.additionalEmailAddresses = additionalEmailAddresses; + } else if ("phoneNumber".equals(fieldName)) { + deserializedContactProfile.phoneNumber = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedContactProfile; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/FilesListResult.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/FilesListResult.java index e9a378bc7ad18..3826d1633c6c1 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/FilesListResult.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/FilesListResult.java @@ -5,25 +5,27 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.fluent.models.FileDetailsInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** * Object that represents a collection of File resources. */ @Fluent -public final class FilesListResult { +public final class FilesListResult implements JsonSerializable { /* * List of File resources. */ - @JsonProperty(value = "value") private List value; /* * The URI to fetch the next page of File resources. */ - @JsonProperty(value = "nextLink") private String nextLink; /** @@ -82,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FilesListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FilesListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the FilesListResult. + */ + public static FilesListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FilesListResult deserializedFilesListResult = new FilesListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> FileDetailsInner.fromJson(reader1)); + deserializedFilesListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedFilesListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedFilesListResult; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/IsTemporaryTicket.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/IsTemporaryTicket.java index c14a8012d276a..1685c9f8cffc0 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/IsTemporaryTicket.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/IsTemporaryTicket.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.support.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -37,7 +36,6 @@ public IsTemporaryTicket() { * @param name a name to look for. * @return the corresponding IsTemporaryTicket. */ - @JsonCreator public static IsTemporaryTicket fromString(String name) { return fromString(name, IsTemporaryTicket.class); } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/MessageProperties.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/MessageProperties.java index 1bdd8e0c3bf63..0ad63a6b46c0e 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/MessageProperties.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/MessageProperties.java @@ -5,42 +5,42 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; /** * Describes the properties of a Message Details resource. */ @Fluent -public final class MessageProperties { +public final class MessageProperties implements JsonSerializable { /* * Content type. */ - @JsonProperty(value = "contentType", access = JsonProperty.Access.WRITE_ONLY) private TranscriptContentType contentType; /* * Direction of communication. */ - @JsonProperty(value = "communicationDirection", access = JsonProperty.Access.WRITE_ONLY) private CommunicationDirection communicationDirection; /* * Name of the sender. */ - @JsonProperty(value = "sender") private String sender; /* * Body of the communication. */ - @JsonProperty(value = "body") private String body; /* * Time in UTC (ISO 8601 format) when the communication was created. */ - @JsonProperty(value = "createdDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime createdDate; /** @@ -123,4 +123,51 @@ public OffsetDateTime createdDate() { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("sender", this.sender); + jsonWriter.writeStringField("body", this.body); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MessageProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MessageProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the MessageProperties. + */ + public static MessageProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MessageProperties deserializedMessageProperties = new MessageProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("contentType".equals(fieldName)) { + deserializedMessageProperties.contentType = TranscriptContentType.fromString(reader.getString()); + } else if ("communicationDirection".equals(fieldName)) { + deserializedMessageProperties.communicationDirection + = CommunicationDirection.fromString(reader.getString()); + } else if ("sender".equals(fieldName)) { + deserializedMessageProperties.sender = reader.getString(); + } else if ("body".equals(fieldName)) { + deserializedMessageProperties.body = reader.getString(); + } else if ("createdDate".equals(fieldName)) { + deserializedMessageProperties.createdDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedMessageProperties; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/OperationDisplay.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/OperationDisplay.java index b651f9cdaaca2..76358a829256c 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/OperationDisplay.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/OperationDisplay.java @@ -5,35 +5,35 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * The object that describes the operation. */ @Immutable -public final class OperationDisplay { +public final class OperationDisplay implements JsonSerializable { /* * The description of the operation. */ - @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; /* * The action that users can perform, based on their permission level. */ - @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) private String operation; /* * Service provider: Microsoft Support. */ - @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) private String provider; /* * Resource on which the operation is performed. */ - @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY) private String resource; /** @@ -85,4 +85,45 @@ public String resource() { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationDisplay from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationDisplay if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationDisplay. + */ + public static OperationDisplay fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationDisplay deserializedOperationDisplay = new OperationDisplay(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("description".equals(fieldName)) { + deserializedOperationDisplay.description = reader.getString(); + } else if ("operation".equals(fieldName)) { + deserializedOperationDisplay.operation = reader.getString(); + } else if ("provider".equals(fieldName)) { + deserializedOperationDisplay.provider = reader.getString(); + } else if ("resource".equals(fieldName)) { + deserializedOperationDisplay.resource = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationDisplay; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/OperationsListResult.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/OperationsListResult.java index 86ed3966360e7..33324b96ee8b5 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/OperationsListResult.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/OperationsListResult.java @@ -5,19 +5,22 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** * The list of operations supported by Microsoft Support resource provider. */ @Fluent -public final class OperationsListResult { +public final class OperationsListResult implements JsonSerializable { /* * The list of operations supported by Microsoft Support resource provider. */ - @JsonProperty(value = "value") private List value; /** @@ -56,4 +59,41 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationsListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationsListResult if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationsListResult. + */ + public static OperationsListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationsListResult deserializedOperationsListResult = new OperationsListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> OperationInner.fromJson(reader1)); + deserializedOperationsListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedOperationsListResult; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/PreferredContactMethod.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/PreferredContactMethod.java index 1dad1e468d94d..3cbc4f063f6dc 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/PreferredContactMethod.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/PreferredContactMethod.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.support.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -37,7 +36,6 @@ public PreferredContactMethod() { * @param name a name to look for. * @return the corresponding PreferredContactMethod. */ - @JsonCreator public static PreferredContactMethod fromString(String name) { return fromString(name, PreferredContactMethod.class); } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsListResult.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsListResult.java index c60b74dac591a..6c45414456e8b 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsListResult.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsListResult.java @@ -5,19 +5,22 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** * Collection of ProblemClassification resources. */ @Fluent -public final class ProblemClassificationsListResult { +public final class ProblemClassificationsListResult implements JsonSerializable { /* * List of ProblemClassification resources. */ - @JsonProperty(value = "value") private List value; /** @@ -56,4 +59,43 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProblemClassificationsListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProblemClassificationsListResult if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ProblemClassificationsListResult. + */ + public static ProblemClassificationsListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProblemClassificationsListResult deserializedProblemClassificationsListResult + = new ProblemClassificationsListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ProblemClassificationInner.fromJson(reader1)); + deserializedProblemClassificationsListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedProblemClassificationsListResult; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/QuotaChangeRequest.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/QuotaChangeRequest.java index 13fa38dce26f7..b151b0436657d 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/QuotaChangeRequest.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/QuotaChangeRequest.java @@ -5,23 +5,25 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * This property is required for providing the region and new quota limits. */ @Fluent -public final class QuotaChangeRequest { +public final class QuotaChangeRequest implements JsonSerializable { /* * Region for which the quota increase request is being made. */ - @JsonProperty(value = "region") private String region; /* * Payload of the quota increase request. */ - @JsonProperty(value = "payload") private String payload; /** @@ -77,4 +79,43 @@ public QuotaChangeRequest withPayload(String payload) { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("region", this.region); + jsonWriter.writeStringField("payload", this.payload); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of QuotaChangeRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of QuotaChangeRequest if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the QuotaChangeRequest. + */ + public static QuotaChangeRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + QuotaChangeRequest deserializedQuotaChangeRequest = new QuotaChangeRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("region".equals(fieldName)) { + deserializedQuotaChangeRequest.region = reader.getString(); + } else if ("payload".equals(fieldName)) { + deserializedQuotaChangeRequest.payload = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedQuotaChangeRequest; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/QuotaTicketDetails.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/QuotaTicketDetails.java index a63506c41a9c9..c0987e908850a 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/QuotaTicketDetails.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/QuotaTicketDetails.java @@ -5,7 +5,11 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -14,23 +18,21 @@ * request](https://aka.ms/supportrpquotarequestpayload). */ @Fluent -public final class QuotaTicketDetails { +public final class QuotaTicketDetails implements JsonSerializable { /* - * Required for certain quota types when there is a sub type, such as Batch, for which you are requesting a quota increase. + * Required for certain quota types when there is a sub type, such as Batch, for which you are requesting a quota + * increase. */ - @JsonProperty(value = "quotaChangeRequestSubType") private String quotaChangeRequestSubType; /* * Quota change request version. */ - @JsonProperty(value = "quotaChangeRequestVersion") private String quotaChangeRequestVersion; /* * This property is required for providing the region and new quota limits. */ - @JsonProperty(value = "quotaChangeRequests") private List quotaChangeRequests; /** @@ -111,4 +113,49 @@ public void validate() { quotaChangeRequests().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("quotaChangeRequestSubType", this.quotaChangeRequestSubType); + jsonWriter.writeStringField("quotaChangeRequestVersion", this.quotaChangeRequestVersion); + jsonWriter.writeArrayField("quotaChangeRequests", this.quotaChangeRequests, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of QuotaTicketDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of QuotaTicketDetails if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the QuotaTicketDetails. + */ + public static QuotaTicketDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + QuotaTicketDetails deserializedQuotaTicketDetails = new QuotaTicketDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("quotaChangeRequestSubType".equals(fieldName)) { + deserializedQuotaTicketDetails.quotaChangeRequestSubType = reader.getString(); + } else if ("quotaChangeRequestVersion".equals(fieldName)) { + deserializedQuotaTicketDetails.quotaChangeRequestVersion = reader.getString(); + } else if ("quotaChangeRequests".equals(fieldName)) { + List quotaChangeRequests + = reader.readArray(reader1 -> QuotaChangeRequest.fromJson(reader1)); + deserializedQuotaTicketDetails.quotaChangeRequests = quotaChangeRequests; + } else { + reader.skipChildren(); + } + } + + return deserializedQuotaTicketDetails; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SecondaryConsent.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SecondaryConsent.java index aefd114b2454c..90dd52d6f2714 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SecondaryConsent.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SecondaryConsent.java @@ -5,23 +5,26 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * This property indicates secondary consent for the support ticket. */ @Fluent -public final class SecondaryConsent { +public final class SecondaryConsent implements JsonSerializable { /* * User consent value provided */ - @JsonProperty(value = "userConsent") private UserConsent userConsent; /* - * The service name for which the secondary consent is being provided. The value needs to be retrieved from the Problem Classification API response. + * The service name for which the secondary consent is being provided. The value needs to be retrieved from the + * Problem Classification API response. */ - @JsonProperty(value = "type") private String type; /** @@ -79,4 +82,43 @@ public SecondaryConsent withType(String type) { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("userConsent", this.userConsent == null ? null : this.userConsent.toString()); + jsonWriter.writeStringField("type", this.type); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SecondaryConsent from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SecondaryConsent if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the SecondaryConsent. + */ + public static SecondaryConsent fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SecondaryConsent deserializedSecondaryConsent = new SecondaryConsent(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("userConsent".equals(fieldName)) { + deserializedSecondaryConsent.userConsent = UserConsent.fromString(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedSecondaryConsent.type = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSecondaryConsent; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SecondaryConsentEnabled.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SecondaryConsentEnabled.java index f649861506950..7d888052032f7 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SecondaryConsentEnabled.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SecondaryConsentEnabled.java @@ -5,23 +5,25 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * This property indicates whether secondary consent is present for problem classification. */ @Fluent -public final class SecondaryConsentEnabled { +public final class SecondaryConsentEnabled implements JsonSerializable { /* * User consent description. */ - @JsonProperty(value = "description") private String description; /* * The Azure service for which secondary consent is needed for case creation. */ - @JsonProperty(value = "type") private String type; /** @@ -77,4 +79,43 @@ public SecondaryConsentEnabled withType(String type) { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("type", this.type); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SecondaryConsentEnabled from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SecondaryConsentEnabled if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the SecondaryConsentEnabled. + */ + public static SecondaryConsentEnabled fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SecondaryConsentEnabled deserializedSecondaryConsentEnabled = new SecondaryConsentEnabled(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("description".equals(fieldName)) { + deserializedSecondaryConsentEnabled.description = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSecondaryConsentEnabled.type = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSecondaryConsentEnabled; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceLevelAgreement.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceLevelAgreement.java index 5d1eea3e38aaa..e389409328cb7 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceLevelAgreement.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceLevelAgreement.java @@ -5,30 +5,32 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; /** * Service Level Agreement details for a support ticket. */ @Immutable -public final class ServiceLevelAgreement { +public final class ServiceLevelAgreement implements JsonSerializable { /* * Time in UTC (ISO 8601 format) when the service level agreement starts. */ - @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime startTime; /* * Time in UTC (ISO 8601 format) when the service level agreement expires. */ - @JsonProperty(value = "expirationTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime expirationTime; /* * Service Level Agreement in minutes. */ - @JsonProperty(value = "slaMinutes", access = JsonProperty.Access.WRITE_ONLY) private Integer slaMinutes; /** @@ -71,4 +73,45 @@ public Integer slaMinutes() { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ServiceLevelAgreement from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ServiceLevelAgreement if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ServiceLevelAgreement. + */ + public static ServiceLevelAgreement fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ServiceLevelAgreement deserializedServiceLevelAgreement = new ServiceLevelAgreement(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("startTime".equals(fieldName)) { + deserializedServiceLevelAgreement.startTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("expirationTime".equals(fieldName)) { + deserializedServiceLevelAgreement.expirationTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("slaMinutes".equals(fieldName)) { + deserializedServiceLevelAgreement.slaMinutes = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedServiceLevelAgreement; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServicesListResult.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServicesListResult.java index 229f1aad9be52..ac706591430ea 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServicesListResult.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServicesListResult.java @@ -5,19 +5,22 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.fluent.models.ServiceInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** * Collection of Service resources. */ @Fluent -public final class ServicesListResult { +public final class ServicesListResult implements JsonSerializable { /* * List of Service resources. */ - @JsonProperty(value = "value") private List value; /** @@ -56,4 +59,41 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ServicesListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ServicesListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ServicesListResult. + */ + public static ServicesListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ServicesListResult deserializedServicesListResult = new ServicesListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ServiceInner.fromJson(reader1)); + deserializedServicesListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedServicesListResult; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SeverityLevel.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SeverityLevel.java index 8c0351df59b38..e1770dc77a6e6 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SeverityLevel.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SeverityLevel.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.support.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -49,7 +48,6 @@ public SeverityLevel() { * @param name a name to look for. * @return the corresponding SeverityLevel. */ - @JsonCreator public static SeverityLevel fromString(String name) { return fromString(name, SeverityLevel.class); } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Status.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Status.java index 43e583c742c74..deb49b9f08295 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Status.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Status.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.support.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -37,7 +36,6 @@ public Status() { * @param name a name to look for. * @return the corresponding Status. */ - @JsonCreator public static Status fromString(String name) { return fromString(name, Status.class); } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportEngineer.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportEngineer.java index e527c5591045f..ace1a582585b8 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportEngineer.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportEngineer.java @@ -5,17 +5,20 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * Support engineer information. */ @Immutable -public final class SupportEngineer { +public final class SupportEngineer implements JsonSerializable { /* * Email address of the Azure Support engineer assigned to the support ticket. */ - @JsonProperty(value = "emailAddress", access = JsonProperty.Access.WRITE_ONLY) private String emailAddress; /** @@ -40,4 +43,39 @@ public String emailAddress() { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SupportEngineer from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SupportEngineer if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the SupportEngineer. + */ + public static SupportEngineer fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SupportEngineer deserializedSupportEngineer = new SupportEngineer(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("emailAddress".equals(fieldName)) { + deserializedSupportEngineer.emailAddress = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSupportEngineer; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportTicketsListResult.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportTicketsListResult.java index fccda7d438a7b..9e063d4a6e867 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportTicketsListResult.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportTicketsListResult.java @@ -5,25 +5,27 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.support.fluent.models.SupportTicketDetailsInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** * Object that represents a collection of SupportTicket resources. */ @Fluent -public final class SupportTicketsListResult { +public final class SupportTicketsListResult implements JsonSerializable { /* * List of SupportTicket resources. */ - @JsonProperty(value = "value") private List value; /* * The URI to fetch the next page of SupportTicket resources. */ - @JsonProperty(value = "nextLink") private String nextLink; /** @@ -82,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SupportTicketsListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SupportTicketsListResult if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SupportTicketsListResult. + */ + public static SupportTicketsListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SupportTicketsListResult deserializedSupportTicketsListResult = new SupportTicketsListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> SupportTicketDetailsInner.fromJson(reader1)); + deserializedSupportTicketsListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSupportTicketsListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSupportTicketsListResult; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/TechnicalTicketDetails.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/TechnicalTicketDetails.java index d4fb2be97c5d6..e178b6e51b646 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/TechnicalTicketDetails.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/TechnicalTicketDetails.java @@ -5,17 +5,21 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * Additional information for technical support ticket. */ @Fluent -public final class TechnicalTicketDetails { +public final class TechnicalTicketDetails implements JsonSerializable { /* - * This is the resource Id of the Azure service resource (For example: A virtual machine resource or an HDInsight resource) for which the support ticket is created. + * This is the resource Id of the Azure service resource (For example: A virtual machine resource or an HDInsight + * resource) for which the support ticket is created. */ - @JsonProperty(value = "resourceId") private String resourceId; /** @@ -53,4 +57,40 @@ public TechnicalTicketDetails withResourceId(String resourceId) { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("resourceId", this.resourceId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TechnicalTicketDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TechnicalTicketDetails if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the TechnicalTicketDetails. + */ + public static TechnicalTicketDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TechnicalTicketDetails deserializedTechnicalTicketDetails = new TechnicalTicketDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceId".equals(fieldName)) { + deserializedTechnicalTicketDetails.resourceId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedTechnicalTicketDetails; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/TranscriptContentType.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/TranscriptContentType.java index 3ec560182f116..d859320cc4d6e 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/TranscriptContentType.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/TranscriptContentType.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.support.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -27,7 +26,6 @@ public TranscriptContentType() { * @param name a name to look for. * @return the corresponding TranscriptContentType. */ - @JsonCreator public static TranscriptContentType fromString(String name) { return fromString(name, TranscriptContentType.class); } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Type.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Type.java index d776572bcf884..bbe10e7da4644 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Type.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Type.java @@ -4,9 +4,6 @@ package com.azure.resourcemanager.support.models; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * The type of resource. */ @@ -36,7 +33,6 @@ public enum Type { * @param value the serialized value to parse. * @return the parsed Type object, or null if unable to parse. */ - @JsonCreator public static Type fromString(String value) { if (value == null) { return null; @@ -53,7 +49,6 @@ public static Type fromString(String value) { /** * {@inheritDoc} */ - @JsonValue @Override public String toString() { return this.value; diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UpdateContactProfile.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UpdateContactProfile.java index 8f307cad39298..a6ad1e7084834 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UpdateContactProfile.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UpdateContactProfile.java @@ -5,66 +5,67 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** * Contact information associated with the support ticket. */ @Fluent -public final class UpdateContactProfile { +public final class UpdateContactProfile implements JsonSerializable { /* * First name. */ - @JsonProperty(value = "firstName") private String firstName; /* * Last name. */ - @JsonProperty(value = "lastName") private String lastName; /* * Preferred contact method. */ - @JsonProperty(value = "preferredContactMethod") private PreferredContactMethod preferredContactMethod; /* * Primary email address. */ - @JsonProperty(value = "primaryEmailAddress") private String primaryEmailAddress; /* * Email addresses listed will be copied on any correspondence about the support ticket. */ - @JsonProperty(value = "additionalEmailAddresses") private List additionalEmailAddresses; /* * Phone number. This is required if preferred contact method is phone. */ - @JsonProperty(value = "phoneNumber") private String phoneNumber; /* - * Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). + * Time zone of the user. This is the name of the time zone from [Microsoft Time Zone Index + * Values](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values). */ - @JsonProperty(value = "preferredTimeZone") private String preferredTimeZone; /* * Country of the user. This is the ISO 3166-1 alpha-3 code. */ - @JsonProperty(value = "country") private String country; /* - * Preferred language of support from Azure. Support languages vary based on the severity you choose for your support ticket. Learn more at [Azure Severity and responsiveness](https://azure.microsoft.com/support/plans/response/). Use the standard language-country code. Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for Chinese and 'de-de' for German. + * Preferred language of support from Azure. Support languages vary based on the severity you choose for your + * support ticket. Learn more at [Azure Severity and + * responsiveness](https://azure.microsoft.com/support/plans/response/). Use the standard language-country code. + * Valid values are 'en-us' for English, 'zh-hans' for Chinese, 'es-es' for Spanish, 'fr-fr' for French, 'ja-jp' for + * Japanese, 'ko-kr' for Korean, 'ru-ru' for Russian, 'pt-br' for Portuguese, 'it-it' for Italian, 'zh-tw' for + * Chinese and 'de-de' for German. */ - @JsonProperty(value = "preferredSupportLanguage") private String preferredSupportLanguage; /** @@ -274,4 +275,68 @@ public UpdateContactProfile withPreferredSupportLanguage(String preferredSupport */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("firstName", this.firstName); + jsonWriter.writeStringField("lastName", this.lastName); + jsonWriter.writeStringField("preferredContactMethod", + this.preferredContactMethod == null ? null : this.preferredContactMethod.toString()); + jsonWriter.writeStringField("primaryEmailAddress", this.primaryEmailAddress); + jsonWriter.writeArrayField("additionalEmailAddresses", this.additionalEmailAddresses, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("phoneNumber", this.phoneNumber); + jsonWriter.writeStringField("preferredTimeZone", this.preferredTimeZone); + jsonWriter.writeStringField("country", this.country); + jsonWriter.writeStringField("preferredSupportLanguage", this.preferredSupportLanguage); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpdateContactProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpdateContactProfile if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the UpdateContactProfile. + */ + public static UpdateContactProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpdateContactProfile deserializedUpdateContactProfile = new UpdateContactProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("firstName".equals(fieldName)) { + deserializedUpdateContactProfile.firstName = reader.getString(); + } else if ("lastName".equals(fieldName)) { + deserializedUpdateContactProfile.lastName = reader.getString(); + } else if ("preferredContactMethod".equals(fieldName)) { + deserializedUpdateContactProfile.preferredContactMethod + = PreferredContactMethod.fromString(reader.getString()); + } else if ("primaryEmailAddress".equals(fieldName)) { + deserializedUpdateContactProfile.primaryEmailAddress = reader.getString(); + } else if ("additionalEmailAddresses".equals(fieldName)) { + List additionalEmailAddresses = reader.readArray(reader1 -> reader1.getString()); + deserializedUpdateContactProfile.additionalEmailAddresses = additionalEmailAddresses; + } else if ("phoneNumber".equals(fieldName)) { + deserializedUpdateContactProfile.phoneNumber = reader.getString(); + } else if ("preferredTimeZone".equals(fieldName)) { + deserializedUpdateContactProfile.preferredTimeZone = reader.getString(); + } else if ("country".equals(fieldName)) { + deserializedUpdateContactProfile.country = reader.getString(); + } else if ("preferredSupportLanguage".equals(fieldName)) { + deserializedUpdateContactProfile.preferredSupportLanguage = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUpdateContactProfile; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UpdateSupportTicket.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UpdateSupportTicket.java index 00a703fef9bc3..8c44b40af1c4f 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UpdateSupportTicket.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UpdateSupportTicket.java @@ -5,7 +5,11 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -13,35 +17,30 @@ * ticket. */ @Fluent -public final class UpdateSupportTicket { +public final class UpdateSupportTicket implements JsonSerializable { /* * Severity level. */ - @JsonProperty(value = "severity") private SeverityLevel severity; /* * Status to be updated on the ticket. */ - @JsonProperty(value = "status") private Status status; /* * Contact details to be updated on the support ticket. */ - @JsonProperty(value = "contactDetails") private UpdateContactProfile contactDetails; /* * Advanced diagnostic consent to be updated on the support ticket. */ - @JsonProperty(value = "advancedDiagnosticConsent") private Consent advancedDiagnosticConsent; /* * This property indicates secondary consents for the support ticket */ - @JsonProperty(value = "secondaryConsent") private List secondaryConsent; /** @@ -163,4 +162,56 @@ public void validate() { secondaryConsent().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("severity", this.severity == null ? null : this.severity.toString()); + jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); + jsonWriter.writeJsonField("contactDetails", this.contactDetails); + jsonWriter.writeStringField("advancedDiagnosticConsent", + this.advancedDiagnosticConsent == null ? null : this.advancedDiagnosticConsent.toString()); + jsonWriter.writeArrayField("secondaryConsent", this.secondaryConsent, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpdateSupportTicket from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpdateSupportTicket if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the UpdateSupportTicket. + */ + public static UpdateSupportTicket fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpdateSupportTicket deserializedUpdateSupportTicket = new UpdateSupportTicket(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("severity".equals(fieldName)) { + deserializedUpdateSupportTicket.severity = SeverityLevel.fromString(reader.getString()); + } else if ("status".equals(fieldName)) { + deserializedUpdateSupportTicket.status = Status.fromString(reader.getString()); + } else if ("contactDetails".equals(fieldName)) { + deserializedUpdateSupportTicket.contactDetails = UpdateContactProfile.fromJson(reader); + } else if ("advancedDiagnosticConsent".equals(fieldName)) { + deserializedUpdateSupportTicket.advancedDiagnosticConsent = Consent.fromString(reader.getString()); + } else if ("secondaryConsent".equals(fieldName)) { + List secondaryConsent + = reader.readArray(reader1 -> SecondaryConsent.fromJson(reader1)); + deserializedUpdateSupportTicket.secondaryConsent = secondaryConsent; + } else { + reader.skipChildren(); + } + } + + return deserializedUpdateSupportTicket; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UploadFile.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UploadFile.java index e28827fd4e253..241abc4ca01e2 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UploadFile.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UploadFile.java @@ -5,23 +5,25 @@ package com.azure.resourcemanager.support.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * File content associated with the file under a workspace. */ @Fluent -public final class UploadFile { +public final class UploadFile implements JsonSerializable { /* * File Content in base64 encoded format */ - @JsonProperty(value = "content") private String content; /* * Index of the uploaded chunk (Index starts at 0) */ - @JsonProperty(value = "chunkIndex") private Integer chunkIndex; /** @@ -77,4 +79,43 @@ public UploadFile withChunkIndex(Integer chunkIndex) { */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("content", this.content); + jsonWriter.writeNumberField("chunkIndex", this.chunkIndex); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UploadFile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UploadFile if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the UploadFile. + */ + public static UploadFile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UploadFile deserializedUploadFile = new UploadFile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("content".equals(fieldName)) { + deserializedUploadFile.content = reader.getString(); + } else if ("chunkIndex".equals(fieldName)) { + deserializedUploadFile.chunkIndex = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedUploadFile; + }); + } } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UserConsent.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UserConsent.java index c3a672c7745f4..5c3cd9225c450 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UserConsent.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/UserConsent.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.support.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -37,7 +36,6 @@ public UserConsent() { * @param name a name to look for. * @return the corresponding UserConsent. */ - @JsonCreator public static UserConsent fromString(String name) { return fromString(name, UserConsent.class); } diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/module-info.java b/sdk/support/azure-resourcemanager-support/src/main/java/module-info.java index 0b5e1478690ea..17db9ab9621e8 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/java/module-info.java +++ b/sdk/support/azure-resourcemanager-support/src/main/java/module-info.java @@ -10,6 +10,6 @@ exports com.azure.resourcemanager.support.fluent.models; exports com.azure.resourcemanager.support.models; - opens com.azure.resourcemanager.support.fluent.models to com.azure.core, com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.support.models to com.azure.core, com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.support.fluent.models to com.azure.core; + opens com.azure.resourcemanager.support.models to com.azure.core; } diff --git a/sdk/support/azure-resourcemanager-support/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-support/proxy-config.json b/sdk/support/azure-resourcemanager-support/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-support/proxy-config.json index df749671510ea..d3286c9251db8 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-support/proxy-config.json +++ b/sdk/support/azure-resourcemanager-support/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-support/proxy-config.json @@ -1 +1 @@ -[ [ "com.azure.resourcemanager.support.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.support.implementation.ServicesClientImpl$ServicesService" ], [ "com.azure.resourcemanager.support.implementation.ProblemClassificationsClientImpl$ProblemClassificationsService" ], [ "com.azure.resourcemanager.support.implementation.SupportTicketsClientImpl$SupportTicketsService" ], [ "com.azure.resourcemanager.support.implementation.SupportTicketsNoSubscriptionsClientImpl$SupportTicketsNoSubscriptionsService" ], [ "com.azure.resourcemanager.support.implementation.CommunicationsClientImpl$CommunicationsService" ], [ "com.azure.resourcemanager.support.implementation.CommunicationsNoSubscriptionsClientImpl$CommunicationsNoSubscriptionsService" ], [ "com.azure.resourcemanager.support.implementation.ChatTranscriptsClientImpl$ChatTranscriptsService" ], [ "com.azure.resourcemanager.support.implementation.ChatTranscriptsNoSubscriptionsClientImpl$ChatTranscriptsNoSubscriptionsService" ], [ "com.azure.resourcemanager.support.implementation.FileWorkspacesClientImpl$FileWorkspacesService" ], [ "com.azure.resourcemanager.support.implementation.FileWorkspacesNoSubscriptionsClientImpl$FileWorkspacesNoSubscriptionsService" ], [ "com.azure.resourcemanager.support.implementation.FilesClientImpl$FilesService" ], [ "com.azure.resourcemanager.support.implementation.FilesNoSubscriptionsClientImpl$FilesNoSubscriptionsService" ] ] \ No newline at end of file +[["com.azure.resourcemanager.support.implementation.ChatTranscriptsClientImpl$ChatTranscriptsService"],["com.azure.resourcemanager.support.implementation.ChatTranscriptsNoSubscriptionsClientImpl$ChatTranscriptsNoSubscriptionsService"],["com.azure.resourcemanager.support.implementation.CommunicationsClientImpl$CommunicationsService"],["com.azure.resourcemanager.support.implementation.CommunicationsNoSubscriptionsClientImpl$CommunicationsNoSubscriptionsService"],["com.azure.resourcemanager.support.implementation.FileWorkspacesClientImpl$FileWorkspacesService"],["com.azure.resourcemanager.support.implementation.FileWorkspacesNoSubscriptionsClientImpl$FileWorkspacesNoSubscriptionsService"],["com.azure.resourcemanager.support.implementation.FilesClientImpl$FilesService"],["com.azure.resourcemanager.support.implementation.FilesNoSubscriptionsClientImpl$FilesNoSubscriptionsService"],["com.azure.resourcemanager.support.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.support.implementation.ProblemClassificationsClientImpl$ProblemClassificationsService"],["com.azure.resourcemanager.support.implementation.ServicesClientImpl$ServicesService"],["com.azure.resourcemanager.support.implementation.SupportTicketsClientImpl$SupportTicketsService"],["com.azure.resourcemanager.support.implementation.SupportTicketsNoSubscriptionsClientImpl$SupportTicketsNoSubscriptionsService"]] \ No newline at end of file diff --git a/sdk/support/azure-resourcemanager-support/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-support/reflect-config.json b/sdk/support/azure-resourcemanager-support/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-support/reflect-config.json index 1952d22bc1548..0637a088a01e8 100644 --- a/sdk/support/azure-resourcemanager-support/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-support/reflect-config.json +++ b/sdk/support/azure-resourcemanager-support/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-support/reflect-config.json @@ -1,236 +1 @@ -[ { - "name" : "com.azure.resourcemanager.support.models.OperationsListResult", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.OperationInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.OperationDisplay", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.ServicesListResult", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.ServiceInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.ServiceProperties", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.ProblemClassificationsListResult", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.ProblemClassificationProperties", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.SecondaryConsentEnabled", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.CheckNameAvailabilityInput", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.CheckNameAvailabilityOutputInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.SupportTicketsListResult", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.SupportTicketDetailsInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.SupportTicketDetailsProperties", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.ContactProfile", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.ServiceLevelAgreement", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.SupportEngineer", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.TechnicalTicketDetails", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.QuotaTicketDetails", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.QuotaChangeRequest", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.SecondaryConsent", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.UpdateSupportTicket", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.UpdateContactProfile", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.CommunicationsListResult", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.CommunicationDetailsInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.CommunicationDetailsProperties", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.ChatTranscriptsListResult", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.ChatTranscriptDetailsInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.ChatTranscriptDetailsProperties", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.MessageProperties", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.FileWorkspaceDetailsInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.FileWorkspaceDetailsProperties", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.FilesListResult", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.FileDetailsInner", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.fluent.models.FileDetailsProperties", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.UploadFile", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.SeverityLevel", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.Consent", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.PreferredContactMethod", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.IsTemporaryTicket", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.UserConsent", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.Status", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.CommunicationType", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.CommunicationDirection", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.TranscriptContentType", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.support.models.Type", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -} ] \ No newline at end of file +[] \ No newline at end of file diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsGetSamples.java index 2bd605ffca21f..46f64e0b43d81 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsGetSamples.java @@ -9,7 +9,8 @@ */ public final class ChatTranscriptsGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetchatTranscriptDetailsForSubscriptionSupportTicket.json */ /** * Sample code: Get chat transcript details for a subscription support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListSamples.java index 65532a036d300..6fd2f83dc27b5 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListSamples.java @@ -9,7 +9,8 @@ */ public final class ChatTranscriptsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListChatTranscriptsForSubscriptionSupportTicket.json */ /** * Sample code: List chat transcripts for a subscription support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionGetSamples.java index ef69b954d0778..1bda622960cb3 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionGetSamples.java @@ -9,7 +9,8 @@ */ public final class ChatTranscriptsNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetchatTranscriptDetailsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetchatTranscriptDetailsForSupportTicket.json */ /** * Sample code: Get chat transcript details for a subscription support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionListSamples.java index 4d715469dc164..5f2c6c995688a 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionListSamples.java @@ -9,7 +9,8 @@ */ public final class ChatTranscriptsNoSubscriptionListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListChatTranscriptsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListChatTranscriptsForSupportTicket.json */ /** * Sample code: List chat transcripts for a no-subscription support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsCheckNameAvailabilitySamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsCheckNameAvailabilitySamples.java index d2206faf96e09..02030f25fb4ce 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsCheckNameAvailabilitySamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsCheckNameAvailabilitySamples.java @@ -12,7 +12,8 @@ */ public final class CommunicationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForSupportTicketCommunication.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CheckNameAvailabilityForSupportTicketCommunication.json */ /** * Sample code: Checks whether name is available for Communication resource for a subscription support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsCreateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsCreateSamples.java index 6c4a36226a4c6..1c7c43360707c 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsCreateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsCreateSamples.java @@ -9,7 +9,8 @@ */ public final class CommunicationsCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSupportTicketCommunication.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSupportTicketCommunication.json */ /** * Sample code: AddCommunicationToSubscriptionTicket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsGetSamples.java index a456d4fb47a01..1a12c787abb1a 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsGetSamples.java @@ -9,7 +9,8 @@ */ public final class CommunicationsGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetCommunicationDetailsForSubscriptionSupportTicket.json */ /** * Sample code: Get communication details for a subscription support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsListSamples.java index 3ddbba853e425..164f73fcdd4da 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsListSamples.java @@ -9,7 +9,8 @@ */ public final class CommunicationsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListCommunicationsForSubscriptionSupportTicket.json */ /** * Sample code: List communications for a subscription support ticket. @@ -22,7 +23,8 @@ public final class CommunicationsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSubscriptionSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListWebCommunicationsForSubscriptionSupportTicket.json */ /** * Sample code: List web communications for a subscription support ticket. @@ -36,7 +38,8 @@ public final class CommunicationsListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSubscriptionSupportTicketCreatedOnOrAfter.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListWebCommunicationsForSubscriptionSupportTicketCreatedOnOrAfter.json */ /** * Sample code: List web communication created on or after a specific date for a subscription support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionCheckNameAvailabilitySamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionCheckNameAvailabilitySamples.java index 04d9e471661a9..bc10a2584e791 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionCheckNameAvailabilitySamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionCheckNameAvailabilitySamples.java @@ -12,7 +12,8 @@ */ public final class CommunicationsNoSubscriptionCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json */ /** * Sample code: Checks whether name is available for Communication resource. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionCreateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionCreateSamples.java index cdeff17a7fed3..e39918cdd6413 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionCreateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionCreateSamples.java @@ -11,7 +11,8 @@ */ public final class CommunicationsNoSubscriptionCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateNoSubscriptionSupportTicketCommunication.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateNoSubscriptionSupportTicketCommunication.json */ /** * Sample code: AddCommunicationToNoSubscriptionTicket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionGetSamples.java index 74ebdd5fc0b85..8875257048f4b 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionGetSamples.java @@ -9,7 +9,8 @@ */ public final class CommunicationsNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetCommunicationDetailsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetCommunicationDetailsForSupportTicket.json */ /** * Sample code: Get communication details for a no-subscription support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionListSamples.java index 4f0f89438e73c..3382c2a8506c7 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionListSamples.java @@ -9,7 +9,8 @@ */ public final class CommunicationsNoSubscriptionListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListCommunicationsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListCommunicationsForSupportTicket.json */ /** * Sample code: List communications for a no-subscription support ticket. @@ -22,7 +23,8 @@ public final class CommunicationsNoSubscriptionListSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json */ /** * Sample code: List web communication created on or after a specific date for a no-subscription support ticket. @@ -37,7 +39,8 @@ public static void listWebCommunicationCreatedOnOrAfterASpecificDateForANoSubscr } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListWebCommunicationsForSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListWebCommunicationsForSupportTicket.json */ /** * Sample code: List web communications for a no-subscription support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesCreateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesCreateSamples.java index 793df4a4b75de..aaa688f933de4 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesCreateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesCreateSamples.java @@ -9,7 +9,8 @@ */ public final class FileWorkspacesCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspaceForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateFileWorkspaceForSubscription.json */ /** * Sample code: Create a file workspace for a subscription. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesGetSamples.java index a7b714644a637..c8661be364349 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesGetSamples.java @@ -9,7 +9,8 @@ */ public final class FileWorkspacesGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetailsForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetFileWorkspaceDetailsForSubscription.json */ /** * Sample code: Get details of a subscription file workspace. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionCreateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionCreateSamples.java index a9bd828af9a7a..a8863f58ab69a 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionCreateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionCreateSamples.java @@ -9,7 +9,8 @@ */ public final class FileWorkspacesNoSubscriptionCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspace.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileWorkspace.json */ /** * Sample code: Create a file workspace. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionGetSamples.java index bc7b90418d0df..73d16afc460be 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionGetSamples.java @@ -9,7 +9,8 @@ */ public final class FileWorkspacesNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetails.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileWorkspaceDetails.json */ /** * Sample code: Get details of a file workspace. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesCreateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesCreateSamples.java index a810a2be2a95d..a79026095e9a4 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesCreateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesCreateSamples.java @@ -9,7 +9,9 @@ */ public final class FilesCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileForSubscription.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFileForSubscription. + * json */ /** * Sample code: Create a file under a subscription workspace. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesGetSamples.java index 731f96366810a..ade7b28febceb 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesGetSamples.java @@ -9,7 +9,9 @@ */ public final class FilesGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetailsForSubscription.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetailsForSubscription + * .json */ /** * Sample code: Get details of a subscription file. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesListSamples.java index 12125c757474f..978fc5a8da2b6 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesListSamples.java @@ -9,7 +9,8 @@ */ public final class FilesListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesForSubscriptionUnderFileWorkspace.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListFilesForSubscriptionUnderFileWorkspace.json */ /** * Sample code: List files under a workspace for a subscription. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionCreateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionCreateSamples.java index f7b9d45f310b8..0263004d0d4b4 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionCreateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionCreateSamples.java @@ -11,7 +11,8 @@ */ public final class FilesNoSubscriptionCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFile.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateFile.json */ /** * Sample code: Create a file workspace. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionGetSamples.java index 3f35525f84680..a41c2deea14ad 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionGetSamples.java @@ -9,7 +9,8 @@ */ public final class FilesNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetails.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetFileDetails.json */ /** * Sample code: Get details of a subscription file. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionListSamples.java index 715b84c8419ba..f9c06f3bfadf5 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionListSamples.java @@ -9,7 +9,9 @@ */ public final class FilesNoSubscriptionListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesUnderFileWorkspace.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListFilesUnderFileWorkspace. + * json */ /** * Sample code: List files under a workspace. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionUploadSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionUploadSamples.java index 13d6c28be55b7..65f0f807bd754 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionUploadSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionUploadSamples.java @@ -11,7 +11,8 @@ */ public final class FilesNoSubscriptionUploadSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFile.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFile.json */ /** * Sample code: UploadFile. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesUploadSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesUploadSamples.java index 267a9ad5bc095..3af989f955230 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesUploadSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/FilesUploadSamples.java @@ -11,7 +11,9 @@ */ public final class FilesUploadSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFileForSubscription.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UploadFileForSubscription. + * json */ /** * Sample code: UploadFileForSubscription. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/OperationsListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/OperationsListSamples.java index c34b796afd171..5a60941ea35fc 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/OperationsListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/OperationsListSamples.java @@ -9,7 +9,8 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListOperations.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListOperations.json */ /** * Sample code: Get all operations. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsGetSamples.java index 2a30cb55c9a41..449ce117d8ce8 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsGetSamples.java @@ -9,7 +9,8 @@ */ public final class ProblemClassificationsGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetProblemClassification.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetProblemClassification.json */ /** * Sample code: Gets details of problemClassification for Azure service. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListSamples.java index 207cb11b577e9..e4fdd59c15231 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListSamples.java @@ -9,7 +9,9 @@ */ public final class ProblemClassificationsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListProblemClassifications.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListProblemClassifications. + * json */ /** * Sample code: Gets list of problemClassifications for a service for which a support ticket can be created. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServicesGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServicesGetSamples.java index b1c9e65a2d2a3..9cc0dbff9d71d 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServicesGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServicesGetSamples.java @@ -9,7 +9,8 @@ */ public final class ServicesGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetService.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetService.json */ /** * Sample code: Gets details of the Azure service. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServicesListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServicesListSamples.java index 0d898e6ad6197..34386775b2b79 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServicesListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServicesListSamples.java @@ -9,7 +9,8 @@ */ public final class ServicesListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListServices.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListServices.json */ /** * Sample code: Gets list of services for which a support ticket can be created. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsCheckNameAvailabilitySamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsCheckNameAvailabilitySamples.java index 541622e31279e..d97617d424ea9 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsCheckNameAvailabilitySamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsCheckNameAvailabilitySamples.java @@ -12,7 +12,8 @@ */ public final class SupportTicketsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailabilityWithSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CheckNameAvailabilityWithSubscription.json */ /** * Sample code: Checks whether name is available for a subscription support ticket resource. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsCreateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsCreateSamples.java index 13a1fa8a9963b..5232bace000bb 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsCreateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsCreateSamples.java @@ -20,7 +20,8 @@ */ public final class SupportTicketsCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatawarehouseQuotaTicketForDTUs.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlDatawarehouseQuotaTicketForDTUs.json */ /** * Sample code: Create a ticket to request Quota increase for DTUs for Azure Synapse Analytics. @@ -55,7 +56,8 @@ public static void createATicketToRequestQuotaIncreaseForDTUsForAzureSynapseAnal } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json */ /** * Sample code: Create a ticket to request Quota increase for Active Jobs and Job Schedules for a Batch account. @@ -90,7 +92,8 @@ public static void createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedul } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateMachineLearningQuotaTicketForLowPriorityCores.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateMachineLearningQuotaTicketForLowPriorityCores.json */ /** * Sample code: Create a ticket to request Quota increase for Low-priority cores for Machine Learning service. @@ -125,7 +128,8 @@ public static void createATicketToRequestQuotaIncreaseForLowPriorityCoresForMach } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSubscription.json */ /** * Sample code: Create a ticket to request Quota increase for Batch accounts for a subscription. @@ -160,7 +164,8 @@ public static void createATicketToRequestQuotaIncreaseForBatchAccountsForASubscr } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatabaseQuotaTicketForDTUs.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlDatabaseQuotaTicketForDTUs.json */ /** * Sample code: Create a ticket to request Quota increase for DTUs for SQL Database. @@ -195,7 +200,8 @@ public static void createATicketToRequestQuotaIncreaseForDTUsForSQLDatabase( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateGenericQuotaTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateGenericQuotaTicket.json */ /** * Sample code: Create a ticket to request Quota increase for services that do not require additional details in the @@ -226,7 +232,8 @@ public static void createATicketToRequestQuotaIncreaseForDTUsForSQLDatabase( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json */ /** * Sample code: Create a ticket to request Quota increase for Low-priority cores for a Batch account. @@ -261,7 +268,8 @@ public static void createATicketToRequestQuotaIncreaseForLowPriorityCoresForABat } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlManagedInstanceQuotaTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlManagedInstanceQuotaTicket.json */ /** * Sample code: Create a ticket to request Quota increase for Azure SQL managed instance. @@ -299,7 +307,8 @@ public static void createATicketToRequestQuotaIncreaseForAzureSQLManagedInstance } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSubMgmtSupportTicketForSubscription.json */ /** * Sample code: Create a ticket for Subscription Management related issues for a subscription. @@ -331,7 +340,8 @@ public static void createATicketForSubscriptionManagementRelatedIssuesForASubscr } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateTechnicalSupportTicketForSubscription.json */ /** * Sample code: Create a ticket for Technical issue related to a specific resource for a subscription. @@ -369,7 +379,8 @@ public static void createATicketForTechnicalIssueRelatedToASpecificResourceForAS } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForPools.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSpecificBatchAccountForPools.json */ /** * Sample code: Create a ticket to request Quota increase for Pools for a Batch account. @@ -404,7 +415,8 @@ public static void createATicketToRequestQuotaIncreaseForPoolsForABatchAccount( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json */ /** * Sample code: Create a ticket to request Quota increase for specific VM family cores for a Batch account. @@ -440,7 +452,8 @@ public static void createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresFo } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatabaseQuotaTicketForServers.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlDatabaseQuotaTicketForServers.json */ /** * Sample code: Create a ticket to request Quota increase for Servers for SQL Database. @@ -475,7 +488,8 @@ public static void createATicketToRequestQuotaIncreaseForServersForSQLDatabase( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateBillingSupportTicketForSubscription.json */ /** * Sample code: Create a ticket for Billing related issues. @@ -506,7 +520,8 @@ public static void createATicketForBillingRelatedIssues(com.azure.resourcemanage } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateMachineLearningQuotaTicketForDedicatedCores.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateMachineLearningQuotaTicketForDedicatedCores.json */ /** * Sample code: Create a ticket to request Quota increase for specific VM family cores for Machine Learning service. @@ -541,7 +556,8 @@ public static void createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresFo } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSqlDatawarehouseQuotaTicketForServers.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateSqlDatawarehouseQuotaTicketForServers.json */ /** * Sample code: Create a ticket to request Quota increase for Servers for Azure Synapse Analytics. @@ -576,7 +592,8 @@ public static void createATicketToRequestQuotaIncreaseForServersForAzureSynapseA } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateCoresQuotaTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * CreateCoresQuotaTicketForSubscription.json */ /** * Sample code: Create a ticket to request Quota increase for Compute VM Cores. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsGetSamples.java index 0bfdaad9a8786..f2246d1680175 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsGetSamples.java @@ -9,7 +9,8 @@ */ public final class SupportTicketsGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSubscriptionSupportTicketDetails.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * GetSubscriptionSupportTicketDetails.json */ /** * Sample code: Get details of a subscription ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsListSamples.java index 9d2a91efb6b01..a4b8bcf3a0119 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsListSamples.java @@ -9,7 +9,8 @@ */ public final class SupportTicketsListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsServiceIdEqualsForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsServiceIdEqualsForSubscription.json */ /** * Sample code: List support tickets with a certain service id for a subscription. @@ -22,7 +23,8 @@ public static void listSupportTicketsWithACertainServiceIdForASubscription( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json */ /** * Sample code: List support tickets created on or after a certain date and in open state for a subscription. @@ -36,7 +38,8 @@ public static void listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateF } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInUpdatingStateBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsInUpdatingStateBySubscription.json */ /** * Sample code: List support tickets in updating state for a subscription. @@ -49,7 +52,8 @@ public static void listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenStateF } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json */ /** * Sample code: List support tickets created on or after a certain date and in updating state for a subscription. @@ -64,7 +68,8 @@ public static void listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingSt } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsProblemClassificationIdEqualsForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsProblemClassificationIdEqualsForSubscription.json */ /** * Sample code: List support tickets with a certain problem classification id for a subscription. @@ -79,7 +84,8 @@ public static void listSupportTicketsWithACertainProblemClassificationIdForASubs } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsBySubscription.json */ /** * Sample code: List support tickets for a subscription. @@ -91,7 +97,8 @@ public static void listSupportTicketsForASubscription(com.azure.resourcemanager. } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenStateBySubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsInOpenStateBySubscription.json */ /** * Sample code: List support tickets in open state for a subscription. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionCheckNameAvailabilitySamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionCheckNameAvailabilitySamples.java index b6062b457a9a5..54c96d0d62685 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionCheckNameAvailabilitySamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionCheckNameAvailabilitySamples.java @@ -12,7 +12,8 @@ */ public final class SupportTicketsNoSubscriptionCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailability.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CheckNameAvailability.json */ /** * Sample code: Checks whether name is available for SupportTicket resource. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionCreateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionCreateSamples.java index e6174802fe588..a7000e6cf095d 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionCreateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionCreateSamples.java @@ -18,7 +18,9 @@ */ public final class SupportTicketsNoSubscriptionCreateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateBillingSupportTicket. + * json */ /** * Sample code: Create a ticket for Billing related issues. @@ -48,7 +50,9 @@ public static void createATicketForBillingRelatedIssues(com.azure.resourcemanage } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateSubMgmtSupportTicket. + * json */ /** * Sample code: Create a ticket for Subscription Management related issues. @@ -79,7 +83,9 @@ public static void createATicketForBillingRelatedIssues(com.azure.resourcemanage } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/CreateTechnicalSupportTicket. + * json */ /** * Sample code: Create a ticket for Technical issue related to a specific resource. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionGetSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionGetSamples.java index 2c30510167eda..7e29868ffe11b 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionGetSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionGetSamples.java @@ -9,7 +9,8 @@ */ public final class SupportTicketsNoSubscriptionGetSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSupportTicketDetails.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/GetSupportTicketDetails.json */ /** * Sample code: Get details of a ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionListSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionListSamples.java index cb59895f743f3..e44b0df2644fd 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionListSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionListSamples.java @@ -9,7 +9,8 @@ */ public final class SupportTicketsNoSubscriptionListSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json */ /** * Sample code: List support tickets created on or after a certain date and in updating state. @@ -24,7 +25,9 @@ public static void listSupportTicketsCreatedOnOrAfterACertainDateAndInUpdatingSt } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenState.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInOpenState + * .json */ /** * Sample code: List support tickets in open state. @@ -36,7 +39,8 @@ public static void listSupportTicketsInOpenState(com.azure.resourcemanager.suppo } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTickets.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTickets.json */ /** * Sample code: List support tickets. @@ -48,7 +52,8 @@ public static void listSupportTickets(com.azure.resourcemanager.support.SupportM } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsInUpdatingState.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsInUpdatingState.json */ /** * Sample code: List support tickets in updating state. @@ -60,7 +65,8 @@ public static void listSupportTicketsInUpdatingState(com.azure.resourcemanager.s } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenState.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsCreatedOnOrAfterAndInOpenState.json */ /** * Sample code: List support tickets created on or after a certain date and in open state. @@ -74,7 +80,8 @@ public static void listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenState( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsServiceIdEquals.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsServiceIdEquals.json */ /** * Sample code: List support tickets with a certain service id. @@ -88,7 +95,8 @@ public static void listSupportTicketsCreatedOnOrAfterACertainDateAndInOpenState( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ListSupportTicketsProblemClassificationIdEquals.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * ListSupportTicketsProblemClassificationIdEquals.json */ /** * Sample code: List support tickets with a certain problem classification id. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionUpdateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionUpdateSamples.java index 3f79fd48aabdf..9176e0511024d 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionUpdateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionUpdateSamples.java @@ -17,7 +17,8 @@ */ public final class SupportTicketsNoSubscriptionUpdateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateAdvancedDiagnosticConsentOfSupportTicket.json */ /** * Sample code: Update advanced diagnostic consent of a support ticket. @@ -32,7 +33,9 @@ public final class SupportTicketsNoSubscriptionUpdateSamples { } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateSeverityOfSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateSeverityOfSupportTicket + * .json */ /** * Sample code: Update severity of a support ticket. @@ -46,7 +49,9 @@ public static void updateSeverityOfASupportTicket(com.azure.resourcemanager.supp } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateStatusOfSupportTicket.json + * x-ms-original-file: + * specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateStatusOfSupportTicket. + * json */ /** * Sample code: Update status of a support ticket. @@ -60,7 +65,8 @@ public static void updateStatusOfASupportTicket(com.azure.resourcemanager.suppor } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateContactDetailsOfSupportTicket.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateContactDetailsOfSupportTicket.json */ /** * Sample code: Update contact details of a support ticket. diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsUpdateSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsUpdateSamples.java index 38954273e48bb..32ba036f14a78 100644 --- a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsUpdateSamples.java +++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/SupportTicketsUpdateSamples.java @@ -17,7 +17,8 @@ */ public final class SupportTicketsUpdateSamples { /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json */ /** * Sample code: Update advanced diagnostic consent of a subscription support ticket. @@ -32,7 +33,8 @@ public static void updateAdvancedDiagnosticConsentOfASubscriptionSupportTicket( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateSeverityOfSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateSeverityOfSupportTicketForSubscription.json */ /** * Sample code: Update severity of a subscription support ticket. @@ -47,7 +49,8 @@ public static void updateAdvancedDiagnosticConsentOfASubscriptionSupportTicket( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateStatusOfSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateStatusOfSupportTicketForSubscription.json */ /** * Sample code: Update status of a subscription support ticket. @@ -62,7 +65,8 @@ public static void updateAdvancedDiagnosticConsentOfASubscriptionSupportTicket( } /* - * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/UpdateContactDetailsOfSupportTicketForSubscription.json + * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/examples/ + * UpdateContactDetailsOfSupportTicketForSubscription.json */ /** * Sample code: Update contact details of a subscription support ticket.