diff --git a/sdk/support/azure-resourcemanager-support/CHANGELOG.md b/sdk/support/azure-resourcemanager-support/CHANGELOG.md
index 32478dfa4452d..1bb7439faab5b 100644
--- a/sdk/support/azure-resourcemanager-support/CHANGELOG.md
+++ b/sdk/support/azure-resourcemanager-support/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2024-05-20)
+
+- 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-preview-2023-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/support/azure-resourcemanager-support/README.md b/sdk/support/azure-resourcemanager-support/README.md
index a61658cd84bb9..790bc627c3efe 100644
--- a/sdk/support/azure-resourcemanager-support/README.md
+++ b/sdk/support/azure-resourcemanager-support/README.md
@@ -2,7 +2,7 @@
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).
+This package contains Microsoft Azure SDK for support Management SDK. Microsoft Azure Support Resource Provider. Package tag package-preview-2023-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -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-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/support/azure-resourcemanager-support/SAMPLE.md b/sdk/support/azure-resourcemanager-support/SAMPLE.md
index 04ce4ddb95890..3d95cc93aa996 100644
--- a/sdk/support/azure-resourcemanager-support/SAMPLE.md
+++ b/sdk/support/azure-resourcemanager-support/SAMPLE.md
@@ -49,15 +49,32 @@
- [List](#filesnosubscription_list)
- [Upload](#filesnosubscription_upload)
+## LookUpResourceId
+
+- [Post](#lookupresourceid_post)
+
## Operations
- [List](#operations_list)
## ProblemClassifications
+- [ClassifyProblems](#problemclassifications_classifyproblems)
- [Get](#problemclassifications_get)
- [List](#problemclassifications_list)
+## ProblemClassificationsNoSubscription
+
+- [ClassifyProblems](#problemclassificationsnosubscription_classifyproblems)
+
+## ServiceClassifications
+
+- [ClassifyServices](#serviceclassifications_classifyservices)
+
+## ServiceClassificationsNoSubscription
+
+- [ClassifyServices](#serviceclassificationsnosubscription_classifyservices)
+
## Services
- [Get](#services_get)
@@ -86,7 +103,7 @@
*/
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/preview/2023-06-01-preview/examples/GetchatTranscriptDetailsForSubscriptionSupportTicket.json
*/
/**
* Sample code: Get chat transcript details for a subscription support ticket.
@@ -109,7 +126,7 @@ 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/preview/2023-06-01-preview/examples/ListChatTranscriptsForSubscriptionSupportTicket.json
*/
/**
* Sample code: List chat transcripts for a subscription support ticket.
@@ -131,7 +148,7 @@ 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/preview/2023-06-01-preview/examples/GetchatTranscriptDetailsForSupportTicket.json
*/
/**
* Sample code: Get chat transcript details for a subscription support ticket.
@@ -154,7 +171,7 @@ 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/preview/2023-06-01-preview/examples/ListChatTranscriptsForSupportTicket.json
*/
/**
* Sample code: List chat transcripts for a no-subscription support ticket.
@@ -179,14 +196,14 @@ 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/preview/2023-06-01-preview/examples/CheckNameAvailabilityForSupportTicketCommunication.json
*/
/**
- * Sample code: Checks whether name is available for Communication resource for a subscription support ticket.
+ * Sample code: Checks whether name is available for subscription scoped Communication resource.
*
* @param manager Entry point to SupportManager.
*/
- public static void checksWhetherNameIsAvailableForCommunicationResourceForASubscriptionSupportTicket(
+ public static void checksWhetherNameIsAvailableForSubscriptionScopedCommunicationResource(
com.azure.resourcemanager.support.SupportManager manager) {
manager.communications()
.checkNameAvailabilityWithResponse("testticket",
@@ -204,7 +221,7 @@ 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/preview/2023-06-01-preview/examples/CreateSupportTicketCommunication.json
*/
/**
* Sample code: AddCommunicationToSubscriptionTicket.
@@ -215,9 +232,9 @@ public final class CommunicationsCreateSamples {
manager.communications()
.define("testcommunication")
.withExistingSupportTicket("testticket")
+ .withSender("user@contoso.com")
.withSubject("This is a test message from a customer!")
.withBody("This is a test message from a customer!")
- .withSender("user@contoso.com")
.create();
}
}
@@ -231,7 +248,7 @@ 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/preview/2023-06-01-preview/examples/GetCommunicationDetailsForSubscriptionSupportTicket.json
*/
/**
* Sample code: Get communication details for a subscription support ticket.
@@ -253,7 +270,7 @@ 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/preview/2023-06-01-preview/examples/ListCommunicationsForSubscriptionSupportTicket.json
*/
/**
* Sample code: List communications for a subscription support ticket.
@@ -266,7 +283,7 @@ 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/preview/2023-06-01-preview/examples/ListWebCommunicationsForSubscriptionSupportTicket.json
*/
/**
* Sample code: List web communications for a subscription support ticket.
@@ -280,7 +297,7 @@ 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/preview/2023-06-01-preview/examples/ListWebCommunicationsForSubscriptionSupportTicketCreatedOnOrAfter.json
*/
/**
* Sample code: List web communication created on or after a specific date for a subscription support ticket.
@@ -307,7 +324,7 @@ 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/preview/2023-06-01-preview/examples/CheckNameAvailabilityForNoSubscriptionSupportTicketCommunication.json
*/
/**
* Sample code: Checks whether name is available for Communication resource.
@@ -334,7 +351,7 @@ 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/preview/2023-06-01-preview/examples/CreateNoSubscriptionSupportTicketCommunication.json
*/
/**
* Sample code: AddCommunicationToNoSubscriptionTicket.
@@ -361,7 +378,7 @@ 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/preview/2023-06-01-preview/examples/GetCommunicationDetailsForSupportTicket.json
*/
/**
* Sample code: Get communication details for a no-subscription support ticket.
@@ -384,7 +401,7 @@ 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/preview/2023-06-01-preview/examples/ListCommunicationsForSupportTicket.json
*/
/**
* Sample code: List communications for a no-subscription support ticket.
@@ -397,7 +414,7 @@ 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/preview/2023-06-01-preview/examples/ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json
*/
/**
* Sample code: List web communication created on or after a specific date for a no-subscription support ticket.
@@ -412,7 +429,7 @@ 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/preview/2023-06-01-preview/examples/ListWebCommunicationsForSupportTicket.json
*/
/**
* Sample code: List web communications for a no-subscription support ticket.
@@ -435,14 +452,15 @@ 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/preview/2023-06-01-preview/examples/CreateFileWorkspaceForSubscription.json
*/
/**
- * Sample code: Create a file workspace for a subscription.
+ * Sample code: Create a subscription scoped file workspace.
*
* @param manager Entry point to SupportManager.
*/
- public static void createAFileWorkspaceForASubscription(com.azure.resourcemanager.support.SupportManager manager) {
+ public static void
+ createASubscriptionScopedFileWorkspace(com.azure.resourcemanager.support.SupportManager manager) {
manager.fileWorkspaces().createWithResponse("testworkspace", com.azure.core.util.Context.NONE);
}
}
@@ -456,7 +474,7 @@ 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/preview/2023-06-01-preview/examples/GetFileWorkspaceDetailsForSubscription.json
*/
/**
* Sample code: Get details of a subscription file workspace.
@@ -478,7 +496,7 @@ 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/preview/2023-06-01-preview/examples/CreateFileWorkspace.json
*/
/**
* Sample code: Create a file workspace.
@@ -499,7 +517,7 @@ 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/preview/2023-06-01-preview/examples/GetFileWorkspaceDetails.json
*/
/**
* Sample code: Get details of a file workspace.
@@ -520,15 +538,14 @@ 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/preview/2023-06-01-preview/examples/CreateFileForSubscription.json
*/
/**
- * Sample code: Create a file under a subscription workspace.
+ * Sample code: Create a subscription scoped file.
*
* @param manager Entry point to SupportManager.
*/
- public static void
- createAFileUnderASubscriptionWorkspace(com.azure.resourcemanager.support.SupportManager manager) {
+ public static void createASubscriptionScopedFile(com.azure.resourcemanager.support.SupportManager manager) {
manager.files()
.define("test.txt")
.withExistingFileWorkspace("testworkspace")
@@ -548,7 +565,7 @@ 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/preview/2023-06-01-preview/examples/GetFileDetailsForSubscription.json
*/
/**
* Sample code: Get details of a subscription file.
@@ -569,7 +586,7 @@ 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/preview/2023-06-01-preview/examples/ListFilesForSubscriptionUnderFileWorkspace.json
*/
/**
* Sample code: List files under a workspace for a subscription.
@@ -593,7 +610,7 @@ 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/preview/2023-06-01-preview/examples/UploadFileForSubscription.json
*/
/**
* Sample code: UploadFileForSubscription.
@@ -619,7 +636,7 @@ 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/preview/2023-06-01-preview/examples/CreateFile.json
*/
/**
* Sample code: Create a file workspace.
@@ -643,7 +660,7 @@ 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/preview/2023-06-01-preview/examples/GetFileDetails.json
*/
/**
* Sample code: Get details of a subscription file.
@@ -664,7 +681,7 @@ 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/preview/2023-06-01-preview/examples/ListFilesUnderFileWorkspace.json
*/
/**
* Sample code: List files under a workspace.
@@ -687,7 +704,7 @@ 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/preview/2023-06-01-preview/examples/UploadFile.json
*/
/**
* Sample code: UploadFile.
@@ -703,6 +720,32 @@ public final class FilesNoSubscriptionUploadSamples {
}
```
+### LookUpResourceId_Post
+
+```java
+import com.azure.resourcemanager.support.models.LookUpResourceIdRequest;
+import com.azure.resourcemanager.support.models.ResourceType;
+
+/**
+ * Samples for LookUpResourceId Post.
+ */
+public final class LookUpResourceIdPostSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/LookUpResourceId.json
+ */
+ /**
+ * Sample code: Look up resource id of support resource type.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void lookUpResourceIdOfSupportResourceType(com.azure.resourcemanager.support.SupportManager manager) {
+ manager.lookUpResourceIds()
+ .postWithResponse(new LookUpResourceIdRequest().withIdentifier("1234668596")
+ .withType(ResourceType.MICROSOFT_SUPPORT_SUPPORT_TICKETS), com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Operations_List
```java
@@ -711,7 +754,7 @@ 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/preview/2023-06-01-preview/examples/ListOperations.json
*/
/**
* Sample code: Get all operations.
@@ -724,6 +767,35 @@ public final class OperationsListSamples {
}
```
+### ProblemClassifications_ClassifyProblems
+
+```java
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
+
+/**
+ * Samples for ProblemClassifications ClassifyProblems.
+ */
+public final class ProblemClassificationsClassifyProblemsSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassificationsForSubscription.json
+ */
+ /**
+ * Sample code: Classify list of problemClassifications for a specified Azure service for a subscription.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void classifyListOfProblemClassificationsForASpecifiedAzureServiceForASubscription(
+ com.azure.resourcemanager.support.SupportManager manager) {
+ manager.problemClassifications()
+ .classifyProblemsWithResponse("serviceId1", new ProblemClassificationsClassificationInput()
+ .withIssueSummary("Can not connect to Windows VM")
+ .withResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### ProblemClassifications_Get
```java
@@ -732,7 +804,7 @@ 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/preview/2023-06-01-preview/examples/GetProblemClassification.json
*/
/**
* Sample code: Gets details of problemClassification for Azure service.
@@ -755,7 +827,7 @@ 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/preview/2023-06-01-preview/examples/ListProblemClassifications.json
*/
/**
* Sample code: Gets list of problemClassifications for a service for which a support ticket can be created.
@@ -769,6 +841,90 @@ public final class ProblemClassificationsListSamples {
}
```
+### ProblemClassificationsNoSubscription_ClassifyProblems
+
+```java
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
+
+/**
+ * Samples for ProblemClassificationsNoSubscription ClassifyProblems.
+ */
+public final class ProblemClassificationsNoSubscriptionClassifyProblemsSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassifications.json
+ */
+ /**
+ * Sample code: Classify list of problemClassifications for a specified Azure service.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void classifyListOfProblemClassificationsForASpecifiedAzureService(
+ com.azure.resourcemanager.support.SupportManager manager) {
+ manager.problemClassificationsNoSubscriptions()
+ .classifyProblemsWithResponse("serviceId1",
+ new ProblemClassificationsClassificationInput().withIssueSummary("Can not connect to Windows VM"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ServiceClassifications_ClassifyServices
+
+```java
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+
+/**
+ * Samples for ServiceClassifications ClassifyServices.
+ */
+public final class ServiceClassificationsClassifyServicesSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServicesForSubscription.json
+ */
+ /**
+ * Sample code: Classify list of Azure services for a subscription.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void
+ classifyListOfAzureServicesForASubscription(com.azure.resourcemanager.support.SupportManager manager) {
+ manager.serviceClassifications()
+ .classifyServicesWithResponse(new ServiceClassificationRequest()
+ .withIssueSummary("Can not connect to Windows VM")
+ .withResourceId(
+ "/subscriptions/76cb77fa-8b17-4eab-9493-b65dace99813/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ServiceClassificationsNoSubscription_ClassifyServices
+
+```java
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+
+/**
+ * Samples for ServiceClassificationsNoSubscription ClassifyServices.
+ */
+public final class ServiceClassificationsNoSubscriptionClassifyServicesSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServices.json
+ */
+ /**
+ * Sample code: Classify list of Azure services.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void classifyListOfAzureServices(com.azure.resourcemanager.support.SupportManager manager) {
+ manager.serviceClassificationsNoSubscriptions()
+ .classifyServicesWithResponse(new ServiceClassificationRequest()
+ .withIssueSummary("Can not connect to Windows VM")
+ .withResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Services_Get
```java
@@ -777,7 +933,7 @@ 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/preview/2023-06-01-preview/examples/GetService.json
*/
/**
* Sample code: Gets details of the Azure service.
@@ -798,7 +954,7 @@ 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/preview/2023-06-01-preview/examples/ListServices.json
*/
/**
* Sample code: Gets list of services for which a support ticket can be created.
@@ -823,14 +979,14 @@ 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/preview/2023-06-01-preview/examples/CheckNameAvailabilityWithSubscription.json
*/
/**
- * Sample code: Checks whether name is available for a subscription support ticket resource.
+ * Sample code: Checks whether name is available for subscription scoped SupportTicket resource.
*
* @param manager Entry point to SupportManager.
*/
- public static void checksWhetherNameIsAvailableForASubscriptionSupportTicketResource(
+ public static void checksWhetherNameIsAvailableForSubscriptionScopedSupportTicketResource(
com.azure.resourcemanager.support.SupportManager manager) {
manager.supportTickets()
.checkNameAvailabilityWithResponse(new CheckNameAvailabilityInput().withName("sampleName")
@@ -858,7 +1014,7 @@ 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/preview/2023-06-01-preview/examples/CreateSqlDatawarehouseQuotaTicketForDTUs.json
*/
/**
* Sample code: Create a ticket to request Quota increase for DTUs for Azure Synapse Analytics.
@@ -874,6 +1030,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_datawarehouse_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -883,8 +1041,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("DTUs")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -893,7 +1049,38 @@ 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/preview/2023-06-01-preview/examples/CreateSubMgmtSupportTicketForSubscription.json
+ */
+ /**
+ * Sample code: Create a subscription scoped ticket for Subscription Management related issues.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void createASubscriptionScopedTicketForSubscriptionManagementRelatedIssues(
+ com.azure.resourcemanager.support.SupportManager manager) {
+ manager.supportTickets()
+ .define("testticket")
+ .withDescription("my description")
+ .withProblemClassificationId(
+ "/providers/Microsoft.Support/services/subscription_management_service_guid/problemClassifications/subscription_management_problemClassification_guid")
+ .withSeverity(SeverityLevel.MODERATE)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
+ .withContactDetails(new ContactProfile().withFirstName("abc")
+ .withLastName("xyz")
+ .withPreferredContactMethod(PreferredContactMethod.EMAIL)
+ .withPrimaryEmailAddress("abc@contoso.com")
+ .withPreferredTimeZone("Pacific Standard Time")
+ .withCountry("usa")
+ .withPreferredSupportLanguage("en-US"))
+ .withTitle("my title")
+ .withServiceId("/providers/Microsoft.Support/services/subscription_management_service_guid")
+ .withFileWorkspaceName("6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Active Jobs and Job Schedules for a Batch account.
@@ -909,6 +1096,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -918,8 +1107,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Account")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -928,7 +1115,7 @@ 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/preview/2023-06-01-preview/examples/CreateMachineLearningQuotaTicketForLowPriorityCores.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Low-priority cores for Machine Learning service.
@@ -944,6 +1131,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/machine_learning_service_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -953,8 +1142,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("BatchAml")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -963,7 +1150,7 @@ 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/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSubscription.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Batch accounts for a subscription.
@@ -979,6 +1166,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -988,8 +1177,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Subscription")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -998,7 +1185,7 @@ 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/preview/2023-06-01-preview/examples/CreateSqlDatabaseQuotaTicketForDTUs.json
*/
/**
* Sample code: Create a ticket to request Quota increase for DTUs for SQL Database.
@@ -1014,6 +1201,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_database_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1023,8 +1212,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("DTUs")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -1033,7 +1220,7 @@ 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/preview/2023-06-01-preview/examples/CreateGenericQuotaTicket.json
*/
/**
* Sample code: Create a ticket to request Quota increase for services that do not require additional details in the
@@ -1050,7 +1237,6 @@ public final class SupportTicketsCreateSamples {
.withProblemClassificationId(
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/cosmosdb_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.YES)
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1064,7 +1250,7 @@ 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/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Low-priority cores for a Batch account.
@@ -1080,6 +1266,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1089,8 +1277,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Account")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -1099,60 +1285,23 @@ 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/preview/2023-06-01-preview/examples/CreateBillingSupportTicketForSubscription.json
*/
/**
- * Sample code: Create a ticket to request Quota increase for Azure SQL managed instance.
+ * Sample code: Create a subscription scoped ticket for Billing related issues.
*
* @param manager Entry point to SupportManager.
*/
- public static void createATicketToRequestQuotaIncreaseForAzureSQLManagedInstance(
+ public static void createASubscriptionScopedTicketForBillingRelatedIssues(
com.azure.resourcemanager.support.SupportManager manager) {
manager.supportTickets()
.define("testticket")
.withDescription("my description")
.withProblemClassificationId(
- "/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_managedinstance_problemClassification_guid")
+ "/providers/Microsoft.Support/services/billing_service_guid/problemClassifications/billing_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.YES)
- .withContactDetails(new ContactProfile().withFirstName("abc")
- .withLastName("xyz")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("abc@contoso.com")
- .withPreferredTimeZone("Pacific Standard Time")
- .withCountry("usa")
- .withPreferredSupportLanguage("en-US"))
- .withTitle("my title")
- .withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
.withSupportPlanId(
"U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("SQLMI")
- .withQuotaChangeRequestVersion("1.0")
- .withQuotaChangeRequests(Arrays.asList(
- new QuotaChangeRequest().withRegion("EastUS")
- .withPayload("{\"NewLimit\":200, \"Metadata\":null, \"Type\":\"vCore\"}"),
- new QuotaChangeRequest().withRegion("EastUS")
- .withPayload("{\"NewLimit\":200, \"Metadata\":null, \"Type\":\"Subnet\"}"))))
- .create();
- }
-
- /*
- * 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.
- *
- * @param manager Entry point to SupportManager.
- */
- public static void createATicketForSubscriptionManagementRelatedIssuesForASubscription(
- com.azure.resourcemanager.support.SupportManager manager) {
- manager.supportTickets()
- .define("testticket")
- .withDescription("my description")
- .withProblemClassificationId(
- "/providers/Microsoft.Support/services/subscription_management_service_guid/problemClassifications/subscription_management_problemClassification_guid")
- .withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.NO)
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1161,30 +1310,30 @@ public final class SupportTicketsCreateSamples {
.withCountry("usa")
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
- .withServiceId("/providers/Microsoft.Support/services/subscription_management_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
+ .withServiceId("/providers/Microsoft.Support/services/billing_service_guid")
.withFileWorkspaceName("6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066")
.create();
}
/*
- * 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/preview/2023-06-01-preview/examples/CreateSqlManagedInstanceQuotaTicket.json
*/
/**
- * Sample code: Create a ticket for Technical issue related to a specific resource for a subscription.
+ * Sample code: Create a ticket to request Quota increase for Azure SQL managed instance.
*
* @param manager Entry point to SupportManager.
*/
- public static void createATicketForTechnicalIssueRelatedToASpecificResourceForASubscription(
+ public static void createATicketToRequestQuotaIncreaseForAzureSQLManagedInstance(
com.azure.resourcemanager.support.SupportManager manager) {
manager.supportTickets()
.define("testticket")
.withDescription("my description")
.withProblemClassificationId(
- "/providers/Microsoft.Support/services/virtual_machine_running_linux_service_guid/problemClassifications/problemClassification_guid")
+ "/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_managedinstance_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1193,21 +1342,19 @@ public final class SupportTicketsCreateSamples {
.withCountry("usa")
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
- .withServiceId("/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc")
- .withProblemScopingQuestions(
- "{\"articleId\":\"076846c1-4c0b-4b21-91c6-1a30246b3867\",\"scopingDetails\":[{\"question\":\"When did the problem begin?\",\"controlId\":\"problem_start_time\",\"orderId\":1,\"inputType\":\"static\",\"answer\":{\"displayValue\":\"2023-08-31T18:55:00.739Z\",\"value\":\"2023-08-31T18:55:00.739Z\",\"type\":\"datetime\"}},{\"question\":\"API Type of the Cosmos DB account\",\"controlId\":\"api_type\",\"orderId\":2,\"inputType\":\"static\",\"answer\":{\"displayValue\":\"Table\",\"value\":\"tables\",\"type\":\"string\"}},{\"question\":\"Table name\",\"controlId\":\"collection_name_table\",\"orderId\":11,\"inputType\":\"nonstatic\",\"answer\":{\"displayValue\":\"Select Table Name\",\"value\":\"dont_know_answer\",\"type\":\"string\"}},{\"question\":\"Provide additional details about the issue you're facing\",\"controlId\":\"problem_description\",\"orderId\":12,\"inputType\":\"nonstatic\",\"answer\":{\"displayValue\":\"test ticket, please ignore and close\",\"value\":\"test ticket, please ignore and close\",\"type\":\"string\"}}]}")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
- .withFileWorkspaceName("6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId(
- "/subscriptions/132d901f-189d-4381-9214-fe68e27e05a1/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/testserver"))
- .withSecondaryConsent(Arrays.asList(
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("virtualmachinerunninglinuxservice")))
+ .withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
+ .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("SQLMI")
+ .withQuotaChangeRequestVersion("1.0")
+ .withQuotaChangeRequests(Arrays.asList(
+ new QuotaChangeRequest().withRegion("EastUS")
+ .withPayload("{\"NewLimit\":200, \"Metadata\":null, \"Type\":\"vCore\"}"),
+ new QuotaChangeRequest().withRegion("EastUS")
+ .withPayload("{\"NewLimit\":200, \"Metadata\":null, \"Type\":\"Subnet\"}"))))
.create();
}
/*
- * 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/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForPools.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Pools for a Batch account.
@@ -1223,6 +1370,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1232,8 +1381,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Account")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -1242,7 +1389,7 @@ 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/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json
*/
/**
* Sample code: Create a ticket to request Quota increase for specific VM family cores for a Batch account.
@@ -1258,6 +1405,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1267,8 +1416,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Account")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -1278,7 +1425,7 @@ 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/preview/2023-06-01-preview/examples/CreateSqlDatabaseQuotaTicketForServers.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Servers for SQL Database.
@@ -1294,6 +1441,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_database_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1303,8 +1452,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Servers")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(
@@ -1313,21 +1460,26 @@ 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/preview/2023-06-01-preview/examples/CreateTechnicalSupportTicketForSubscription.json
*/
/**
- * Sample code: Create a ticket for Billing related issues.
+ * Sample code: Create a subscription scoped ticket for Technical issue related to a specific resource.
*
* @param manager Entry point to SupportManager.
*/
- public static void createATicketForBillingRelatedIssues(com.azure.resourcemanager.support.SupportManager manager) {
+ public static void createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecificResource(
+ com.azure.resourcemanager.support.SupportManager manager) {
manager.supportTickets()
.define("testticket")
.withDescription("my description")
.withProblemClassificationId(
- "/providers/Microsoft.Support/services/billing_service_guid/problemClassifications/billing_problemClassification_guid")
+ "/providers/Microsoft.Support/services/virtual_machine_running_linux_service_guid/problemClassifications/problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.NO)
+ .withAdvancedDiagnosticConsent(Consent.YES)
+ .withProblemScopingQuestions(
+ "{\"articleId\":\"076846c1-4c0b-4b21-91c6-1a30246b3867\",\"scopingDetails\":[{\"question\":\"When did the problem begin?\",\"controlId\":\"problem_start_time\",\"orderId\":1,\"inputType\":\"static\",\"answer\":{\"displayValue\":\"2023-08-31T18:55:00.739Z\",\"value\":\"2023-08-31T18:55:00.739Z\",\"type\":\"datetime\"}},{\"question\":\"API Type of the Cosmos DB account\",\"controlId\":\"api_type\",\"orderId\":2,\"inputType\":\"static\",\"answer\":{\"displayValue\":\"Table\",\"value\":\"tables\",\"type\":\"string\"}},{\"question\":\"Table name\",\"controlId\":\"collection_name_table\",\"orderId\":11,\"inputType\":\"nonstatic\",\"answer\":{\"displayValue\":\"Select Table Name\",\"value\":\"dont_know_answer\",\"type\":\"string\"}},{\"question\":\"Provide additional details about the issue you're facing\",\"controlId\":\"problem_description\",\"orderId\":12,\"inputType\":\"nonstatic\",\"answer\":{\"displayValue\":\"test ticket, please ignore and close\",\"value\":\"test ticket, please ignore and close\",\"type\":\"string\"}}]}")
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1336,15 +1488,17 @@ public final class SupportTicketsCreateSamples {
.withCountry("usa")
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
- .withServiceId("/providers/Microsoft.Support/services/billing_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
+ .withServiceId("/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc")
.withFileWorkspaceName("6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066")
+ .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId(
+ "/subscriptions/subid/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/testserver"))
+ .withSecondaryConsent(Arrays.asList(
+ new SecondaryConsent().withUserConsent(UserConsent.YES).withType("virtualmachinerunninglinuxservice")))
.create();
}
/*
- * 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/preview/2023-06-01-preview/examples/CreateMachineLearningQuotaTicketForDedicatedCores.json
*/
/**
* Sample code: Create a ticket to request Quota increase for specific VM family cores for Machine Learning service.
@@ -1360,6 +1514,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/machine_learning_service_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1369,8 +1525,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("BatchAml")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -1379,7 +1533,7 @@ 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/preview/2023-06-01-preview/examples/CreateSqlDatawarehouseQuotaTicketForServers.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Servers for Azure Synapse Analytics.
@@ -1395,6 +1549,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_datawarehouse_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1404,8 +1560,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Servers")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(
@@ -1414,7 +1568,7 @@ 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/preview/2023-06-01-preview/examples/CreateCoresQuotaTicketForSubscription.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Compute VM Cores.
@@ -1430,6 +1584,8 @@ public final class SupportTicketsCreateSamples {
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/cores_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -1439,8 +1595,6 @@ public final class SupportTicketsCreateSamples {
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
.withPayload("{\"SKU\":\"DSv3 Series\",\"NewLimit\":104}"))))
@@ -1457,7 +1611,7 @@ 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/preview/2023-06-01-preview/examples/GetSubscriptionSupportTicketDetails.json
*/
/**
* Sample code: Get details of a subscription ticket.
@@ -1478,7 +1632,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsServiceIdEqualsForSubscription.json
*/
/**
* Sample code: List support tickets with a certain service id for a subscription.
@@ -1491,7 +1645,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json
*/
/**
* Sample code: List support tickets created on or after a certain date and in open state for a subscription.
@@ -1505,7 +1659,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsInUpdatingStateBySubscription.json
*/
/**
* Sample code: List support tickets in updating state for a subscription.
@@ -1518,7 +1672,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json
*/
/**
* Sample code: List support tickets created on or after a certain date and in updating state for a subscription.
@@ -1533,7 +1687,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsProblemClassificationIdEqualsForSubscription.json
*/
/**
* Sample code: List support tickets with a certain problem classification id for a subscription.
@@ -1548,7 +1702,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsBySubscription.json
*/
/**
* Sample code: List support tickets for a subscription.
@@ -1560,7 +1714,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsInOpenStateBySubscription.json
*/
/**
* Sample code: List support tickets in open state for a subscription.
@@ -1590,73 +1744,73 @@ 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/preview/2023-06-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json
*/
/**
- * Sample code: Update advanced diagnostic consent of a subscription support ticket.
+ * Sample code: Update advanced diagnostic consent of a support ticket.
*
* @param manager Entry point to SupportManager.
*/
- public static void updateAdvancedDiagnosticConsentOfASubscriptionSupportTicket(
- com.azure.resourcemanager.support.SupportManager manager) {
+ public static void
+ updateAdvancedDiagnosticConsentOfASupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
SupportTicketDetails resource
= manager.supportTickets().getWithResponse("testticket", com.azure.core.util.Context.NONE).getValue();
resource.update().withAdvancedDiagnosticConsent(Consent.YES).apply();
}
/*
- * 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/preview/2023-06-01-preview/examples/UpdateContactDetailsOfSupportTicketForSubscription.json
*/
/**
- * Sample code: Update severity of a subscription support ticket.
+ * Sample code: Update contact details of a subscription scoped support ticket.
*
* @param manager Entry point to SupportManager.
*/
- public static void
- updateSeverityOfASubscriptionSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
+ public static void updateContactDetailsOfASubscriptionScopedSupportTicket(
+ com.azure.resourcemanager.support.SupportManager manager) {
SupportTicketDetails resource
= manager.supportTickets().getWithResponse("testticket", com.azure.core.util.Context.NONE).getValue();
- resource.update().withSeverity(SeverityLevel.CRITICAL).apply();
+ resource.update()
+ .withContactDetails(new UpdateContactProfile().withFirstName("first name")
+ .withLastName("last name")
+ .withPreferredContactMethod(PreferredContactMethod.EMAIL)
+ .withPrimaryEmailAddress("test.name@contoso.com")
+ .withAdditionalEmailAddresses(Arrays.asList("tname@contoso.com", "teamtest@contoso.com"))
+ .withPhoneNumber("123-456-7890")
+ .withPreferredTimeZone("Pacific Standard Time")
+ .withCountry("USA")
+ .withPreferredSupportLanguage("en-US"))
+ .apply();
}
/*
- * 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/preview/2023-06-01-preview/examples/UpdateStatusOfSupportTicketForSubscription.json
*/
/**
- * Sample code: Update status of a subscription support ticket.
+ * Sample code: Update status of a subscription scoped support ticket.
*
* @param manager Entry point to SupportManager.
*/
public static void
- updateStatusOfASubscriptionSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
+ updateStatusOfASubscriptionScopedSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
SupportTicketDetails resource
= manager.supportTickets().getWithResponse("testticket", com.azure.core.util.Context.NONE).getValue();
resource.update().withStatus(Status.CLOSED).apply();
}
/*
- * 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/preview/2023-06-01-preview/examples/UpdateSeverityOfSupportTicketForSubscription.json
*/
/**
- * Sample code: Update contact details of a subscription support ticket.
+ * Sample code: Update severity of a subscription scoped support ticket.
*
* @param manager Entry point to SupportManager.
*/
public static void
- updateContactDetailsOfASubscriptionSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
+ updateSeverityOfASubscriptionScopedSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
SupportTicketDetails resource
= manager.supportTickets().getWithResponse("testticket", com.azure.core.util.Context.NONE).getValue();
- resource.update()
- .withContactDetails(new UpdateContactProfile().withFirstName("first name")
- .withLastName("last name")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("test.name@contoso.com")
- .withAdditionalEmailAddresses(Arrays.asList("tname@contoso.com", "teamtest@contoso.com"))
- .withPhoneNumber("123-456-7890")
- .withPreferredTimeZone("Pacific Standard Time")
- .withCountry("USA")
- .withPreferredSupportLanguage("en-US"))
- .apply();
+ resource.update().withSeverity(SeverityLevel.CRITICAL).apply();
}
}
```
@@ -1672,7 +1826,7 @@ 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/preview/2023-06-01-preview/examples/CheckNameAvailability.json
*/
/**
* Sample code: Checks whether name is available for SupportTicket resource.
@@ -1705,7 +1859,7 @@ 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/preview/2023-06-01-preview/examples/CreateBillingSupportTicket.json
*/
/**
* Sample code: Create a ticket for Billing related issues.
@@ -1718,7 +1872,6 @@ public final class SupportTicketsNoSubscriptionCreateSamples {
.withProblemClassificationId(
"/providers/Microsoft.Support/services/billing_service_guid/problemClassifications/billing_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.NO)
.withSupportPlanId(
"U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
@@ -1735,7 +1888,7 @@ 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/preview/2023-06-01-preview/examples/CreateSubMgmtSupportTicket.json
*/
/**
* Sample code: Create a ticket for Subscription Management related issues.
@@ -1749,7 +1902,6 @@ public final class SupportTicketsNoSubscriptionCreateSamples {
.withProblemClassificationId(
"/providers/Microsoft.Support/services/subscription_management_service_guid/problemClassifications/subscription_management_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.YES)
.withSupportPlanId(
"U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
@@ -1766,7 +1918,7 @@ 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/preview/2023-06-01-preview/examples/CreateTechnicalSupportTicket.json
*/
/**
* Sample code: Create a ticket for Technical issue related to a specific resource.
@@ -1810,7 +1962,7 @@ 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/preview/2023-06-01-preview/examples/GetSupportTicketDetails.json
*/
/**
* Sample code: Get details of a ticket.
@@ -1831,7 +1983,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json
*/
/**
* Sample code: List support tickets created on or after a certain date and in updating state.
@@ -1846,7 +1998,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsInOpenState.json
*/
/**
* Sample code: List support tickets in open state.
@@ -1858,7 +2010,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTickets.json
*/
/**
* Sample code: List support tickets.
@@ -1870,7 +2022,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsInUpdatingState.json
*/
/**
* Sample code: List support tickets in updating state.
@@ -1882,7 +2034,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenState.json
*/
/**
* Sample code: List support tickets created on or after a certain date and in open state.
@@ -1896,7 +2048,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsServiceIdEquals.json
*/
/**
* Sample code: List support tickets with a certain service id.
@@ -1910,7 +2062,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsProblemClassificationIdEquals.json
*/
/**
* Sample code: List support tickets with a certain problem classification id.
@@ -1942,7 +2094,7 @@ 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/preview/2023-06-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json
*/
/**
* Sample code: Update advanced diagnostic consent of a support ticket.
@@ -1957,7 +2109,7 @@ 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/preview/2023-06-01-preview/examples/UpdateSeverityOfSupportTicket.json
*/
/**
* Sample code: Update severity of a support ticket.
@@ -1971,7 +2123,7 @@ 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/preview/2023-06-01-preview/examples/UpdateStatusOfSupportTicket.json
*/
/**
* Sample code: Update status of a support ticket.
@@ -1985,7 +2137,7 @@ 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/preview/2023-06-01-preview/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 cb514bdd63896..16db7b44ceec7 100644
--- a/sdk/support/azure-resourcemanager-support/pom.xml
+++ b/sdk/support/azure-resourcemanager-support/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for support Management
- This package contains Microsoft Azure SDK for support Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Azure Support Resource Provider. Package tag package-2024-04.
+ This package contains Microsoft Azure SDK for support Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Azure Support Resource Provider. Package tag package-preview-2023-06.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
@@ -60,7 +61,7 @@
com.azure
azure-core-test
- 1.26.0-beta.1
+ 1.25.0
test
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..cefeb5b223598 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
@@ -32,9 +32,13 @@
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.LookUpResourceIdsImpl;
import com.azure.resourcemanager.support.implementation.MicrosoftSupportBuilder;
import com.azure.resourcemanager.support.implementation.OperationsImpl;
import com.azure.resourcemanager.support.implementation.ProblemClassificationsImpl;
+import com.azure.resourcemanager.support.implementation.ProblemClassificationsNoSubscriptionsImpl;
+import com.azure.resourcemanager.support.implementation.ServiceClassificationsImpl;
+import com.azure.resourcemanager.support.implementation.ServiceClassificationsNoSubscriptionsImpl;
import com.azure.resourcemanager.support.implementation.ServicesImpl;
import com.azure.resourcemanager.support.implementation.SupportTicketsImpl;
import com.azure.resourcemanager.support.implementation.SupportTicketsNoSubscriptionsImpl;
@@ -46,8 +50,12 @@
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.LookUpResourceIds;
import com.azure.resourcemanager.support.models.Operations;
import com.azure.resourcemanager.support.models.ProblemClassifications;
+import com.azure.resourcemanager.support.models.ProblemClassificationsNoSubscriptions;
+import com.azure.resourcemanager.support.models.ServiceClassifications;
+import com.azure.resourcemanager.support.models.ServiceClassificationsNoSubscriptions;
import com.azure.resourcemanager.support.models.Services;
import com.azure.resourcemanager.support.models.SupportTickets;
import com.azure.resourcemanager.support.models.SupportTicketsNoSubscriptions;
@@ -67,6 +75,12 @@ public final class SupportManager {
private Services services;
+ private ServiceClassificationsNoSubscriptions serviceClassificationsNoSubscriptions;
+
+ private ServiceClassifications serviceClassifications;
+
+ private ProblemClassificationsNoSubscriptions problemClassificationsNoSubscriptions;
+
private ProblemClassifications problemClassifications;
private SupportTickets supportTickets;
@@ -89,6 +103,8 @@ public final class SupportManager {
private FilesNoSubscriptions filesNoSubscriptions;
+ private LookUpResourceIds lookUpResourceIds;
+
private final MicrosoftSupport clientObject;
private SupportManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -253,7 +269,7 @@ public SupportManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.support")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -323,6 +339,45 @@ public Services services() {
return services;
}
+ /**
+ * Gets the resource collection API of ServiceClassificationsNoSubscriptions.
+ *
+ * @return Resource collection API of ServiceClassificationsNoSubscriptions.
+ */
+ public ServiceClassificationsNoSubscriptions serviceClassificationsNoSubscriptions() {
+ if (this.serviceClassificationsNoSubscriptions == null) {
+ this.serviceClassificationsNoSubscriptions = new ServiceClassificationsNoSubscriptionsImpl(
+ clientObject.getServiceClassificationsNoSubscriptions(), this);
+ }
+ return serviceClassificationsNoSubscriptions;
+ }
+
+ /**
+ * Gets the resource collection API of ServiceClassifications.
+ *
+ * @return Resource collection API of ServiceClassifications.
+ */
+ public ServiceClassifications serviceClassifications() {
+ if (this.serviceClassifications == null) {
+ this.serviceClassifications
+ = new ServiceClassificationsImpl(clientObject.getServiceClassifications(), this);
+ }
+ return serviceClassifications;
+ }
+
+ /**
+ * Gets the resource collection API of ProblemClassificationsNoSubscriptions.
+ *
+ * @return Resource collection API of ProblemClassificationsNoSubscriptions.
+ */
+ public ProblemClassificationsNoSubscriptions problemClassificationsNoSubscriptions() {
+ if (this.problemClassificationsNoSubscriptions == null) {
+ this.problemClassificationsNoSubscriptions = new ProblemClassificationsNoSubscriptionsImpl(
+ clientObject.getProblemClassificationsNoSubscriptions(), this);
+ }
+ return problemClassificationsNoSubscriptions;
+ }
+
/**
* Gets the resource collection API of ProblemClassifications.
*
@@ -460,6 +515,18 @@ public FilesNoSubscriptions filesNoSubscriptions() {
return filesNoSubscriptions;
}
+ /**
+ * Gets the resource collection API of LookUpResourceIds.
+ *
+ * @return Resource collection API of LookUpResourceIds.
+ */
+ public LookUpResourceIds lookUpResourceIds() {
+ if (this.lookUpResourceIds == null) {
+ this.lookUpResourceIds = new LookUpResourceIdsImpl(clientObject.getLookUpResourceIds(), this);
+ }
+ return lookUpResourceIds;
+ }
+
/**
* Gets wrapped service client MicrosoftSupport providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/LookUpResourceIdsClient.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/LookUpResourceIdsClient.java
new file mode 100644
index 0000000000000..ca725f44cda90
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/LookUpResourceIdsClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.support.fluent.models.LookUpResourceIdResponseInner;
+import com.azure.resourcemanager.support.models.LookUpResourceIdRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in LookUpResourceIdsClient.
+ */
+public interface LookUpResourceIdsClient {
+ /**
+ * This operation fetches ARM resource id of support resource type.
+ *
+ * @param lookUpResourceIdRequest Look up resource id request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the look up resource id response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response postWithResponse(LookUpResourceIdRequest lookUpResourceIdRequest,
+ Context context);
+
+ /**
+ * This operation fetches ARM resource id of support resource type.
+ *
+ * @param lookUpResourceIdRequest Look up resource id request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the look up resource id response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LookUpResourceIdResponseInner post(LookUpResourceIdRequest lookUpResourceIdRequest);
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/MicrosoftSupport.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/MicrosoftSupport.java
index e45ad9ccd5d3c..a4376dbf27147 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/MicrosoftSupport.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/MicrosoftSupport.java
@@ -60,6 +60,27 @@ public interface MicrosoftSupport {
*/
ServicesClient getServices();
+ /**
+ * Gets the ServiceClassificationsNoSubscriptionsClient object to access its operations.
+ *
+ * @return the ServiceClassificationsNoSubscriptionsClient object.
+ */
+ ServiceClassificationsNoSubscriptionsClient getServiceClassificationsNoSubscriptions();
+
+ /**
+ * Gets the ServiceClassificationsClient object to access its operations.
+ *
+ * @return the ServiceClassificationsClient object.
+ */
+ ServiceClassificationsClient getServiceClassifications();
+
+ /**
+ * Gets the ProblemClassificationsNoSubscriptionsClient object to access its operations.
+ *
+ * @return the ProblemClassificationsNoSubscriptionsClient object.
+ */
+ ProblemClassificationsNoSubscriptionsClient getProblemClassificationsNoSubscriptions();
+
/**
* Gets the ProblemClassificationsClient object to access its operations.
*
@@ -136,4 +157,11 @@ public interface MicrosoftSupport {
* @return the FilesNoSubscriptionsClient object.
*/
FilesNoSubscriptionsClient getFilesNoSubscriptions();
+
+ /**
+ * Gets the LookUpResourceIdsClient object to access its operations.
+ *
+ * @return the LookUpResourceIdsClient object.
+ */
+ LookUpResourceIdsClient getLookUpResourceIds();
}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ProblemClassificationsClient.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ProblemClassificationsClient.java
index 361c1fb240afd..fec7b982a82d6 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ProblemClassificationsClient.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ProblemClassificationsClient.java
@@ -10,11 +10,42 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner;
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
/**
* An instance of this class provides access to all the operations defined in ProblemClassificationsClient.
*/
public interface ProblemClassificationsClient {
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response classifyProblemsWithResponse(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput, Context context);
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProblemClassificationsClassificationOutputInner classifyProblems(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput);
+
/**
* Lists all the problem classifications (categories) available for a specific Azure service. Always use the service
* and problem classifications obtained programmatically. This practice ensures that you always have the most recent
@@ -47,7 +78,7 @@ public interface ProblemClassificationsClient {
/**
* Get problem classification details for a specific Azure service.
*
- * @param serviceName Name of the Azure service available for support.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -62,7 +93,7 @@ Response getWithResponse(String serviceName, String
/**
* Get problem classification details for a specific Azure service.
*
- * @param serviceName Name of the Azure service available for support.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ProblemClassificationsNoSubscriptionsClient.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ProblemClassificationsNoSubscriptionsClient.java
new file mode 100644
index 0000000000000..b408a537a314d
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ProblemClassificationsNoSubscriptionsClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * ProblemClassificationsNoSubscriptionsClient.
+ */
+public interface ProblemClassificationsNoSubscriptionsClient {
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response classifyProblemsWithResponse(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput, Context context);
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProblemClassificationsClassificationOutputInner classifyProblems(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput);
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServiceClassificationsClient.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServiceClassificationsClient.java
new file mode 100644
index 0000000000000..0dc16a071fc1a
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServiceClassificationsClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in ServiceClassificationsClient.
+ */
+public interface ServiceClassificationsClient {
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response
+ classifyServicesWithResponse(ServiceClassificationRequest serviceClassificationRequest, Context context);
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServiceClassificationOutputInner classifyServices(ServiceClassificationRequest serviceClassificationRequest);
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServiceClassificationsNoSubscriptionsClient.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServiceClassificationsNoSubscriptionsClient.java
new file mode 100644
index 0000000000000..a695bec8f58cf
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServiceClassificationsNoSubscriptionsClient.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * ServiceClassificationsNoSubscriptionsClient.
+ */
+public interface ServiceClassificationsNoSubscriptionsClient {
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response
+ classifyServicesWithResponse(ServiceClassificationRequest serviceClassificationRequest, Context context);
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ServiceClassificationOutputInner classifyServices(ServiceClassificationRequest serviceClassificationRequest);
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServicesClient.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServicesClient.java
index 67669e94c1a71..c6a9f674d54e2 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServicesClient.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/ServicesClient.java
@@ -50,7 +50,7 @@ public interface ServicesClient {
/**
* Gets a specific Azure service for support ticket creation.
*
- * @param serviceName Name of the Azure service.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -63,7 +63,7 @@ public interface ServicesClient {
/**
* Gets a specific Azure service for support ticket creation.
*
- * @param serviceName Name of the Azure service.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ClassificationService.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ClassificationService.java
new file mode 100644
index 0000000000000..f48a4c9bbd228
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ClassificationService.java
@@ -0,0 +1,85 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Service Classification result object.
+ */
+@Fluent
+public class ClassificationService {
+ /*
+ * Azure resource Id of the service.
+ */
+ @JsonProperty(value = "serviceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String serviceId;
+
+ /*
+ * Localized name of the azure service.
+ */
+ @JsonProperty(value = "displayName", access = JsonProperty.Access.WRITE_ONLY)
+ private String displayName;
+
+ /*
+ * List of applicable ARM resource types for this service.
+ */
+ @JsonProperty(value = "resourceTypes")
+ private List resourceTypes;
+
+ /**
+ * Creates an instance of ClassificationService class.
+ */
+ public ClassificationService() {
+ }
+
+ /**
+ * Get the serviceId property: Azure resource Id of the service.
+ *
+ * @return the serviceId value.
+ */
+ public String serviceId() {
+ return this.serviceId;
+ }
+
+ /**
+ * Get the displayName property: Localized name of the azure service.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Get the resourceTypes property: List of applicable ARM resource types for this service.
+ *
+ * @return the resourceTypes value.
+ */
+ public List resourceTypes() {
+ return this.resourceTypes;
+ }
+
+ /**
+ * Set the resourceTypes property: List of applicable ARM resource types for this service.
+ *
+ * @param resourceTypes the resourceTypes value to set.
+ * @return the ClassificationService object itself.
+ */
+ public ClassificationService withResourceTypes(List resourceTypes) {
+ this.resourceTypes = resourceTypes;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
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..69baa53ff2263 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
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.support.models.CommunicationDirection;
import com.azure.resourcemanager.support.models.CommunicationType;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -20,8 +19,8 @@ public final class CommunicationDetailsInner extends ProxyResource {
/*
* Properties of the resource.
*/
- @JsonProperty(value = "properties", required = true)
- private CommunicationDetailsProperties innerProperties = new CommunicationDetailsProperties();
+ @JsonProperty(value = "properties")
+ private CommunicationDetailsProperties innerProperties;
/**
* Creates an instance of CommunicationDetailsInner class.
@@ -140,14 +139,8 @@ public OffsetDateTime createdDate() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model CommunicationDetailsInner"));
- } else {
+ if (innerProperties() != null) {
innerProperties().validate();
}
}
-
- private static final ClientLogger LOGGER = new ClientLogger(CommunicationDetailsInner.class);
}
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..02f78f51d94c4 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
@@ -61,8 +61,7 @@ public OffsetDateTime createdOn() {
}
/**
- * Get the chunkSize property: Size of each chunk. The size of each chunk should be provided in bytes and must not
- * exceed 2.5 megabytes (MB).
+ * Get the chunkSize property: Size of each chunk.
*
* @return the chunkSize value.
*/
@@ -71,8 +70,7 @@ public Integer chunkSize() {
}
/**
- * Set the chunkSize property: Size of each chunk. The size of each chunk should be provided in bytes and must not
- * exceed 2.5 megabytes (MB).
+ * Set the chunkSize property: Size of each chunk.
*
* @param chunkSize the chunkSize value to set.
* @return the FileDetailsInner object itself.
@@ -86,8 +84,7 @@ public FileDetailsInner withChunkSize(Integer chunkSize) {
}
/**
- * Get the fileSize property: Size of the file to be uploaded. The file size must not exceed 5 MB and should be
- * provided in bytes.
+ * Get the fileSize property: Size of the file to be uploaded.
*
* @return the fileSize value.
*/
@@ -96,8 +93,7 @@ public Integer fileSize() {
}
/**
- * Set the fileSize property: Size of the file to be uploaded. The file size must not exceed 5 MB and should be
- * provided in bytes.
+ * Set the fileSize property: Size of the file to be uploaded.
*
* @param fileSize the fileSize value to set.
* @return the FileDetailsInner object itself.
@@ -111,7 +107,7 @@ public FileDetailsInner withFileSize(Integer fileSize) {
}
/**
- * Get the numberOfChunks property: Number of chunks to be uploaded. The maximum number of allowed chunks is 2.
+ * Get the numberOfChunks property: Number of chunks to be uploaded.
*
* @return the numberOfChunks value.
*/
@@ -120,7 +116,7 @@ public Integer numberOfChunks() {
}
/**
- * Set the numberOfChunks property: Number of chunks to be uploaded. The maximum number of allowed chunks is 2.
+ * Set the numberOfChunks property: Number of chunks to be uploaded.
*
* @param numberOfChunks the numberOfChunks value to set.
* @return the FileDetailsInner object itself.
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..4bb89bbd7c513 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
@@ -20,19 +20,19 @@ public final class FileDetailsProperties {
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).
+ * Size of each chunk
*/
@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.
+ * Size of the file to be uploaded
*/
@JsonProperty(value = "fileSize")
private Integer fileSize;
/*
- * Number of chunks to be uploaded. The maximum number of allowed chunks is 2.
+ * Number of chunks to be uploaded
*/
@JsonProperty(value = "numberOfChunks")
private Integer numberOfChunks;
@@ -53,8 +53,7 @@ public OffsetDateTime createdOn() {
}
/**
- * Get the chunkSize property: Size of each chunk. The size of each chunk should be provided in bytes and must not
- * exceed 2.5 megabytes (MB).
+ * Get the chunkSize property: Size of each chunk.
*
* @return the chunkSize value.
*/
@@ -63,8 +62,7 @@ public Integer chunkSize() {
}
/**
- * Set the chunkSize property: Size of each chunk. The size of each chunk should be provided in bytes and must not
- * exceed 2.5 megabytes (MB).
+ * Set the chunkSize property: Size of each chunk.
*
* @param chunkSize the chunkSize value to set.
* @return the FileDetailsProperties object itself.
@@ -75,8 +73,7 @@ public FileDetailsProperties withChunkSize(Integer chunkSize) {
}
/**
- * Get the fileSize property: Size of the file to be uploaded. The file size must not exceed 5 MB and should be
- * provided in bytes.
+ * Get the fileSize property: Size of the file to be uploaded.
*
* @return the fileSize value.
*/
@@ -85,8 +82,7 @@ public Integer fileSize() {
}
/**
- * Set the fileSize property: Size of the file to be uploaded. The file size must not exceed 5 MB and should be
- * provided in bytes.
+ * Set the fileSize property: Size of the file to be uploaded.
*
* @param fileSize the fileSize value to set.
* @return the FileDetailsProperties object itself.
@@ -97,7 +93,7 @@ public FileDetailsProperties withFileSize(Integer fileSize) {
}
/**
- * Get the numberOfChunks property: Number of chunks to be uploaded. The maximum number of allowed chunks is 2.
+ * Get the numberOfChunks property: Number of chunks to be uploaded.
*
* @return the numberOfChunks value.
*/
@@ -106,7 +102,7 @@ public Integer numberOfChunks() {
}
/**
- * Set the numberOfChunks property: Number of chunks to be uploaded. The maximum number of allowed chunks is 2.
+ * Set the numberOfChunks property: Number of chunks to be uploaded.
*
* @param numberOfChunks the numberOfChunks value to set.
* @return the FileDetailsProperties object itself.
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/LookUpResourceIdResponseInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/LookUpResourceIdResponseInner.java
new file mode 100644
index 0000000000000..f703cdc6c76ae
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/LookUpResourceIdResponseInner.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The look up resource id response.
+ */
+@Fluent
+public final class LookUpResourceIdResponseInner {
+ /*
+ * The resource Id of support resource type.
+ */
+ @JsonProperty(value = "resourceId")
+ private String resourceId;
+
+ /**
+ * Creates an instance of LookUpResourceIdResponseInner class.
+ */
+ public LookUpResourceIdResponseInner() {
+ }
+
+ /**
+ * Get the resourceId property: The resource Id of support resource type.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Set the resourceId property: The resource Id of support resource type.
+ *
+ * @param resourceId the resourceId value to set.
+ * @return the LookUpResourceIdResponseInner object itself.
+ */
+ public LookUpResourceIdResponseInner withResourceId(String resourceId) {
+ this.resourceId = resourceId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
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..836b106ce8b07 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
@@ -8,6 +8,7 @@
import com.azure.resourcemanager.support.models.SecondaryConsentEnabled;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
+import java.util.Map;
/**
* ProblemClassification resource object.
@@ -36,7 +37,7 @@ public final class ProblemClassificationInner {
* Properties of the resource.
*/
@JsonProperty(value = "properties")
- private ProblemClassificationProperties innerProperties;
+ private ProblemClassificationPropertiesInner innerProperties;
/**
* Creates an instance of ProblemClassificationInner class.
@@ -76,7 +77,7 @@ public String type() {
*
* @return the innerProperties value.
*/
- private ProblemClassificationProperties innerProperties() {
+ private ProblemClassificationPropertiesInner innerProperties() {
return this.innerProperties;
}
@@ -97,7 +98,7 @@ public String displayName() {
*/
public ProblemClassificationInner withDisplayName(String displayName) {
if (this.innerProperties() == null) {
- this.innerProperties = new ProblemClassificationProperties();
+ this.innerProperties = new ProblemClassificationPropertiesInner();
}
this.innerProperties().withDisplayName(displayName);
return this;
@@ -123,12 +124,47 @@ public List secondaryConsentEnabled() {
public ProblemClassificationInner
withSecondaryConsentEnabled(List secondaryConsentEnabled) {
if (this.innerProperties() == null) {
- this.innerProperties = new ProblemClassificationProperties();
+ this.innerProperties = new ProblemClassificationPropertiesInner();
}
this.innerProperties().withSecondaryConsentEnabled(secondaryConsentEnabled);
return this;
}
+ /**
+ * Get the metadata property: String-to-string dictionary for additional metadata.
+ *
+ * @return the metadata value.
+ */
+ public Map metadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().metadata();
+ }
+
+ /**
+ * Get the parentProblemClassification property: Reference to the parent problem classification which has same
+ * structure as problem classification.
+ *
+ * @return the parentProblemClassification value.
+ */
+ public ProblemClassificationInner parentProblemClassification() {
+ return this.innerProperties() == null ? null : this.innerProperties().parentProblemClassification();
+ }
+
+ /**
+ * Set the parentProblemClassification property: Reference to the parent problem classification which has same
+ * structure as problem classification.
+ *
+ * @param parentProblemClassification the parentProblemClassification value to set.
+ * @return the ProblemClassificationInner object itself.
+ */
+ public ProblemClassificationInner
+ withParentProblemClassification(ProblemClassificationInner parentProblemClassification) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProblemClassificationPropertiesInner();
+ }
+ this.innerProperties().withParentProblemClassification(parentProblemClassification);
+ return this;
+ }
+
/**
* Validates the instance.
*
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/ProblemClassificationPropertiesInner.java
similarity index 50%
rename from sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationProperties.java
rename to sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationPropertiesInner.java
index 927aeaa0b4a89..7ea558dff96e2 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/ProblemClassificationPropertiesInner.java
@@ -6,14 +6,16 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.support.models.SecondaryConsentEnabled;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
+import java.util.Map;
/**
* Details about a problem classification available for an Azure service.
*/
@Fluent
-public final class ProblemClassificationProperties {
+public final class ProblemClassificationPropertiesInner {
/*
* Localized name of problem classification.
*/
@@ -26,10 +28,23 @@ public final class ProblemClassificationProperties {
@JsonProperty(value = "secondaryConsentEnabled")
private List secondaryConsentEnabled;
+ /*
+ * String-to-string dictionary for additional metadata.
+ */
+ @JsonProperty(value = "metadata", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map metadata;
+
+ /*
+ * Reference to the parent problem classification which has same structure as problem classification
+ */
+ @JsonProperty(value = "parentProblemClassification")
+ private ProblemClassificationInner parentProblemClassification;
+
/**
- * Creates an instance of ProblemClassificationProperties class.
+ * Creates an instance of ProblemClassificationPropertiesInner class.
*/
- public ProblemClassificationProperties() {
+ public ProblemClassificationPropertiesInner() {
}
/**
@@ -45,9 +60,9 @@ public String displayName() {
* Set the displayName property: Localized name of problem classification.
*
* @param displayName the displayName value to set.
- * @return the ProblemClassificationProperties object itself.
+ * @return the ProblemClassificationPropertiesInner object itself.
*/
- public ProblemClassificationProperties withDisplayName(String displayName) {
+ public ProblemClassificationPropertiesInner withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
@@ -67,14 +82,46 @@ public List secondaryConsentEnabled() {
* problem classification.
*
* @param secondaryConsentEnabled the secondaryConsentEnabled value to set.
- * @return the ProblemClassificationProperties object itself.
+ * @return the ProblemClassificationPropertiesInner object itself.
*/
- public ProblemClassificationProperties
+ public ProblemClassificationPropertiesInner
withSecondaryConsentEnabled(List secondaryConsentEnabled) {
this.secondaryConsentEnabled = secondaryConsentEnabled;
return this;
}
+ /**
+ * Get the metadata property: String-to-string dictionary for additional metadata.
+ *
+ * @return the metadata value.
+ */
+ public Map metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Get the parentProblemClassification property: Reference to the parent problem classification which has same
+ * structure as problem classification.
+ *
+ * @return the parentProblemClassification value.
+ */
+ public ProblemClassificationInner parentProblemClassification() {
+ return this.parentProblemClassification;
+ }
+
+ /**
+ * Set the parentProblemClassification property: Reference to the parent problem classification which has same
+ * structure as problem classification.
+ *
+ * @param parentProblemClassification the parentProblemClassification value to set.
+ * @return the ProblemClassificationPropertiesInner object itself.
+ */
+ public ProblemClassificationPropertiesInner
+ withParentProblemClassification(ProblemClassificationInner parentProblemClassification) {
+ this.parentProblemClassification = parentProblemClassification;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -84,5 +131,8 @@ public void validate() {
if (secondaryConsentEnabled() != null) {
secondaryConsentEnabled().forEach(e -> e.validate());
}
+ if (parentProblemClassification() != null) {
+ parentProblemClassification().validate();
+ }
}
}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationsClassificationOutputInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationsClassificationOutputInner.java
new file mode 100644
index 0000000000000..9c369f1c15b8e
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ProblemClassificationsClassificationOutputInner.java
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationResult;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Output of the problem classification Classification API.
+ */
+@Fluent
+public final class ProblemClassificationsClassificationOutputInner {
+ /*
+ * Set of problem classification objects classified.
+ */
+ @JsonProperty(value = "problemClassificationResults")
+ private List problemClassificationResults;
+
+ /**
+ * Creates an instance of ProblemClassificationsClassificationOutputInner class.
+ */
+ public ProblemClassificationsClassificationOutputInner() {
+ }
+
+ /**
+ * Get the problemClassificationResults property: Set of problem classification objects classified.
+ *
+ * @return the problemClassificationResults value.
+ */
+ public List problemClassificationResults() {
+ return this.problemClassificationResults;
+ }
+
+ /**
+ * Set the problemClassificationResults property: Set of problem classification objects classified.
+ *
+ * @param problemClassificationResults the problemClassificationResults value to set.
+ * @return the ProblemClassificationsClassificationOutputInner object itself.
+ */
+ public ProblemClassificationsClassificationOutputInner withProblemClassificationResults(
+ List problemClassificationResults) {
+ this.problemClassificationResults = problemClassificationResults;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (problemClassificationResults() != null) {
+ problemClassificationResults().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceClassificationOutputInner.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceClassificationOutputInner.java
new file mode 100644
index 0000000000000..c602c841c76ec
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/fluent/models/ServiceClassificationOutputInner.java
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.support.models.ServiceClassificationAnswer;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Output of the service classification API.
+ */
+@Fluent
+public final class ServiceClassificationOutputInner {
+ /*
+ * Set of problem classification objects classified.
+ */
+ @JsonProperty(value = "serviceClassificationResults")
+ private List serviceClassificationResults;
+
+ /**
+ * Creates an instance of ServiceClassificationOutputInner class.
+ */
+ public ServiceClassificationOutputInner() {
+ }
+
+ /**
+ * Get the serviceClassificationResults property: Set of problem classification objects classified.
+ *
+ * @return the serviceClassificationResults value.
+ */
+ public List serviceClassificationResults() {
+ return this.serviceClassificationResults;
+ }
+
+ /**
+ * Set the serviceClassificationResults property: Set of problem classification objects classified.
+ *
+ * @param serviceClassificationResults the serviceClassificationResults value to set.
+ * @return the ServiceClassificationOutputInner object itself.
+ */
+ public ServiceClassificationOutputInner
+ withServiceClassificationResults(List serviceClassificationResults) {
+ this.serviceClassificationResults = serviceClassificationResults;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (serviceClassificationResults() != null) {
+ serviceClassificationResults().forEach(e -> e.validate());
+ }
+ }
+}
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..f7f1db7b1664f 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
@@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
+import java.util.Map;
/**
* Object that represents a Service resource.
@@ -125,6 +126,15 @@ public ServiceInner withResourceTypes(List resourceTypes) {
return this;
}
+ /**
+ * Get the metadata property: Metadata about the service, only visible for 1P clients.
+ *
+ * @return the metadata value.
+ */
+ public Map metadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().metadata();
+ }
+
/**
* Validates the instance.
*
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..6d4095ed989fa 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,8 +5,10 @@
package com.azure.resourcemanager.support.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
+import java.util.Map;
/**
* Details about an Azure service available for support ticket creation.
@@ -25,6 +27,13 @@ public final class ServiceProperties {
@JsonProperty(value = "resourceTypes")
private List resourceTypes;
+ /*
+ * Metadata about the service, only visible for 1P clients
+ */
+ @JsonProperty(value = "metadata", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map metadata;
+
/**
* Creates an instance of ServiceProperties class.
*/
@@ -71,6 +80,15 @@ public ServiceProperties withResourceTypes(List resourceTypes) {
return this;
}
+ /**
+ * Get the metadata property: Metadata about the service, only visible for 1P clients.
+ *
+ * @return the metadata value.
+ */
+ public Map metadata() {
+ return this.metadata;
+ }
+
/**
* Validates the instance.
*
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..8154b75565a18 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
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.support.models.Consent;
import com.azure.resourcemanager.support.models.ContactProfile;
import com.azure.resourcemanager.support.models.IsTemporaryTicket;
@@ -28,8 +27,8 @@ public final class SupportTicketDetailsInner extends ProxyResource {
/*
* Properties of the resource.
*/
- @JsonProperty(value = "properties", required = true)
- private SupportTicketDetailsProperties innerProperties = new SupportTicketDetailsProperties();
+ @JsonProperty(value = "properties")
+ private SupportTicketDetailsProperties innerProperties;
/**
* Creates an instance of SupportTicketDetailsInner class.
@@ -573,14 +572,8 @@ public SupportTicketDetailsInner withSecondaryConsent(List sec
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property innerProperties in model SupportTicketDetailsInner"));
- } else {
+ if (innerProperties() != null) {
innerProperties().validate();
}
}
-
- private static final ClientLogger LOGGER = new ClientLogger(SupportTicketDetailsInner.class);
}
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..9bcea6783e77e 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
@@ -69,7 +69,7 @@ public final class SupportTicketDetailsProperties {
/*
* Advanced diagnostic consent to be updated on the support ticket.
*/
- @JsonProperty(value = "advancedDiagnosticConsent", required = true)
+ @JsonProperty(value = "advancedDiagnosticConsent")
private Consent advancedDiagnosticConsent;
/*
@@ -677,11 +677,6 @@ public void validate() {
.log(new IllegalArgumentException(
"Missing required property severity in model SupportTicketDetailsProperties"));
}
- if (advancedDiagnosticConsent() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property advancedDiagnosticConsent in model SupportTicketDetailsProperties"));
- }
if (contactDetails() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationDetailsImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationDetailsImpl.java
index da2c725fa3cf6..87085cda743d3 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationDetailsImpl.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/CommunicationDetailsImpl.java
@@ -111,6 +111,11 @@ public CommunicationDetails refresh(Context context) {
return this;
}
+ public CommunicationDetailsImpl withSender(String sender) {
+ this.innerModel().withSender(sender);
+ return this;
+ }
+
public CommunicationDetailsImpl withSubject(String subject) {
this.innerModel().withSubject(subject);
return this;
@@ -120,9 +125,4 @@ public CommunicationDetailsImpl withBody(String body) {
this.innerModel().withBody(body);
return this;
}
-
- public CommunicationDetailsImpl withSender(String sender) {
- this.innerModel().withSender(sender);
- return this;
- }
}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/LookUpResourceIdResponseImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/LookUpResourceIdResponseImpl.java
new file mode 100644
index 0000000000000..0d3d3d356508e
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/LookUpResourceIdResponseImpl.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.resourcemanager.support.fluent.models.LookUpResourceIdResponseInner;
+import com.azure.resourcemanager.support.models.LookUpResourceIdResponse;
+
+public final class LookUpResourceIdResponseImpl implements LookUpResourceIdResponse {
+ private LookUpResourceIdResponseInner innerObject;
+
+ private final com.azure.resourcemanager.support.SupportManager serviceManager;
+
+ LookUpResourceIdResponseImpl(LookUpResourceIdResponseInner innerObject,
+ com.azure.resourcemanager.support.SupportManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String resourceId() {
+ return this.innerModel().resourceId();
+ }
+
+ public LookUpResourceIdResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.support.SupportManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/LookUpResourceIdsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/LookUpResourceIdsClientImpl.java
new file mode 100644
index 0000000000000..60044e52bceba
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/LookUpResourceIdsClientImpl.java
@@ -0,0 +1,172 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.support.fluent.LookUpResourceIdsClient;
+import com.azure.resourcemanager.support.fluent.models.LookUpResourceIdResponseInner;
+import com.azure.resourcemanager.support.models.LookUpResourceIdRequest;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in LookUpResourceIdsClient.
+ */
+public final class LookUpResourceIdsClientImpl implements LookUpResourceIdsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final LookUpResourceIdsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftSupportImpl client;
+
+ /**
+ * Initializes an instance of LookUpResourceIdsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ LookUpResourceIdsClientImpl(MicrosoftSupportImpl client) {
+ this.service
+ = RestProxy.create(LookUpResourceIdsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftSupportLookUpResourceIds to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftSupportLook")
+ public interface LookUpResourceIdsService {
+ @Headers({ "Content-Type: application/json" })
+ @Post("/providers/Microsoft.Support/lookUpResourceId")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> post(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") LookUpResourceIdRequest lookUpResourceIdRequest,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * This operation fetches ARM resource id of support resource type.
+ *
+ * @param lookUpResourceIdRequest Look up resource id request body.
+ * @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.
+ * @return the look up resource id response along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ postWithResponseAsync(LookUpResourceIdRequest lookUpResourceIdRequest) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (lookUpResourceIdRequest == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter lookUpResourceIdRequest is required and cannot be null."));
+ } else {
+ lookUpResourceIdRequest.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.post(this.client.getEndpoint(), this.client.getApiVersion(),
+ lookUpResourceIdRequest, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * This operation fetches ARM resource id of support resource type.
+ *
+ * @param lookUpResourceIdRequest Look up resource id request body.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the look up resource id response along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ postWithResponseAsync(LookUpResourceIdRequest lookUpResourceIdRequest, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (lookUpResourceIdRequest == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter lookUpResourceIdRequest is required and cannot be null."));
+ } else {
+ lookUpResourceIdRequest.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.post(this.client.getEndpoint(), this.client.getApiVersion(), lookUpResourceIdRequest, accept,
+ context);
+ }
+
+ /**
+ * This operation fetches ARM resource id of support resource type.
+ *
+ * @param lookUpResourceIdRequest Look up resource id request body.
+ * @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.
+ * @return the look up resource id response on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono postAsync(LookUpResourceIdRequest lookUpResourceIdRequest) {
+ return postWithResponseAsync(lookUpResourceIdRequest).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * This operation fetches ARM resource id of support resource type.
+ *
+ * @param lookUpResourceIdRequest Look up resource id request body.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the look up resource id response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response postWithResponse(LookUpResourceIdRequest lookUpResourceIdRequest,
+ Context context) {
+ return postWithResponseAsync(lookUpResourceIdRequest, context).block();
+ }
+
+ /**
+ * This operation fetches ARM resource id of support resource type.
+ *
+ * @param lookUpResourceIdRequest Look up resource id request body.
+ * @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.
+ * @return the look up resource id response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LookUpResourceIdResponseInner post(LookUpResourceIdRequest lookUpResourceIdRequest) {
+ return postWithResponse(lookUpResourceIdRequest, Context.NONE).getValue();
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/LookUpResourceIdsImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/LookUpResourceIdsImpl.java
new file mode 100644
index 0000000000000..a1aaff5f5b21e
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/LookUpResourceIdsImpl.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.support.fluent.LookUpResourceIdsClient;
+import com.azure.resourcemanager.support.fluent.models.LookUpResourceIdResponseInner;
+import com.azure.resourcemanager.support.models.LookUpResourceIdRequest;
+import com.azure.resourcemanager.support.models.LookUpResourceIdResponse;
+import com.azure.resourcemanager.support.models.LookUpResourceIds;
+
+public final class LookUpResourceIdsImpl implements LookUpResourceIds {
+ private static final ClientLogger LOGGER = new ClientLogger(LookUpResourceIdsImpl.class);
+
+ private final LookUpResourceIdsClient innerClient;
+
+ private final com.azure.resourcemanager.support.SupportManager serviceManager;
+
+ public LookUpResourceIdsImpl(LookUpResourceIdsClient innerClient,
+ com.azure.resourcemanager.support.SupportManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response postWithResponse(LookUpResourceIdRequest lookUpResourceIdRequest,
+ Context context) {
+ Response inner
+ = this.serviceClient().postWithResponse(lookUpResourceIdRequest, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new LookUpResourceIdResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public LookUpResourceIdResponse post(LookUpResourceIdRequest lookUpResourceIdRequest) {
+ LookUpResourceIdResponseInner inner = this.serviceClient().post(lookUpResourceIdRequest);
+ if (inner != null) {
+ return new LookUpResourceIdResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private LookUpResourceIdsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.support.SupportManager manager() {
+ return this.serviceManager;
+ }
+}
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..58a3b1b0e9bbe 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
@@ -31,9 +31,13 @@
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.LookUpResourceIdsClient;
import com.azure.resourcemanager.support.fluent.MicrosoftSupport;
import com.azure.resourcemanager.support.fluent.OperationsClient;
import com.azure.resourcemanager.support.fluent.ProblemClassificationsClient;
+import com.azure.resourcemanager.support.fluent.ProblemClassificationsNoSubscriptionsClient;
+import com.azure.resourcemanager.support.fluent.ServiceClassificationsClient;
+import com.azure.resourcemanager.support.fluent.ServiceClassificationsNoSubscriptionsClient;
import com.azure.resourcemanager.support.fluent.ServicesClient;
import com.azure.resourcemanager.support.fluent.SupportTicketsClient;
import com.azure.resourcemanager.support.fluent.SupportTicketsNoSubscriptionsClient;
@@ -163,6 +167,48 @@ public ServicesClient getServices() {
return this.services;
}
+ /**
+ * The ServiceClassificationsNoSubscriptionsClient object to access its operations.
+ */
+ private final ServiceClassificationsNoSubscriptionsClient serviceClassificationsNoSubscriptions;
+
+ /**
+ * Gets the ServiceClassificationsNoSubscriptionsClient object to access its operations.
+ *
+ * @return the ServiceClassificationsNoSubscriptionsClient object.
+ */
+ public ServiceClassificationsNoSubscriptionsClient getServiceClassificationsNoSubscriptions() {
+ return this.serviceClassificationsNoSubscriptions;
+ }
+
+ /**
+ * The ServiceClassificationsClient object to access its operations.
+ */
+ private final ServiceClassificationsClient serviceClassifications;
+
+ /**
+ * Gets the ServiceClassificationsClient object to access its operations.
+ *
+ * @return the ServiceClassificationsClient object.
+ */
+ public ServiceClassificationsClient getServiceClassifications() {
+ return this.serviceClassifications;
+ }
+
+ /**
+ * The ProblemClassificationsNoSubscriptionsClient object to access its operations.
+ */
+ private final ProblemClassificationsNoSubscriptionsClient problemClassificationsNoSubscriptions;
+
+ /**
+ * Gets the ProblemClassificationsNoSubscriptionsClient object to access its operations.
+ *
+ * @return the ProblemClassificationsNoSubscriptionsClient object.
+ */
+ public ProblemClassificationsNoSubscriptionsClient getProblemClassificationsNoSubscriptions() {
+ return this.problemClassificationsNoSubscriptions;
+ }
+
/**
* The ProblemClassificationsClient object to access its operations.
*/
@@ -317,6 +363,20 @@ public FilesNoSubscriptionsClient getFilesNoSubscriptions() {
return this.filesNoSubscriptions;
}
+ /**
+ * The LookUpResourceIdsClient object to access its operations.
+ */
+ private final LookUpResourceIdsClient lookUpResourceIds;
+
+ /**
+ * Gets the LookUpResourceIdsClient object to access its operations.
+ *
+ * @return the LookUpResourceIdsClient object.
+ */
+ public LookUpResourceIdsClient getLookUpResourceIds() {
+ return this.lookUpResourceIds;
+ }
+
/**
* Initializes an instance of MicrosoftSupport client.
*
@@ -334,9 +394,12 @@ public FilesNoSubscriptionsClient getFilesNoSubscriptions() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2024-04-01";
+ this.apiVersion = "2023-06-01-preview";
this.operations = new OperationsClientImpl(this);
this.services = new ServicesClientImpl(this);
+ this.serviceClassificationsNoSubscriptions = new ServiceClassificationsNoSubscriptionsClientImpl(this);
+ this.serviceClassifications = new ServiceClassificationsClientImpl(this);
+ this.problemClassificationsNoSubscriptions = new ProblemClassificationsNoSubscriptionsClientImpl(this);
this.problemClassifications = new ProblemClassificationsClientImpl(this);
this.supportTickets = new SupportTicketsClientImpl(this);
this.supportTicketsNoSubscriptions = new SupportTicketsNoSubscriptionsClientImpl(this);
@@ -348,6 +411,7 @@ public FilesNoSubscriptionsClient getFilesNoSubscriptions() {
this.fileWorkspacesNoSubscriptions = new FileWorkspacesNoSubscriptionsClientImpl(this);
this.files = new FilesClientImpl(this);
this.filesNoSubscriptions = new FilesNoSubscriptionsClientImpl(this);
+ this.lookUpResourceIds = new LookUpResourceIdsClientImpl(this);
}
/**
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationImpl.java
index 41c1ce02aa579..07f473412ad29 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationImpl.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationImpl.java
@@ -9,6 +9,7 @@
import com.azure.resourcemanager.support.models.SecondaryConsentEnabled;
import java.util.Collections;
import java.util.List;
+import java.util.Map;
public final class ProblemClassificationImpl implements ProblemClassification {
private ProblemClassificationInner innerObject;
@@ -46,6 +47,24 @@ public List secondaryConsentEnabled() {
}
}
+ public Map metadata() {
+ Map inner = this.innerModel().metadata();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ProblemClassification parentProblemClassification() {
+ ProblemClassificationInner inner = this.innerModel().parentProblemClassification();
+ if (inner != null) {
+ return new ProblemClassificationImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public ProblemClassificationInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationPropertiesImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationPropertiesImpl.java
new file mode 100644
index 0000000000000..15655315d6e45
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationPropertiesImpl.java
@@ -0,0 +1,65 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner;
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationPropertiesInner;
+import com.azure.resourcemanager.support.models.ProblemClassification;
+import com.azure.resourcemanager.support.models.ProblemClassificationProperties;
+import com.azure.resourcemanager.support.models.SecondaryConsentEnabled;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class ProblemClassificationPropertiesImpl implements ProblemClassificationProperties {
+ private ProblemClassificationPropertiesInner innerObject;
+
+ private final com.azure.resourcemanager.support.SupportManager serviceManager;
+
+ ProblemClassificationPropertiesImpl(ProblemClassificationPropertiesInner innerObject,
+ com.azure.resourcemanager.support.SupportManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String displayName() {
+ return this.innerModel().displayName();
+ }
+
+ public List secondaryConsentEnabled() {
+ List inner = this.innerModel().secondaryConsentEnabled();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public Map metadata() {
+ Map inner = this.innerModel().metadata();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ProblemClassification parentProblemClassification() {
+ ProblemClassificationInner inner = this.innerModel().parentProblemClassification();
+ if (inner != null) {
+ return new ProblemClassificationImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public ProblemClassificationPropertiesInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.support.SupportManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsClassificationOutputImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsClassificationOutputImpl.java
new file mode 100644
index 0000000000000..98ee7dcb6baf9
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsClassificationOutputImpl.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationOutput;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationResult;
+import java.util.Collections;
+import java.util.List;
+
+public final class ProblemClassificationsClassificationOutputImpl
+ implements ProblemClassificationsClassificationOutput {
+ private ProblemClassificationsClassificationOutputInner innerObject;
+
+ private final com.azure.resourcemanager.support.SupportManager serviceManager;
+
+ ProblemClassificationsClassificationOutputImpl(ProblemClassificationsClassificationOutputInner innerObject,
+ com.azure.resourcemanager.support.SupportManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List problemClassificationResults() {
+ List inner = this.innerModel().problemClassificationResults();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ProblemClassificationsClassificationOutputInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.support.SupportManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsClientImpl.java
index 370451d51899a..cc33ff55b9a9a 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsClientImpl.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsClientImpl.java
@@ -4,6 +4,7 @@
package com.azure.resourcemanager.support.implementation;
+import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.ExpectedResponses;
import com.azure.core.annotation.Get;
import com.azure.core.annotation.HeaderParam;
@@ -11,6 +12,7 @@
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceInterface;
@@ -27,6 +29,8 @@
import com.azure.core.util.FluxUtil;
import com.azure.resourcemanager.support.fluent.ProblemClassificationsClient;
import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner;
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
import com.azure.resourcemanager.support.models.ProblemClassificationsListResult;
import reactor.core.publisher.Mono;
@@ -62,6 +66,16 @@ public final class ProblemClassificationsClientImpl implements ProblemClassifica
@Host("{$host}")
@ServiceInterface(name = "MicrosoftSupportProb")
public interface ProblemClassificationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Support/services/{problemServiceName}/classifyProblems")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> classifyProblems(
+ @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("problemServiceName") String problemServiceName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ProblemClassificationsClassificationInput problemClassificationsClassificationInput,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/providers/Microsoft.Support/services/{serviceName}/problemClassifications")
@ExpectedResponses({ 200 })
@@ -80,6 +94,140 @@ Mono> get(@HostParam("$host") String endpoi
@QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
}
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @return output of the problem classification Classification API along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> classifyProblemsWithResponseAsync(
+ String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (problemServiceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter problemServiceName is required and cannot be null."));
+ }
+ if (problemClassificationsClassificationInput == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter problemClassificationsClassificationInput is required and cannot be null."));
+ } else {
+ problemClassificationsClassificationInput.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.classifyProblems(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ problemServiceName, this.client.getApiVersion(), problemClassificationsClassificationInput, accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> classifyProblemsWithResponseAsync(
+ String problemServiceName, ProblemClassificationsClassificationInput problemClassificationsClassificationInput,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (problemServiceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter problemServiceName is required and cannot be null."));
+ }
+ if (problemClassificationsClassificationInput == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter problemClassificationsClassificationInput is required and cannot be null."));
+ } else {
+ problemClassificationsClassificationInput.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.classifyProblems(this.client.getEndpoint(), this.client.getSubscriptionId(), problemServiceName,
+ this.client.getApiVersion(), problemClassificationsClassificationInput, accept, context);
+ }
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @return output of the problem classification Classification API on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono classifyProblemsAsync(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput) {
+ return classifyProblemsWithResponseAsync(problemServiceName, problemClassificationsClassificationInput)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response classifyProblemsWithResponse(
+ String problemServiceName, ProblemClassificationsClassificationInput problemClassificationsClassificationInput,
+ Context context) {
+ return classifyProblemsWithResponseAsync(problemServiceName, problemClassificationsClassificationInput, context)
+ .block();
+ }
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @return output of the problem classification Classification API.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ProblemClassificationsClassificationOutputInner classifyProblems(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput) {
+ return classifyProblemsWithResponse(problemServiceName, problemClassificationsClassificationInput, Context.NONE)
+ .getValue();
+ }
+
/**
* Lists all the problem classifications (categories) available for a specific Azure service. Always use the service
* and problem classifications obtained programmatically. This practice ensures that you always have the most recent
@@ -208,7 +356,7 @@ public PagedIterable list(String serviceName, Contex
/**
* Get problem classification details for a specific Azure service.
*
- * @param serviceName Name of the Azure service available for support.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -240,7 +388,7 @@ private Mono> getWithResponseAsync(String s
/**
* Get problem classification details for a specific Azure service.
*
- * @param serviceName Name of the Azure service available for support.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -272,7 +420,7 @@ private Mono> getWithResponseAsync(String s
/**
* Get problem classification details for a specific Azure service.
*
- * @param serviceName Name of the Azure service available for support.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -288,7 +436,7 @@ private Mono getAsync(String serviceName, String pro
/**
* Get problem classification details for a specific Azure service.
*
- * @param serviceName Name of the Azure service available for support.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -305,7 +453,7 @@ public Response getWithResponse(String serviceName,
/**
* Get problem classification details for a specific Azure service.
*
- * @param serviceName Name of the Azure service available for support.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @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/ProblemClassificationsImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsImpl.java
index 8b7e3dc2cc577..d7544944a60eb 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsImpl.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsImpl.java
@@ -11,8 +11,11 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.support.fluent.ProblemClassificationsClient;
import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner;
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
import com.azure.resourcemanager.support.models.ProblemClassification;
import com.azure.resourcemanager.support.models.ProblemClassifications;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationOutput;
public final class ProblemClassificationsImpl implements ProblemClassifications {
private static final ClientLogger LOGGER = new ClientLogger(ProblemClassificationsImpl.class);
@@ -27,6 +30,29 @@ public ProblemClassificationsImpl(ProblemClassificationsClient innerClient,
this.serviceManager = serviceManager;
}
+ public Response classifyProblemsWithResponse(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput, Context context) {
+ Response inner = this.serviceClient()
+ .classifyProblemsWithResponse(problemServiceName, problemClassificationsClassificationInput, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ProblemClassificationsClassificationOutputImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ProblemClassificationsClassificationOutput classifyProblems(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput) {
+ ProblemClassificationsClassificationOutputInner inner
+ = this.serviceClient().classifyProblems(problemServiceName, problemClassificationsClassificationInput);
+ if (inner != null) {
+ return new ProblemClassificationsClassificationOutputImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public PagedIterable list(String serviceName) {
PagedIterable inner = this.serviceClient().list(serviceName);
return ResourceManagerUtils.mapPage(inner, inner1 -> new ProblemClassificationImpl(inner1, this.manager()));
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsNoSubscriptionsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsNoSubscriptionsClientImpl.java
new file mode 100644
index 0000000000000..3b9adce8bf389
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsNoSubscriptionsClientImpl.java
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.support.fluent.ProblemClassificationsNoSubscriptionsClient;
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * ProblemClassificationsNoSubscriptionsClient.
+ */
+public final class ProblemClassificationsNoSubscriptionsClientImpl
+ implements ProblemClassificationsNoSubscriptionsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ProblemClassificationsNoSubscriptionsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftSupportImpl client;
+
+ /**
+ * Initializes an instance of ProblemClassificationsNoSubscriptionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ProblemClassificationsNoSubscriptionsClientImpl(MicrosoftSupportImpl client) {
+ this.service = RestProxy.create(ProblemClassificationsNoSubscriptionsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftSupportProblemClassificationsNoSubscriptions to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftSupportProb")
+ public interface ProblemClassificationsNoSubscriptionsService {
+ @Headers({ "Content-Type: application/json" })
+ @Post("/providers/Microsoft.Support/services/{problemServiceName}/classifyProblems")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> classifyProblems(
+ @HostParam("$host") String endpoint, @PathParam("problemServiceName") String problemServiceName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ProblemClassificationsClassificationInput problemClassificationsClassificationInput,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @return output of the problem classification Classification API along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> classifyProblemsWithResponseAsync(
+ String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (problemServiceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter problemServiceName is required and cannot be null."));
+ }
+ if (problemClassificationsClassificationInput == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter problemClassificationsClassificationInput is required and cannot be null."));
+ } else {
+ problemClassificationsClassificationInput.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.classifyProblems(this.client.getEndpoint(), problemServiceName,
+ this.client.getApiVersion(), problemClassificationsClassificationInput, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> classifyProblemsWithResponseAsync(
+ String problemServiceName, ProblemClassificationsClassificationInput problemClassificationsClassificationInput,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (problemServiceName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter problemServiceName is required and cannot be null."));
+ }
+ if (problemClassificationsClassificationInput == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter problemClassificationsClassificationInput is required and cannot be null."));
+ } else {
+ problemClassificationsClassificationInput.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.classifyProblems(this.client.getEndpoint(), problemServiceName, this.client.getApiVersion(),
+ problemClassificationsClassificationInput, accept, context);
+ }
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @return output of the problem classification Classification API on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono classifyProblemsAsync(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput) {
+ return classifyProblemsWithResponseAsync(problemServiceName, problemClassificationsClassificationInput)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response classifyProblemsWithResponse(
+ String problemServiceName, ProblemClassificationsClassificationInput problemClassificationsClassificationInput,
+ Context context) {
+ return classifyProblemsWithResponseAsync(problemServiceName, problemClassificationsClassificationInput, context)
+ .block();
+ }
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @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.
+ * @return output of the problem classification Classification API.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ProblemClassificationsClassificationOutputInner classifyProblems(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput) {
+ return classifyProblemsWithResponse(problemServiceName, problemClassificationsClassificationInput, Context.NONE)
+ .getValue();
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsNoSubscriptionsImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsNoSubscriptionsImpl.java
new file mode 100644
index 0000000000000..b2a10059c2f6c
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ProblemClassificationsNoSubscriptionsImpl.java
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.support.fluent.ProblemClassificationsNoSubscriptionsClient;
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationOutput;
+import com.azure.resourcemanager.support.models.ProblemClassificationsNoSubscriptions;
+
+public final class ProblemClassificationsNoSubscriptionsImpl implements ProblemClassificationsNoSubscriptions {
+ private static final ClientLogger LOGGER = new ClientLogger(ProblemClassificationsNoSubscriptionsImpl.class);
+
+ private final ProblemClassificationsNoSubscriptionsClient innerClient;
+
+ private final com.azure.resourcemanager.support.SupportManager serviceManager;
+
+ public ProblemClassificationsNoSubscriptionsImpl(ProblemClassificationsNoSubscriptionsClient innerClient,
+ com.azure.resourcemanager.support.SupportManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response classifyProblemsWithResponse(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput, Context context) {
+ Response inner = this.serviceClient()
+ .classifyProblemsWithResponse(problemServiceName, problemClassificationsClassificationInput, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ProblemClassificationsClassificationOutputImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ProblemClassificationsClassificationOutput classifyProblems(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput) {
+ ProblemClassificationsClassificationOutputInner inner
+ = this.serviceClient().classifyProblems(problemServiceName, problemClassificationsClassificationInput);
+ if (inner != null) {
+ return new ProblemClassificationsClassificationOutputImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private ProblemClassificationsNoSubscriptionsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.support.SupportManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationOutputImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationOutputImpl.java
new file mode 100644
index 0000000000000..7686a14d865ec
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationOutputImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ServiceClassificationAnswer;
+import com.azure.resourcemanager.support.models.ServiceClassificationOutput;
+import java.util.Collections;
+import java.util.List;
+
+public final class ServiceClassificationOutputImpl implements ServiceClassificationOutput {
+ private ServiceClassificationOutputInner innerObject;
+
+ private final com.azure.resourcemanager.support.SupportManager serviceManager;
+
+ ServiceClassificationOutputImpl(ServiceClassificationOutputInner innerObject,
+ com.azure.resourcemanager.support.SupportManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List serviceClassificationResults() {
+ List inner = this.innerModel().serviceClassificationResults();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ServiceClassificationOutputInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.support.SupportManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsClientImpl.java
new file mode 100644
index 0000000000000..0f537bd1278b6
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsClientImpl.java
@@ -0,0 +1,186 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.support.fluent.ServiceClassificationsClient;
+import com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ServiceClassificationsClient.
+ */
+public final class ServiceClassificationsClientImpl implements ServiceClassificationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ServiceClassificationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftSupportImpl client;
+
+ /**
+ * Initializes an instance of ServiceClassificationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ServiceClassificationsClientImpl(MicrosoftSupportImpl client) {
+ this.service = RestProxy.create(ServiceClassificationsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftSupportServiceClassifications to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftSupportServ")
+ public interface ServiceClassificationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Support/classifyServices")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> classifyServices(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ServiceClassificationRequest serviceClassificationRequest,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @return output of the service classification API along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ classifyServicesWithResponseAsync(ServiceClassificationRequest serviceClassificationRequest) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (serviceClassificationRequest == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter serviceClassificationRequest is required and cannot be null."));
+ } else {
+ serviceClassificationRequest.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.classifyServices(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), serviceClassificationRequest, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ classifyServicesWithResponseAsync(ServiceClassificationRequest serviceClassificationRequest, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (serviceClassificationRequest == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter serviceClassificationRequest is required and cannot be null."));
+ } else {
+ serviceClassificationRequest.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.classifyServices(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), serviceClassificationRequest, accept, context);
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @return output of the service classification API on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono
+ classifyServicesAsync(ServiceClassificationRequest serviceClassificationRequest) {
+ return classifyServicesWithResponseAsync(serviceClassificationRequest)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response
+ classifyServicesWithResponse(ServiceClassificationRequest serviceClassificationRequest, Context context) {
+ return classifyServicesWithResponseAsync(serviceClassificationRequest, context).block();
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @return output of the service classification API.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ServiceClassificationOutputInner
+ classifyServices(ServiceClassificationRequest serviceClassificationRequest) {
+ return classifyServicesWithResponse(serviceClassificationRequest, Context.NONE).getValue();
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsImpl.java
new file mode 100644
index 0000000000000..9b5c824469fdb
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsImpl.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.support.fluent.ServiceClassificationsClient;
+import com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ServiceClassificationOutput;
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+import com.azure.resourcemanager.support.models.ServiceClassifications;
+
+public final class ServiceClassificationsImpl implements ServiceClassifications {
+ private static final ClientLogger LOGGER = new ClientLogger(ServiceClassificationsImpl.class);
+
+ private final ServiceClassificationsClient innerClient;
+
+ private final com.azure.resourcemanager.support.SupportManager serviceManager;
+
+ public ServiceClassificationsImpl(ServiceClassificationsClient innerClient,
+ com.azure.resourcemanager.support.SupportManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response
+ classifyServicesWithResponse(ServiceClassificationRequest serviceClassificationRequest, Context context) {
+ Response inner
+ = this.serviceClient().classifyServicesWithResponse(serviceClassificationRequest, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ServiceClassificationOutputImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ServiceClassificationOutput classifyServices(ServiceClassificationRequest serviceClassificationRequest) {
+ ServiceClassificationOutputInner inner = this.serviceClient().classifyServices(serviceClassificationRequest);
+ if (inner != null) {
+ return new ServiceClassificationOutputImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private ServiceClassificationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.support.SupportManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsNoSubscriptionsClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsNoSubscriptionsClientImpl.java
new file mode 100644
index 0000000000000..ac87e685f25df
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsNoSubscriptionsClientImpl.java
@@ -0,0 +1,179 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.support.fluent.ServiceClassificationsNoSubscriptionsClient;
+import com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * ServiceClassificationsNoSubscriptionsClient.
+ */
+public final class ServiceClassificationsNoSubscriptionsClientImpl
+ implements ServiceClassificationsNoSubscriptionsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ServiceClassificationsNoSubscriptionsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final MicrosoftSupportImpl client;
+
+ /**
+ * Initializes an instance of ServiceClassificationsNoSubscriptionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ServiceClassificationsNoSubscriptionsClientImpl(MicrosoftSupportImpl client) {
+ this.service = RestProxy.create(ServiceClassificationsNoSubscriptionsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for MicrosoftSupportServiceClassificationsNoSubscriptions to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "MicrosoftSupportServ")
+ public interface ServiceClassificationsNoSubscriptionsService {
+ @Headers({ "Content-Type: application/json" })
+ @Post("/providers/Microsoft.Support/classifyServices")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> classifyServices(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") ServiceClassificationRequest serviceClassificationRequest,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @return output of the service classification API along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ classifyServicesWithResponseAsync(ServiceClassificationRequest serviceClassificationRequest) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (serviceClassificationRequest == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter serviceClassificationRequest is required and cannot be null."));
+ } else {
+ serviceClassificationRequest.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.classifyServices(this.client.getEndpoint(), this.client.getApiVersion(),
+ serviceClassificationRequest, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ classifyServicesWithResponseAsync(ServiceClassificationRequest serviceClassificationRequest, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (serviceClassificationRequest == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter serviceClassificationRequest is required and cannot be null."));
+ } else {
+ serviceClassificationRequest.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.classifyServices(this.client.getEndpoint(), this.client.getApiVersion(),
+ serviceClassificationRequest, accept, context);
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @return output of the service classification API on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono
+ classifyServicesAsync(ServiceClassificationRequest serviceClassificationRequest) {
+ return classifyServicesWithResponseAsync(serviceClassificationRequest)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response
+ classifyServicesWithResponse(ServiceClassificationRequest serviceClassificationRequest, Context context) {
+ return classifyServicesWithResponseAsync(serviceClassificationRequest, context).block();
+ }
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @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.
+ * @return output of the service classification API.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ServiceClassificationOutputInner
+ classifyServices(ServiceClassificationRequest serviceClassificationRequest) {
+ return classifyServicesWithResponse(serviceClassificationRequest, Context.NONE).getValue();
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsNoSubscriptionsImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsNoSubscriptionsImpl.java
new file mode 100644
index 0000000000000..21ec14ad7ac79
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceClassificationsNoSubscriptionsImpl.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.support.fluent.ServiceClassificationsNoSubscriptionsClient;
+import com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner;
+import com.azure.resourcemanager.support.models.ServiceClassificationOutput;
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+import com.azure.resourcemanager.support.models.ServiceClassificationsNoSubscriptions;
+
+public final class ServiceClassificationsNoSubscriptionsImpl implements ServiceClassificationsNoSubscriptions {
+ private static final ClientLogger LOGGER = new ClientLogger(ServiceClassificationsNoSubscriptionsImpl.class);
+
+ private final ServiceClassificationsNoSubscriptionsClient innerClient;
+
+ private final com.azure.resourcemanager.support.SupportManager serviceManager;
+
+ public ServiceClassificationsNoSubscriptionsImpl(ServiceClassificationsNoSubscriptionsClient innerClient,
+ com.azure.resourcemanager.support.SupportManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response
+ classifyServicesWithResponse(ServiceClassificationRequest serviceClassificationRequest, Context context) {
+ Response inner
+ = this.serviceClient().classifyServicesWithResponse(serviceClassificationRequest, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ServiceClassificationOutputImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ServiceClassificationOutput classifyServices(ServiceClassificationRequest serviceClassificationRequest) {
+ ServiceClassificationOutputInner inner = this.serviceClient().classifyServices(serviceClassificationRequest);
+ if (inner != null) {
+ return new ServiceClassificationOutputImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private ServiceClassificationsNoSubscriptionsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.support.SupportManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceImpl.java
index d9c67d45023e8..0b47c5126fa4a 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceImpl.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServiceImpl.java
@@ -8,6 +8,7 @@
import com.azure.resourcemanager.support.models.Service;
import java.util.Collections;
import java.util.List;
+import java.util.Map;
public final class ServiceImpl implements Service {
private ServiceInner innerObject;
@@ -44,6 +45,15 @@ public List resourceTypes() {
}
}
+ public Map metadata() {
+ Map inner = this.innerModel().metadata();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
public ServiceInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServicesClientImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServicesClientImpl.java
index 7dfdec31a05ce..5a027938c0f39 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServicesClientImpl.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/ServicesClientImpl.java
@@ -208,7 +208,7 @@ public PagedIterable list(Context context) {
/**
* Gets a specific Azure service for support ticket creation.
*
- * @param serviceName Name of the Azure service.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @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.
@@ -234,7 +234,7 @@ private Mono> getWithResponseAsync(String serviceName) {
/**
* Gets a specific Azure service for support ticket creation.
*
- * @param serviceName Name of the Azure service.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @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.
@@ -259,7 +259,7 @@ private Mono> getWithResponseAsync(String serviceName, Co
/**
* Gets a specific Azure service for support ticket creation.
*
- * @param serviceName Name of the Azure service.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @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.
@@ -273,7 +273,7 @@ private Mono getAsync(String serviceName) {
/**
* Gets a specific Azure service for support ticket creation.
*
- * @param serviceName Name of the Azure service.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @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.
@@ -288,7 +288,7 @@ public Response getWithResponse(String serviceName, Context contex
/**
* Gets a specific Azure service for support ticket creation.
*
- * @param serviceName Name of the Azure service.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @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.
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketDetailsImpl.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketDetailsImpl.java
index b8b40b27d5a7c..7d1ae30c4990a 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketDetailsImpl.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/implementation/SupportTicketDetailsImpl.java
@@ -227,6 +227,11 @@ public SupportTicketDetails refresh(Context context) {
return this;
}
+ public SupportTicketDetailsImpl withSupportTicketId(String supportTicketId) {
+ this.innerModel().withSupportTicketId(supportTicketId);
+ return this;
+ }
+
public SupportTicketDetailsImpl withDescription(String description) {
this.innerModel().withDescription(description);
return this;
@@ -247,36 +252,6 @@ public SupportTicketDetailsImpl withSeverity(SeverityLevel severity) {
}
}
- public SupportTicketDetailsImpl withAdvancedDiagnosticConsent(Consent advancedDiagnosticConsent) {
- if (isInCreateMode()) {
- this.innerModel().withAdvancedDiagnosticConsent(advancedDiagnosticConsent);
- return this;
- } else {
- this.updateUpdateSupportTicket.withAdvancedDiagnosticConsent(advancedDiagnosticConsent);
- return this;
- }
- }
-
- public SupportTicketDetailsImpl withContactDetails(ContactProfile contactDetails) {
- this.innerModel().withContactDetails(contactDetails);
- return this;
- }
-
- public SupportTicketDetailsImpl withTitle(String title) {
- this.innerModel().withTitle(title);
- return this;
- }
-
- public SupportTicketDetailsImpl withServiceId(String serviceId) {
- this.innerModel().withServiceId(serviceId);
- return this;
- }
-
- public SupportTicketDetailsImpl withSupportTicketId(String supportTicketId) {
- this.innerModel().withSupportTicketId(supportTicketId);
- return this;
- }
-
public SupportTicketDetailsImpl withEnrollmentId(String enrollmentId) {
this.innerModel().withEnrollmentId(enrollmentId);
return this;
@@ -287,6 +262,16 @@ public SupportTicketDetailsImpl withRequire24X7Response(Boolean require24X7Respo
return this;
}
+ public SupportTicketDetailsImpl withAdvancedDiagnosticConsent(Consent advancedDiagnosticConsent) {
+ if (isInCreateMode()) {
+ this.innerModel().withAdvancedDiagnosticConsent(advancedDiagnosticConsent);
+ return this;
+ } else {
+ this.updateUpdateSupportTicket.withAdvancedDiagnosticConsent(advancedDiagnosticConsent);
+ return this;
+ }
+ }
+
public SupportTicketDetailsImpl withProblemScopingQuestions(String problemScopingQuestions) {
this.innerModel().withProblemScopingQuestions(problemScopingQuestions);
return this;
@@ -297,6 +282,11 @@ public SupportTicketDetailsImpl withSupportPlanId(String supportPlanId) {
return this;
}
+ public SupportTicketDetailsImpl withContactDetails(ContactProfile contactDetails) {
+ this.innerModel().withContactDetails(contactDetails);
+ return this;
+ }
+
public SupportTicketDetailsImpl withServiceLevelAgreement(ServiceLevelAgreement serviceLevelAgreement) {
this.innerModel().withServiceLevelAgreement(serviceLevelAgreement);
return this;
@@ -307,11 +297,21 @@ public SupportTicketDetailsImpl withSupportEngineer(SupportEngineer supportEngin
return this;
}
+ public SupportTicketDetailsImpl withTitle(String title) {
+ this.innerModel().withTitle(title);
+ return this;
+ }
+
public SupportTicketDetailsImpl withProblemStartTime(OffsetDateTime problemStartTime) {
this.innerModel().withProblemStartTime(problemStartTime);
return this;
}
+ public SupportTicketDetailsImpl withServiceId(String serviceId) {
+ this.innerModel().withServiceId(serviceId);
+ return this;
+ }
+
public SupportTicketDetailsImpl withFileWorkspaceName(String fileWorkspaceName) {
this.innerModel().withFileWorkspaceName(fileWorkspaceName);
return this;
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationDetails.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationDetails.java
index 7964dd4bcf498..9d5c21ca506cc 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationDetails.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/CommunicationDetails.java
@@ -86,8 +86,8 @@ public interface CommunicationDetails {
/**
* The entirety of the CommunicationDetails definition.
*/
- interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource,
- DefinitionStages.WithSubject, DefinitionStages.WithBody, DefinitionStages.WithCreate {
+ interface Definition
+ extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
/**
@@ -110,40 +110,15 @@ interface WithParentResource {
* @param supportTicketName Support ticket name.
* @return the next definition stage.
*/
- WithSubject withExistingSupportTicket(String supportTicketName);
- }
-
- /**
- * The stage of the CommunicationDetails definition allowing to specify subject.
- */
- interface WithSubject {
- /**
- * Specifies the subject property: Subject of the communication..
- *
- * @param subject Subject of the communication.
- * @return the next definition stage.
- */
- WithBody withSubject(String subject);
- }
-
- /**
- * The stage of the CommunicationDetails definition allowing to specify body.
- */
- interface WithBody {
- /**
- * Specifies the body property: Body of the communication..
- *
- * @param body Body of the communication.
- * @return the next definition stage.
- */
- WithCreate withBody(String body);
+ WithCreate withExistingSupportTicket(String supportTicketName);
}
/**
* The stage of the CommunicationDetails definition which contains all the minimum required properties for the
* resource to be created, but also allows for any other optional properties to be specified.
*/
- interface WithCreate extends DefinitionStages.WithSender {
+ interface WithCreate
+ extends DefinitionStages.WithSender, DefinitionStages.WithSubject, DefinitionStages.WithBody {
/**
* Executes the create request.
*
@@ -173,6 +148,32 @@ interface WithSender {
*/
WithCreate withSender(String sender);
}
+
+ /**
+ * The stage of the CommunicationDetails definition allowing to specify subject.
+ */
+ interface WithSubject {
+ /**
+ * Specifies the subject property: Subject of the communication..
+ *
+ * @param subject Subject of the communication.
+ * @return the next definition stage.
+ */
+ WithCreate withSubject(String subject);
+ }
+
+ /**
+ * The stage of the CommunicationDetails definition allowing to specify body.
+ */
+ interface WithBody {
+ /**
+ * Specifies the body property: Body of the communication..
+ *
+ * @param body Body of the communication.
+ * @return the next definition stage.
+ */
+ WithCreate withBody(String body);
+ }
}
/**
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/FileDetails.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/FileDetails.java
index ecb0f5034aeb9..075dcaef41528 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/FileDetails.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/FileDetails.java
@@ -50,23 +50,21 @@ public interface FileDetails {
OffsetDateTime createdOn();
/**
- * Gets the chunkSize property: Size of each chunk. The size of each chunk should be provided in bytes and must not
- * exceed 2.5 megabytes (MB).
+ * Gets the chunkSize property: Size of each chunk.
*
* @return the chunkSize value.
*/
Integer chunkSize();
/**
- * Gets the fileSize property: Size of the file to be uploaded. The file size must not exceed 5 MB and should be
- * provided in bytes.
+ * Gets the fileSize property: Size of the file to be uploaded.
*
* @return the fileSize value.
*/
Integer fileSize();
/**
- * Gets the numberOfChunks property: Number of chunks to be uploaded. The maximum number of allowed chunks is 2.
+ * Gets the numberOfChunks property: Number of chunks to be uploaded.
*
* @return the numberOfChunks value.
*/
@@ -136,11 +134,9 @@ interface WithCreate
*/
interface WithChunkSize {
/**
- * Specifies the chunkSize property: Size of each chunk. The size of each chunk should be provided in bytes
- * and must not exceed 2.5 megabytes (MB)..
+ * Specifies the chunkSize property: Size of each chunk.
*
- * @param chunkSize Size of each chunk. The size of each chunk should be provided in bytes and must not
- * exceed 2.5 megabytes (MB).
+ * @param chunkSize Size of each chunk.
* @return the next definition stage.
*/
WithCreate withChunkSize(Integer chunkSize);
@@ -151,11 +147,9 @@ interface WithChunkSize {
*/
interface WithFileSize {
/**
- * Specifies the fileSize property: Size of the file to be uploaded. The file size must not exceed 5 MB and
- * should be provided in bytes..
+ * Specifies the fileSize property: Size of the file to be uploaded.
*
- * @param fileSize Size of the file to be uploaded. The file size must not exceed 5 MB and should be
- * provided in bytes.
+ * @param fileSize Size of the file to be uploaded.
* @return the next definition stage.
*/
WithCreate withFileSize(Integer fileSize);
@@ -166,10 +160,9 @@ interface WithFileSize {
*/
interface WithNumberOfChunks {
/**
- * Specifies the numberOfChunks property: Number of chunks to be uploaded. The maximum number of allowed
- * chunks is 2..
+ * Specifies the numberOfChunks property: Number of chunks to be uploaded.
*
- * @param numberOfChunks Number of chunks to be uploaded. The maximum number of allowed chunks is 2.
+ * @param numberOfChunks Number of chunks to be uploaded.
* @return the next definition stage.
*/
WithCreate withNumberOfChunks(Integer numberOfChunks);
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/LookUpResourceIdRequest.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/LookUpResourceIdRequest.java
new file mode 100644
index 0000000000000..fc8076d3ca030
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/LookUpResourceIdRequest.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The look up resource Id request body.
+ */
+@Fluent
+public final class LookUpResourceIdRequest {
+ /*
+ * The System generated Id that is unique. Use supportTicketId property for Microsoft.Support/supportTickets resource type.
+ */
+ @JsonProperty(value = "identifier")
+ private String identifier;
+
+ /*
+ * The type of resource.
+ */
+ @JsonProperty(value = "type")
+ private ResourceType type;
+
+ /**
+ * Creates an instance of LookUpResourceIdRequest class.
+ */
+ public LookUpResourceIdRequest() {
+ }
+
+ /**
+ * Get the identifier property: The System generated Id that is unique. Use supportTicketId property for
+ * Microsoft.Support/supportTickets resource type.
+ *
+ * @return the identifier value.
+ */
+ public String identifier() {
+ return this.identifier;
+ }
+
+ /**
+ * Set the identifier property: The System generated Id that is unique. Use supportTicketId property for
+ * Microsoft.Support/supportTickets resource type.
+ *
+ * @param identifier the identifier value to set.
+ * @return the LookUpResourceIdRequest object itself.
+ */
+ public LookUpResourceIdRequest withIdentifier(String identifier) {
+ this.identifier = identifier;
+ return this;
+ }
+
+ /**
+ * Get the type property: The type of resource.
+ *
+ * @return the type value.
+ */
+ public ResourceType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: The type of resource.
+ *
+ * @param type the type value to set.
+ * @return the LookUpResourceIdRequest object itself.
+ */
+ public LookUpResourceIdRequest withType(ResourceType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/LookUpResourceIdResponse.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/LookUpResourceIdResponse.java
new file mode 100644
index 0000000000000..e0229e2740556
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/LookUpResourceIdResponse.java
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.resourcemanager.support.fluent.models.LookUpResourceIdResponseInner;
+
+/**
+ * An immutable client-side representation of LookUpResourceIdResponse.
+ */
+public interface LookUpResourceIdResponse {
+ /**
+ * Gets the resourceId property: The resource Id of support resource type.
+ *
+ * @return the resourceId value.
+ */
+ String resourceId();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.support.fluent.models.LookUpResourceIdResponseInner object.
+ *
+ * @return the inner object.
+ */
+ LookUpResourceIdResponseInner innerModel();
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/LookUpResourceIds.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/LookUpResourceIds.java
new file mode 100644
index 0000000000000..eeacdb93c129a
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/LookUpResourceIds.java
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of LookUpResourceIds.
+ */
+public interface LookUpResourceIds {
+ /**
+ * This operation fetches ARM resource id of support resource type.
+ *
+ * @param lookUpResourceIdRequest Look up resource id request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the look up resource id response along with {@link Response}.
+ */
+ Response postWithResponse(LookUpResourceIdRequest lookUpResourceIdRequest,
+ Context context);
+
+ /**
+ * This operation fetches ARM resource id of support resource type.
+ *
+ * @param lookUpResourceIdRequest Look up resource id request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the look up resource id response.
+ */
+ LookUpResourceIdResponse post(LookUpResourceIdRequest lookUpResourceIdRequest);
+}
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..cfeb4f78c7602 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,6 +5,7 @@
package com.azure.resourcemanager.support.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -34,7 +35,7 @@ public final class MessageProperties {
/*
* Body of the communication.
*/
- @JsonProperty(value = "body")
+ @JsonProperty(value = "body", required = true)
private String body;
/*
@@ -122,5 +123,11 @@ public OffsetDateTime createdDate() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (body() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property body in model MessageProperties"));
+ }
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(MessageProperties.class);
}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassification.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassification.java
index 7a7440a6b9082..2d1a342d508e8 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassification.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassification.java
@@ -6,6 +6,7 @@
import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner;
import java.util.List;
+import java.util.Map;
/**
* An immutable client-side representation of ProblemClassification.
@@ -47,6 +48,21 @@ public interface ProblemClassification {
*/
List secondaryConsentEnabled();
+ /**
+ * Gets the metadata property: String-to-string dictionary for additional metadata.
+ *
+ * @return the metadata value.
+ */
+ Map metadata();
+
+ /**
+ * Gets the parentProblemClassification property: Reference to the parent problem classification which has same
+ * structure as problem classification.
+ *
+ * @return the parentProblemClassification value.
+ */
+ ProblemClassification parentProblemClassification();
+
/**
* Gets the inner com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner object.
*
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationProperties.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationProperties.java
new file mode 100644
index 0000000000000..bf3a8cbdbeb9d
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationProperties.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationPropertiesInner;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * An immutable client-side representation of ProblemClassificationProperties.
+ */
+public interface ProblemClassificationProperties {
+ /**
+ * Gets the displayName property: Localized name of problem classification.
+ *
+ * @return the displayName value.
+ */
+ String displayName();
+
+ /**
+ * Gets the secondaryConsentEnabled property: This property indicates whether secondary consent is present for
+ * problem classification.
+ *
+ * @return the secondaryConsentEnabled value.
+ */
+ List secondaryConsentEnabled();
+
+ /**
+ * Gets the metadata property: String-to-string dictionary for additional metadata.
+ *
+ * @return the metadata value.
+ */
+ Map metadata();
+
+ /**
+ * Gets the parentProblemClassification property: Reference to the parent problem classification which has same
+ * structure as problem classification.
+ *
+ * @return the parentProblemClassification value.
+ */
+ ProblemClassification parentProblemClassification();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.support.fluent.models.ProblemClassificationPropertiesInner object.
+ *
+ * @return the inner object.
+ */
+ ProblemClassificationPropertiesInner innerModel();
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassifications.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassifications.java
index 960a9159ccc98..caa1375197ae9 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassifications.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassifications.java
@@ -12,6 +12,33 @@
* Resource collection API of ProblemClassifications.
*/
public interface ProblemClassifications {
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API along with {@link Response}.
+ */
+ Response classifyProblemsWithResponse(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput, Context context);
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API.
+ */
+ ProblemClassificationsClassificationOutput classifyProblems(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput);
+
/**
* Lists all the problem classifications (categories) available for a specific Azure service. Always use the service
* and problem classifications obtained programmatically. This practice ensures that you always have the most recent
@@ -42,7 +69,7 @@ public interface ProblemClassifications {
/**
* Get problem classification details for a specific Azure service.
*
- * @param serviceName Name of the Azure service available for support.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -56,7 +83,7 @@ Response getWithResponse(String serviceName, String probl
/**
* Get problem classification details for a specific Azure service.
*
- * @param serviceName Name of the Azure service available for support.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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/ProblemClassificationsClassificationInput.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsClassificationInput.java
new file mode 100644
index 0000000000000..faef6555cfb52
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsClassificationInput.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input to problem classification Classification API.
+ */
+@Fluent
+public final class ProblemClassificationsClassificationInput {
+ /*
+ * Natural language description of the customer’s issue.
+ */
+ @JsonProperty(value = "issueSummary", required = true)
+ private String issueSummary;
+
+ /*
+ * ARM resource Id of the resource that is having the issue.
+ */
+ @JsonProperty(value = "resourceId")
+ private String resourceId;
+
+ /**
+ * Creates an instance of ProblemClassificationsClassificationInput class.
+ */
+ public ProblemClassificationsClassificationInput() {
+ }
+
+ /**
+ * Get the issueSummary property: Natural language description of the customer’s issue.
+ *
+ * @return the issueSummary value.
+ */
+ public String issueSummary() {
+ return this.issueSummary;
+ }
+
+ /**
+ * Set the issueSummary property: Natural language description of the customer’s issue.
+ *
+ * @param issueSummary the issueSummary value to set.
+ * @return the ProblemClassificationsClassificationInput object itself.
+ */
+ public ProblemClassificationsClassificationInput withIssueSummary(String issueSummary) {
+ this.issueSummary = issueSummary;
+ return this;
+ }
+
+ /**
+ * Get the resourceId property: ARM resource Id of the resource that is having the issue.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Set the resourceId property: ARM resource Id of the resource that is having the issue.
+ *
+ * @param resourceId the resourceId value to set.
+ * @return the ProblemClassificationsClassificationInput object itself.
+ */
+ public ProblemClassificationsClassificationInput withResourceId(String resourceId) {
+ this.resourceId = resourceId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (issueSummary() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property issueSummary in model ProblemClassificationsClassificationInput"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ProblemClassificationsClassificationInput.class);
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsClassificationOutput.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsClassificationOutput.java
new file mode 100644
index 0000000000000..6e37ddb340963
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsClassificationOutput.java
@@ -0,0 +1,28 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
+import java.util.List;
+
+/**
+ * An immutable client-side representation of ProblemClassificationsClassificationOutput.
+ */
+public interface ProblemClassificationsClassificationOutput {
+ /**
+ * Gets the problemClassificationResults property: Set of problem classification objects classified.
+ *
+ * @return the problemClassificationResults value.
+ */
+ List problemClassificationResults();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner
+ * object.
+ *
+ * @return the inner object.
+ */
+ ProblemClassificationsClassificationOutputInner innerModel();
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsClassificationResult.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsClassificationResult.java
new file mode 100644
index 0000000000000..30166acf99d50
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsClassificationResult.java
@@ -0,0 +1,164 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.support.fluent.models.ClassificationService;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * ProblemClassification Classification result object.
+ */
+@Fluent
+public final class ProblemClassificationsClassificationResult {
+ /*
+ * Identifier that may be used for solution discovery or some other purposes.
+ */
+ @JsonProperty(value = "problemId", access = JsonProperty.Access.WRITE_ONLY)
+ private String problemId;
+
+ /*
+ * Title of the problem classification result.
+ */
+ @JsonProperty(value = "title", access = JsonProperty.Access.WRITE_ONLY)
+ private String title;
+
+ /*
+ * Description of the problem classification result.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /*
+ * Identifier of the service associated with this problem classification result.
+ */
+ @JsonProperty(value = "serviceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String serviceId;
+
+ /*
+ * Identifier that may be used for support ticket creation.
+ */
+ @JsonProperty(value = "problemClassificationId", access = JsonProperty.Access.WRITE_ONLY)
+ private String problemClassificationId;
+
+ /*
+ * Related service.
+ */
+ @JsonProperty(value = "relatedService")
+ private ClassificationService innerRelatedService;
+
+ /**
+ * Creates an instance of ProblemClassificationsClassificationResult class.
+ */
+ public ProblemClassificationsClassificationResult() {
+ }
+
+ /**
+ * Get the problemId property: Identifier that may be used for solution discovery or some other purposes.
+ *
+ * @return the problemId value.
+ */
+ public String problemId() {
+ return this.problemId;
+ }
+
+ /**
+ * Get the title property: Title of the problem classification result.
+ *
+ * @return the title value.
+ */
+ public String title() {
+ return this.title;
+ }
+
+ /**
+ * Get the description property: Description of the problem classification result.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the serviceId property: Identifier of the service associated with this problem classification result.
+ *
+ * @return the serviceId value.
+ */
+ public String serviceId() {
+ return this.serviceId;
+ }
+
+ /**
+ * Get the problemClassificationId property: Identifier that may be used for support ticket creation.
+ *
+ * @return the problemClassificationId value.
+ */
+ public String problemClassificationId() {
+ return this.problemClassificationId;
+ }
+
+ /**
+ * Get the innerRelatedService property: Related service.
+ *
+ * @return the innerRelatedService value.
+ */
+ private ClassificationService innerRelatedService() {
+ return this.innerRelatedService;
+ }
+
+ /**
+ * Get the serviceId property: Azure resource Id of the service.
+ *
+ * @return the serviceId value.
+ */
+ public String serviceIdRelatedServiceServiceId() {
+ return this.innerRelatedService() == null ? null : this.innerRelatedService().serviceId();
+ }
+
+ /**
+ * Get the displayName property: Localized name of the azure service.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.innerRelatedService() == null ? null : this.innerRelatedService().displayName();
+ }
+
+ /**
+ * Get the resourceTypes property: List of applicable ARM resource types for this service.
+ *
+ * @return the resourceTypes value.
+ */
+ public List resourceTypes() {
+ return this.innerRelatedService() == null ? null : this.innerRelatedService().resourceTypes();
+ }
+
+ /**
+ * Set the resourceTypes property: List of applicable ARM resource types for this service.
+ *
+ * @param resourceTypes the resourceTypes value to set.
+ * @return the ProblemClassificationsClassificationResult object itself.
+ */
+ public ProblemClassificationsClassificationResult withResourceTypes(List resourceTypes) {
+ if (this.innerRelatedService() == null) {
+ this.innerRelatedService = new ClassificationService();
+ }
+ this.innerRelatedService().withResourceTypes(resourceTypes);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerRelatedService() != null) {
+ innerRelatedService().validate();
+ }
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsNoSubscriptions.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsNoSubscriptions.java
new file mode 100644
index 0000000000000..13bd5e2b69297
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ProblemClassificationsNoSubscriptions.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of ProblemClassificationsNoSubscriptions.
+ */
+public interface ProblemClassificationsNoSubscriptions {
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API along with {@link Response}.
+ */
+ Response classifyProblemsWithResponse(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput, Context context);
+
+ /**
+ * Classify the right problem classifications (categories) available for a specific Azure service.
+ *
+ * @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
+ * @param problemClassificationsClassificationInput Input to check.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the problem classification Classification API.
+ */
+ ProblemClassificationsClassificationOutput classifyProblems(String problemServiceName,
+ ProblemClassificationsClassificationInput problemClassificationsClassificationInput);
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ResourceType.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ResourceType.java
new file mode 100644
index 0000000000000..6a0b0d2d5da3f
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ResourceType.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * The type of resource.
+ */
+public enum ResourceType {
+ /**
+ * Enum value Microsoft.Support/supportTickets.
+ */
+ MICROSOFT_SUPPORT_SUPPORT_TICKETS("Microsoft.Support/supportTickets");
+
+ /**
+ * The actual serialized value for a ResourceType instance.
+ */
+ private final String value;
+
+ ResourceType(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a ResourceType instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed ResourceType object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static ResourceType fromString(String value) {
+ if (value == null) {
+ return null;
+ }
+ ResourceType[] items = ResourceType.values();
+ for (ResourceType item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * {@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/Service.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Service.java
index 0bbe9ffbeedd0..ca2d13311028d 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Service.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Service.java
@@ -6,6 +6,7 @@
import com.azure.resourcemanager.support.fluent.models.ServiceInner;
import java.util.List;
+import java.util.Map;
/**
* An immutable client-side representation of Service.
@@ -46,6 +47,13 @@ public interface Service {
*/
List resourceTypes();
+ /**
+ * Gets the metadata property: Metadata about the service, only visible for 1P clients.
+ *
+ * @return the metadata value.
+ */
+ Map metadata();
+
/**
* Gets the inner com.azure.resourcemanager.support.fluent.models.ServiceInner object.
*
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationAnswer.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationAnswer.java
new file mode 100644
index 0000000000000..6d372948913d2
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationAnswer.java
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.support.fluent.models.ClassificationService;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Service Classification result object.
+ */
+@Fluent
+public final class ServiceClassificationAnswer extends ClassificationService {
+ /*
+ * Child service.
+ */
+ @JsonProperty(value = "childService")
+ private ClassificationService childService;
+
+ /**
+ * Creates an instance of ServiceClassificationAnswer class.
+ */
+ public ServiceClassificationAnswer() {
+ }
+
+ /**
+ * Get the childService property: Child service.
+ *
+ * @return the childService value.
+ */
+ public ClassificationService childService() {
+ return this.childService;
+ }
+
+ /**
+ * Set the childService property: Child service.
+ *
+ * @param childService the childService value to set.
+ * @return the ServiceClassificationAnswer object itself.
+ */
+ public ServiceClassificationAnswer withChildService(ClassificationService childService) {
+ this.childService = childService;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ServiceClassificationAnswer withResourceTypes(List resourceTypes) {
+ super.withResourceTypes(resourceTypes);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (childService() != null) {
+ childService().validate();
+ }
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationOutput.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationOutput.java
new file mode 100644
index 0000000000000..defb211ec1790
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationOutput.java
@@ -0,0 +1,27 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner;
+import java.util.List;
+
+/**
+ * An immutable client-side representation of ServiceClassificationOutput.
+ */
+public interface ServiceClassificationOutput {
+ /**
+ * Gets the serviceClassificationResults property: Set of problem classification objects classified.
+ *
+ * @return the serviceClassificationResults value.
+ */
+ List serviceClassificationResults();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner object.
+ *
+ * @return the inner object.
+ */
+ ServiceClassificationOutputInner innerModel();
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationRequest.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationRequest.java
new file mode 100644
index 0000000000000..478ece4c4619e
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationRequest.java
@@ -0,0 +1,106 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input to problem classification Classification API.
+ */
+@Fluent
+public final class ServiceClassificationRequest {
+ /*
+ * Natural language description of the customer’s issue.
+ */
+ @JsonProperty(value = "issueSummary")
+ private String issueSummary;
+
+ /*
+ * ARM resource Id of the resource that is having the issue.
+ */
+ @JsonProperty(value = "resourceId")
+ private String resourceId;
+
+ /*
+ * Additional information in the form of a string.
+ */
+ @JsonProperty(value = "additionalContext")
+ private String additionalContext;
+
+ /**
+ * Creates an instance of ServiceClassificationRequest class.
+ */
+ public ServiceClassificationRequest() {
+ }
+
+ /**
+ * Get the issueSummary property: Natural language description of the customer’s issue.
+ *
+ * @return the issueSummary value.
+ */
+ public String issueSummary() {
+ return this.issueSummary;
+ }
+
+ /**
+ * Set the issueSummary property: Natural language description of the customer’s issue.
+ *
+ * @param issueSummary the issueSummary value to set.
+ * @return the ServiceClassificationRequest object itself.
+ */
+ public ServiceClassificationRequest withIssueSummary(String issueSummary) {
+ this.issueSummary = issueSummary;
+ return this;
+ }
+
+ /**
+ * Get the resourceId property: ARM resource Id of the resource that is having the issue.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Set the resourceId property: ARM resource Id of the resource that is having the issue.
+ *
+ * @param resourceId the resourceId value to set.
+ * @return the ServiceClassificationRequest object itself.
+ */
+ public ServiceClassificationRequest withResourceId(String resourceId) {
+ this.resourceId = resourceId;
+ return this;
+ }
+
+ /**
+ * Get the additionalContext property: Additional information in the form of a string.
+ *
+ * @return the additionalContext value.
+ */
+ public String additionalContext() {
+ return this.additionalContext;
+ }
+
+ /**
+ * Set the additionalContext property: Additional information in the form of a string.
+ *
+ * @param additionalContext the additionalContext value to set.
+ * @return the ServiceClassificationRequest object itself.
+ */
+ public ServiceClassificationRequest withAdditionalContext(String additionalContext) {
+ this.additionalContext = additionalContext;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassifications.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassifications.java
new file mode 100644
index 0000000000000..fc2b8c5fd0d41
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassifications.java
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of ServiceClassifications.
+ */
+public interface ServiceClassifications {
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API along with {@link Response}.
+ */
+ Response
+ classifyServicesWithResponse(ServiceClassificationRequest serviceClassificationRequest, Context context);
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API.
+ */
+ ServiceClassificationOutput classifyServices(ServiceClassificationRequest serviceClassificationRequest);
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationsNoSubscriptions.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationsNoSubscriptions.java
new file mode 100644
index 0000000000000..448bed22db2e5
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/ServiceClassificationsNoSubscriptions.java
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/**
+ * Resource collection API of ServiceClassificationsNoSubscriptions.
+ */
+public interface ServiceClassificationsNoSubscriptions {
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API along with {@link Response}.
+ */
+ Response
+ classifyServicesWithResponse(ServiceClassificationRequest serviceClassificationRequest, Context context);
+
+ /**
+ * Classify the list of right Azure services.
+ *
+ * @param serviceClassificationRequest Input to check.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return output of the service classification API.
+ */
+ ServiceClassificationOutput classifyServices(ServiceClassificationRequest serviceClassificationRequest);
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Services.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Services.java
index efb6616dc3b5f..a226576c8253b 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Services.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/Services.java
@@ -45,7 +45,7 @@ public interface Services {
/**
* Gets a specific Azure service for support ticket creation.
*
- * @param serviceName Name of the Azure service.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -57,7 +57,7 @@ public interface Services {
/**
* Gets a specific Azure service for support ticket creation.
*
- * @param serviceName Name of the Azure service.
+ * @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
diff --git a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportTicketDetails.java b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportTicketDetails.java
index a6a51f34692f2..5cb44ce97970e 100644
--- a/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportTicketDetails.java
+++ b/sdk/support/azure-resourcemanager-support/src/main/java/com/azure/resourcemanager/support/models/SupportTicketDetails.java
@@ -239,10 +239,7 @@ public interface SupportTicketDetails {
/**
* The entirety of the SupportTicketDetails definition.
*/
- interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDescription,
- DefinitionStages.WithProblemClassificationId, DefinitionStages.WithSeverity,
- DefinitionStages.WithAdvancedDiagnosticConsent, DefinitionStages.WithContactDetails, DefinitionStages.WithTitle,
- DefinitionStages.WithServiceId, DefinitionStages.WithCreate {
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithCreate {
}
/**
@@ -252,7 +249,49 @@ interface DefinitionStages {
/**
* The first stage of the SupportTicketDetails definition.
*/
- interface Blank extends WithDescription {
+ interface Blank extends WithCreate {
+ }
+
+ /**
+ * The stage of the SupportTicketDetails definition which contains all the minimum required properties for the
+ * resource to be created, but also allows for any other optional properties to be specified.
+ */
+ interface WithCreate extends DefinitionStages.WithSupportTicketId, DefinitionStages.WithDescription,
+ DefinitionStages.WithProblemClassificationId, DefinitionStages.WithSeverity,
+ DefinitionStages.WithEnrollmentId, DefinitionStages.WithRequire24X7Response,
+ DefinitionStages.WithAdvancedDiagnosticConsent, DefinitionStages.WithProblemScopingQuestions,
+ DefinitionStages.WithSupportPlanId, DefinitionStages.WithContactDetails,
+ DefinitionStages.WithServiceLevelAgreement, DefinitionStages.WithSupportEngineer,
+ DefinitionStages.WithTitle, DefinitionStages.WithProblemStartTime, DefinitionStages.WithServiceId,
+ DefinitionStages.WithFileWorkspaceName, DefinitionStages.WithTechnicalTicketDetails,
+ DefinitionStages.WithQuotaTicketDetails, DefinitionStages.WithSecondaryConsent {
+ /**
+ * Executes the create request.
+ *
+ * @return the created resource.
+ */
+ SupportTicketDetails create();
+
+ /**
+ * Executes the create request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the created resource.
+ */
+ SupportTicketDetails create(Context context);
+ }
+
+ /**
+ * The stage of the SupportTicketDetails definition allowing to specify supportTicketId.
+ */
+ interface WithSupportTicketId {
+ /**
+ * Specifies the supportTicketId property: System generated support ticket Id that is unique..
+ *
+ * @param supportTicketId System generated support ticket Id that is unique.
+ * @return the next definition stage.
+ */
+ WithCreate withSupportTicketId(String supportTicketId);
}
/**
@@ -265,7 +304,7 @@ interface WithDescription {
* @param description Detailed description of the question or issue.
* @return the next definition stage.
*/
- WithProblemClassificationId withDescription(String description);
+ WithCreate withDescription(String description);
}
/**
@@ -281,7 +320,7 @@ interface WithProblemClassificationId {
* problem classification. This parameter is the unique Id for the type of problem you are experiencing.
* @return the next definition stage.
*/
- WithSeverity withProblemClassificationId(String problemClassificationId);
+ WithCreate withProblemClassificationId(String problemClassificationId);
}
/**
@@ -300,102 +339,7 @@ interface WithSeverity {
* reserved only for our Premium customers.
* @return the next definition stage.
*/
- WithAdvancedDiagnosticConsent withSeverity(SeverityLevel severity);
- }
-
- /**
- * The stage of the SupportTicketDetails definition allowing to specify advancedDiagnosticConsent.
- */
- interface WithAdvancedDiagnosticConsent {
- /**
- * Specifies the advancedDiagnosticConsent property: Advanced diagnostic consent to be updated on the
- * support ticket..
- *
- * @param advancedDiagnosticConsent Advanced diagnostic consent to be updated on the support ticket.
- * @return the next definition stage.
- */
- WithContactDetails withAdvancedDiagnosticConsent(Consent advancedDiagnosticConsent);
- }
-
- /**
- * The stage of the SupportTicketDetails definition allowing to specify contactDetails.
- */
- interface WithContactDetails {
- /**
- * Specifies the contactDetails property: Contact information of the user requesting to create a support
- * ticket..
- *
- * @param contactDetails Contact information of the user requesting to create a support ticket.
- * @return the next definition stage.
- */
- WithTitle withContactDetails(ContactProfile contactDetails);
- }
-
- /**
- * The stage of the SupportTicketDetails definition allowing to specify title.
- */
- interface WithTitle {
- /**
- * Specifies the title property: Title of the support ticket..
- *
- * @param title Title of the support ticket.
- * @return the next definition stage.
- */
- WithServiceId withTitle(String title);
- }
-
- /**
- * The stage of the SupportTicketDetails definition allowing to specify serviceId.
- */
- interface WithServiceId {
- /**
- * Specifies the serviceId property: This is the resource Id of the Azure service resource associated with
- * the support ticket..
- *
- * @param serviceId This is the resource Id of the Azure service resource associated with the support
- * ticket.
- * @return the next definition stage.
- */
- WithCreate withServiceId(String serviceId);
- }
-
- /**
- * The stage of the SupportTicketDetails definition which contains all the minimum required properties for the
- * resource to be created, but also allows for any other optional properties to be specified.
- */
- interface WithCreate extends DefinitionStages.WithSupportTicketId, DefinitionStages.WithEnrollmentId,
- DefinitionStages.WithRequire24X7Response, DefinitionStages.WithProblemScopingQuestions,
- DefinitionStages.WithSupportPlanId, DefinitionStages.WithServiceLevelAgreement,
- DefinitionStages.WithSupportEngineer, DefinitionStages.WithProblemStartTime,
- DefinitionStages.WithFileWorkspaceName, DefinitionStages.WithTechnicalTicketDetails,
- DefinitionStages.WithQuotaTicketDetails, DefinitionStages.WithSecondaryConsent {
- /**
- * Executes the create request.
- *
- * @return the created resource.
- */
- SupportTicketDetails create();
-
- /**
- * Executes the create request.
- *
- * @param context The context to associate with this operation.
- * @return the created resource.
- */
- SupportTicketDetails create(Context context);
- }
-
- /**
- * The stage of the SupportTicketDetails definition allowing to specify supportTicketId.
- */
- interface WithSupportTicketId {
- /**
- * Specifies the supportTicketId property: System generated support ticket Id that is unique..
- *
- * @param supportTicketId System generated support ticket Id that is unique.
- * @return the next definition stage.
- */
- WithCreate withSupportTicketId(String supportTicketId);
+ WithCreate withSeverity(SeverityLevel severity);
}
/**
@@ -424,6 +368,20 @@ interface WithRequire24X7Response {
WithCreate withRequire24X7Response(Boolean require24X7Response);
}
+ /**
+ * The stage of the SupportTicketDetails definition allowing to specify advancedDiagnosticConsent.
+ */
+ interface WithAdvancedDiagnosticConsent {
+ /**
+ * Specifies the advancedDiagnosticConsent property: Advanced diagnostic consent to be updated on the
+ * support ticket..
+ *
+ * @param advancedDiagnosticConsent Advanced diagnostic consent to be updated on the support ticket.
+ * @return the next definition stage.
+ */
+ WithCreate withAdvancedDiagnosticConsent(Consent advancedDiagnosticConsent);
+ }
+
/**
* The stage of the SupportTicketDetails definition allowing to specify problemScopingQuestions.
*/
@@ -451,6 +409,20 @@ interface WithSupportPlanId {
WithCreate withSupportPlanId(String supportPlanId);
}
+ /**
+ * The stage of the SupportTicketDetails definition allowing to specify contactDetails.
+ */
+ interface WithContactDetails {
+ /**
+ * Specifies the contactDetails property: Contact information of the user requesting to create a support
+ * ticket..
+ *
+ * @param contactDetails Contact information of the user requesting to create a support ticket.
+ * @return the next definition stage.
+ */
+ WithCreate withContactDetails(ContactProfile contactDetails);
+ }
+
/**
* The stage of the SupportTicketDetails definition allowing to specify serviceLevelAgreement.
*/
@@ -479,6 +451,19 @@ interface WithSupportEngineer {
WithCreate withSupportEngineer(SupportEngineer supportEngineer);
}
+ /**
+ * The stage of the SupportTicketDetails definition allowing to specify title.
+ */
+ interface WithTitle {
+ /**
+ * Specifies the title property: Title of the support ticket..
+ *
+ * @param title Title of the support ticket.
+ * @return the next definition stage.
+ */
+ WithCreate withTitle(String title);
+ }
+
/**
* The stage of the SupportTicketDetails definition allowing to specify problemStartTime.
*/
@@ -492,6 +477,21 @@ interface WithProblemStartTime {
WithCreate withProblemStartTime(OffsetDateTime problemStartTime);
}
+ /**
+ * The stage of the SupportTicketDetails definition allowing to specify serviceId.
+ */
+ interface WithServiceId {
+ /**
+ * Specifies the serviceId property: This is the resource Id of the Azure service resource associated with
+ * the support ticket..
+ *
+ * @param serviceId This is the resource Id of the Azure service resource associated with the support
+ * ticket.
+ * @return the next definition stage.
+ */
+ WithCreate withServiceId(String serviceId);
+ }
+
/**
* The stage of the SupportTicketDetails definition allowing to specify fileWorkspaceName.
*/
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..8a77ab0c246cb 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
@@ -9,8 +9,7 @@
import java.util.List;
/**
- * Updates severity, ticket status, contact details, advanced diagnostic consent and secondary consent in the support
- * ticket.
+ * Updates severity, ticket status, and contact details in the support ticket.
*/
@Fluent
public final class UpdateSupportTicket {
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..3c50f48ef406c 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.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.support.implementation.ServicesClientImpl$ServicesService" ], [ "com.azure.resourcemanager.support.implementation.ServiceClassificationsNoSubscriptionsClientImpl$ServiceClassificationsNoSubscriptionsService" ], [ "com.azure.resourcemanager.support.implementation.ServiceClassificationsClientImpl$ServiceClassificationsService" ], [ "com.azure.resourcemanager.support.implementation.ProblemClassificationsNoSubscriptionsClientImpl$ProblemClassificationsNoSubscriptionsService" ], [ "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" ], [ "com.azure.resourcemanager.support.implementation.LookUpResourceIdsClientImpl$LookUpResourceIdsService" ] ]
\ 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..6f4e2dc9d4a5b 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
@@ -28,6 +28,41 @@
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.models.ServiceClassificationRequest",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.fluent.models.ServiceClassificationOutputInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.models.ServiceClassificationAnswer",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.fluent.models.ClassificationService",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.models.ProblemClassificationsClassificationResult",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
}, {
"name" : "com.azure.resourcemanager.support.models.ProblemClassificationsListResult",
"allDeclaredConstructors" : true,
@@ -39,7 +74,7 @@
"allDeclaredFields" : true,
"allDeclaredMethods" : true
}, {
- "name" : "com.azure.resourcemanager.support.fluent.models.ProblemClassificationProperties",
+ "name" : "com.azure.resourcemanager.support.fluent.models.ProblemClassificationPropertiesInner",
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
@@ -183,6 +218,16 @@
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.models.LookUpResourceIdRequest",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.fluent.models.LookUpResourceIdResponseInner",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
}, {
"name" : "com.azure.resourcemanager.support.models.SeverityLevel",
"allDeclaredConstructors" : true,
@@ -233,4 +278,9 @@
"allDeclaredConstructors" : true,
"allDeclaredFields" : true,
"allDeclaredMethods" : true
+}, {
+ "name" : "com.azure.resourcemanager.support.models.ResourceType",
+ "allDeclaredConstructors" : true,
+ "allDeclaredFields" : true,
+ "allDeclaredMethods" : true
} ]
\ 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..e6f24c1ffb259 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,7 @@
*/
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/preview/2023-06-01-preview/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..c632d59129da3 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,7 @@
*/
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/preview/2023-06-01-preview/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..6086d9ed4429e 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,7 @@
*/
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/preview/2023-06-01-preview/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..96faf454fa492 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,7 @@
*/
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/preview/2023-06-01-preview/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..4b5ac310ef7c7 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,14 +12,14 @@
*/
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/preview/2023-06-01-preview/examples/CheckNameAvailabilityForSupportTicketCommunication.json
*/
/**
- * Sample code: Checks whether name is available for Communication resource for a subscription support ticket.
+ * Sample code: Checks whether name is available for subscription scoped Communication resource.
*
* @param manager Entry point to SupportManager.
*/
- public static void checksWhetherNameIsAvailableForCommunicationResourceForASubscriptionSupportTicket(
+ public static void checksWhetherNameIsAvailableForSubscriptionScopedCommunicationResource(
com.azure.resourcemanager.support.SupportManager manager) {
manager.communications()
.checkNameAvailabilityWithResponse("testticket",
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..ade6f0ab09f26 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,7 @@
*/
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/preview/2023-06-01-preview/examples/CreateSupportTicketCommunication.json
*/
/**
* Sample code: AddCommunicationToSubscriptionTicket.
@@ -20,9 +20,9 @@ public static void addCommunicationToSubscriptionTicket(com.azure.resourcemanage
manager.communications()
.define("testcommunication")
.withExistingSupportTicket("testticket")
+ .withSender("user@contoso.com")
.withSubject("This is a test message from a customer!")
.withBody("This is a test message from a customer!")
- .withSender("user@contoso.com")
.create();
}
}
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..4bba21c16053e 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,7 @@
*/
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/preview/2023-06-01-preview/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..35affc3aff902 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,7 @@
*/
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/preview/2023-06-01-preview/examples/ListCommunicationsForSubscriptionSupportTicket.json
*/
/**
* Sample code: List communications for a subscription support ticket.
@@ -22,7 +22,7 @@ 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/preview/2023-06-01-preview/examples/ListWebCommunicationsForSubscriptionSupportTicket.json
*/
/**
* Sample code: List web communications for a subscription support ticket.
@@ -36,7 +36,7 @@ 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/preview/2023-06-01-preview/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..74a6f6d167f08 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,7 @@
*/
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/preview/2023-06-01-preview/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..86fa2b138f508 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,7 @@
*/
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/preview/2023-06-01-preview/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..0b3a6e510fbe4 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,7 @@
*/
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/preview/2023-06-01-preview/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..254b71466345d 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,7 @@
*/
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/preview/2023-06-01-preview/examples/ListCommunicationsForSupportTicket.json
*/
/**
* Sample code: List communications for a no-subscription support ticket.
@@ -22,7 +22,7 @@ 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/preview/2023-06-01-preview/examples/ListWebCommunicationsForSupportTicketCreatedOnOrAfter.json
*/
/**
* Sample code: List web communication created on or after a specific date for a no-subscription support ticket.
@@ -37,7 +37,7 @@ 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/preview/2023-06-01-preview/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..78414d5273aa5 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,14 +9,15 @@
*/
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/preview/2023-06-01-preview/examples/CreateFileWorkspaceForSubscription.json
*/
/**
- * Sample code: Create a file workspace for a subscription.
+ * Sample code: Create a subscription scoped file workspace.
*
* @param manager Entry point to SupportManager.
*/
- public static void createAFileWorkspaceForASubscription(com.azure.resourcemanager.support.SupportManager manager) {
+ public static void
+ createASubscriptionScopedFileWorkspace(com.azure.resourcemanager.support.SupportManager manager) {
manager.fileWorkspaces().createWithResponse("testworkspace", com.azure.core.util.Context.NONE);
}
}
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..de81739384905 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,7 @@
*/
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/preview/2023-06-01-preview/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..476f36f133c12 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,7 @@
*/
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/preview/2023-06-01-preview/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..4e0b5efed6e25 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,7 @@
*/
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/preview/2023-06-01-preview/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..a0721fb6c6778 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,15 +9,14 @@
*/
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/preview/2023-06-01-preview/examples/CreateFileForSubscription.json
*/
/**
- * Sample code: Create a file under a subscription workspace.
+ * Sample code: Create a subscription scoped file.
*
* @param manager Entry point to SupportManager.
*/
- public static void
- createAFileUnderASubscriptionWorkspace(com.azure.resourcemanager.support.SupportManager manager) {
+ public static void createASubscriptionScopedFile(com.azure.resourcemanager.support.SupportManager manager) {
manager.files()
.define("test.txt")
.withExistingFileWorkspace("testworkspace")
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..11ed04661d996 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,7 @@
*/
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/preview/2023-06-01-preview/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..de51a1b53e365 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,7 @@
*/
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/preview/2023-06-01-preview/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..391896195e374 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,7 @@
*/
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/preview/2023-06-01-preview/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..6bbf63d44b3ff 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,7 @@
*/
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/preview/2023-06-01-preview/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..8a4836413cec6 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,7 @@
*/
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/preview/2023-06-01-preview/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..ffb353e45eaf1 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,7 @@
*/
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/preview/2023-06-01-preview/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..3bbafa1b5df3b 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,7 @@
*/
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/preview/2023-06-01-preview/examples/UploadFileForSubscription.json
*/
/**
* Sample code: UploadFileForSubscription.
diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/LookUpResourceIdPostSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/LookUpResourceIdPostSamples.java
new file mode 100644
index 0000000000000..6b1be3d7c4d17
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/LookUpResourceIdPostSamples.java
@@ -0,0 +1,27 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.generated;
+
+import com.azure.resourcemanager.support.models.LookUpResourceIdRequest;
+import com.azure.resourcemanager.support.models.ResourceType;
+
+/**
+ * Samples for LookUpResourceId Post.
+ */
+public final class LookUpResourceIdPostSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/LookUpResourceId.json
+ */
+ /**
+ * Sample code: Look up resource id of support resource type.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void lookUpResourceIdOfSupportResourceType(com.azure.resourcemanager.support.SupportManager manager) {
+ manager.lookUpResourceIds()
+ .postWithResponse(new LookUpResourceIdRequest().withIdentifier("1234668596")
+ .withType(ResourceType.MICROSOFT_SUPPORT_SUPPORT_TICKETS), com.azure.core.util.Context.NONE);
+ }
+}
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..feb59c4fc30f2 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,7 @@
*/
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/preview/2023-06-01-preview/examples/ListOperations.json
*/
/**
* Sample code: Get all operations.
diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsClassifyProblemsSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsClassifyProblemsSamples.java
new file mode 100644
index 0000000000000..95b4f44cb18d4
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsClassifyProblemsSamples.java
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.generated;
+
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
+
+/**
+ * Samples for ProblemClassifications ClassifyProblems.
+ */
+public final class ProblemClassificationsClassifyProblemsSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassificationsForSubscription.json
+ */
+ /**
+ * Sample code: Classify list of problemClassifications for a specified Azure service for a subscription.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void classifyListOfProblemClassificationsForASpecifiedAzureServiceForASubscription(
+ com.azure.resourcemanager.support.SupportManager manager) {
+ manager.problemClassifications()
+ .classifyProblemsWithResponse("serviceId1", new ProblemClassificationsClassificationInput()
+ .withIssueSummary("Can not connect to Windows VM")
+ .withResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname"),
+ com.azure.core.util.Context.NONE);
+ }
+}
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..9ef6431c49621 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,7 @@
*/
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/preview/2023-06-01-preview/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..50abe943ecd8a 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,7 @@
*/
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/preview/2023-06-01-preview/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/ProblemClassificationsNoSubscriptionClassifyProblemsSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsNoSubscriptionClassifyProblemsSamples.java
new file mode 100644
index 0000000000000..5720079b3d76a
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ProblemClassificationsNoSubscriptionClassifyProblemsSamples.java
@@ -0,0 +1,28 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.generated;
+
+import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;
+
+/**
+ * Samples for ProblemClassificationsNoSubscription ClassifyProblems.
+ */
+public final class ProblemClassificationsNoSubscriptionClassifyProblemsSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyProblemClassifications.json
+ */
+ /**
+ * Sample code: Classify list of problemClassifications for a specified Azure service.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void classifyListOfProblemClassificationsForASpecifiedAzureService(
+ com.azure.resourcemanager.support.SupportManager manager) {
+ manager.problemClassificationsNoSubscriptions()
+ .classifyProblemsWithResponse("serviceId1",
+ new ProblemClassificationsClassificationInput().withIssueSummary("Can not connect to Windows VM"),
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServiceClassificationsClassifyServicesSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServiceClassificationsClassifyServicesSamples.java
new file mode 100644
index 0000000000000..7acf8b7b04c88
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServiceClassificationsClassifyServicesSamples.java
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.generated;
+
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+
+/**
+ * Samples for ServiceClassifications ClassifyServices.
+ */
+public final class ServiceClassificationsClassifyServicesSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServicesForSubscription.json
+ */
+ /**
+ * Sample code: Classify list of Azure services for a subscription.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void
+ classifyListOfAzureServicesForASubscription(com.azure.resourcemanager.support.SupportManager manager) {
+ manager.serviceClassifications()
+ .classifyServicesWithResponse(new ServiceClassificationRequest()
+ .withIssueSummary("Can not connect to Windows VM")
+ .withResourceId(
+ "/subscriptions/76cb77fa-8b17-4eab-9493-b65dace99813/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname"),
+ com.azure.core.util.Context.NONE);
+ }
+}
diff --git a/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServiceClassificationsNoSubscriptionClassifyServicesSamples.java b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServiceClassificationsNoSubscriptionClassifyServicesSamples.java
new file mode 100644
index 0000000000000..0ef5ed7b0cf2c
--- /dev/null
+++ b/sdk/support/azure-resourcemanager-support/src/samples/java/com/azure/resourcemanager/support/generated/ServiceClassificationsNoSubscriptionClassifyServicesSamples.java
@@ -0,0 +1,29 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.support.generated;
+
+import com.azure.resourcemanager.support.models.ServiceClassificationRequest;
+
+/**
+ * Samples for ServiceClassificationsNoSubscription ClassifyServices.
+ */
+public final class ServiceClassificationsNoSubscriptionClassifyServicesSamples {
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/ClassifyServices.json
+ */
+ /**
+ * Sample code: Classify list of Azure services.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void classifyListOfAzureServices(com.azure.resourcemanager.support.SupportManager manager) {
+ manager.serviceClassificationsNoSubscriptions()
+ .classifyServicesWithResponse(new ServiceClassificationRequest()
+ .withIssueSummary("Can not connect to Windows VM")
+ .withResourceId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname"),
+ com.azure.core.util.Context.NONE);
+ }
+}
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..9fbc08e71790d 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,7 @@
*/
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/preview/2023-06-01-preview/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..174cbb67f6584 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,7 @@
*/
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/preview/2023-06-01-preview/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..fc57854363847 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,14 +12,14 @@
*/
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/preview/2023-06-01-preview/examples/CheckNameAvailabilityWithSubscription.json
*/
/**
- * Sample code: Checks whether name is available for a subscription support ticket resource.
+ * Sample code: Checks whether name is available for subscription scoped SupportTicket resource.
*
* @param manager Entry point to SupportManager.
*/
- public static void checksWhetherNameIsAvailableForASubscriptionSupportTicketResource(
+ public static void checksWhetherNameIsAvailableForSubscriptionScopedSupportTicketResource(
com.azure.resourcemanager.support.SupportManager manager) {
manager.supportTickets()
.checkNameAvailabilityWithResponse(new CheckNameAvailabilityInput().withName("sampleName")
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..6bd611c701c37 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,7 @@
*/
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/preview/2023-06-01-preview/examples/CreateSqlDatawarehouseQuotaTicketForDTUs.json
*/
/**
* Sample code: Create a ticket to request Quota increase for DTUs for Azure Synapse Analytics.
@@ -36,6 +36,8 @@ public static void createATicketToRequestQuotaIncreaseForDTUsForAzureSynapseAnal
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_datawarehouse_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -45,8 +47,6 @@ public static void createATicketToRequestQuotaIncreaseForDTUsForAzureSynapseAnal
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("DTUs")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -55,7 +55,38 @@ 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/preview/2023-06-01-preview/examples/CreateSubMgmtSupportTicketForSubscription.json
+ */
+ /**
+ * Sample code: Create a subscription scoped ticket for Subscription Management related issues.
+ *
+ * @param manager Entry point to SupportManager.
+ */
+ public static void createASubscriptionScopedTicketForSubscriptionManagementRelatedIssues(
+ com.azure.resourcemanager.support.SupportManager manager) {
+ manager.supportTickets()
+ .define("testticket")
+ .withDescription("my description")
+ .withProblemClassificationId(
+ "/providers/Microsoft.Support/services/subscription_management_service_guid/problemClassifications/subscription_management_problemClassification_guid")
+ .withSeverity(SeverityLevel.MODERATE)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
+ .withContactDetails(new ContactProfile().withFirstName("abc")
+ .withLastName("xyz")
+ .withPreferredContactMethod(PreferredContactMethod.EMAIL)
+ .withPrimaryEmailAddress("abc@contoso.com")
+ .withPreferredTimeZone("Pacific Standard Time")
+ .withCountry("usa")
+ .withPreferredSupportLanguage("en-US"))
+ .withTitle("my title")
+ .withServiceId("/providers/Microsoft.Support/services/subscription_management_service_guid")
+ .withFileWorkspaceName("6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/support/resource-manager/Microsoft.Support/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForActiveJobs.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Active Jobs and Job Schedules for a Batch account.
@@ -71,6 +102,8 @@ public static void createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedul
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -80,8 +113,6 @@ public static void createATicketToRequestQuotaIncreaseForActiveJobsAndJobSchedul
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Account")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -90,7 +121,7 @@ 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/preview/2023-06-01-preview/examples/CreateMachineLearningQuotaTicketForLowPriorityCores.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Low-priority cores for Machine Learning service.
@@ -106,6 +137,8 @@ public static void createATicketToRequestQuotaIncreaseForLowPriorityCoresForMach
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/machine_learning_service_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -115,8 +148,6 @@ public static void createATicketToRequestQuotaIncreaseForLowPriorityCoresForMach
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("BatchAml")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -125,7 +156,7 @@ 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/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSubscription.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Batch accounts for a subscription.
@@ -141,6 +172,8 @@ public static void createATicketToRequestQuotaIncreaseForBatchAccountsForASubscr
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -150,8 +183,6 @@ public static void createATicketToRequestQuotaIncreaseForBatchAccountsForASubscr
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Subscription")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -160,7 +191,7 @@ 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/preview/2023-06-01-preview/examples/CreateSqlDatabaseQuotaTicketForDTUs.json
*/
/**
* Sample code: Create a ticket to request Quota increase for DTUs for SQL Database.
@@ -176,6 +207,8 @@ public static void createATicketToRequestQuotaIncreaseForDTUsForSQLDatabase(
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_database_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -185,8 +218,6 @@ public static void createATicketToRequestQuotaIncreaseForDTUsForSQLDatabase(
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("DTUs")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -195,7 +226,7 @@ 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/preview/2023-06-01-preview/examples/CreateGenericQuotaTicket.json
*/
/**
* Sample code: Create a ticket to request Quota increase for services that do not require additional details in the
@@ -212,7 +243,6 @@ public static void createATicketToRequestQuotaIncreaseForDTUsForSQLDatabase(
.withProblemClassificationId(
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/cosmosdb_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.YES)
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -226,7 +256,7 @@ 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/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForLowPriorityCores.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Low-priority cores for a Batch account.
@@ -242,6 +272,8 @@ public static void createATicketToRequestQuotaIncreaseForLowPriorityCoresForABat
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -251,8 +283,6 @@ public static void createATicketToRequestQuotaIncreaseForLowPriorityCoresForABat
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Account")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -261,60 +291,23 @@ 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/preview/2023-06-01-preview/examples/CreateBillingSupportTicketForSubscription.json
*/
/**
- * Sample code: Create a ticket to request Quota increase for Azure SQL managed instance.
+ * Sample code: Create a subscription scoped ticket for Billing related issues.
*
* @param manager Entry point to SupportManager.
*/
- public static void createATicketToRequestQuotaIncreaseForAzureSQLManagedInstance(
+ public static void createASubscriptionScopedTicketForBillingRelatedIssues(
com.azure.resourcemanager.support.SupportManager manager) {
manager.supportTickets()
.define("testticket")
.withDescription("my description")
.withProblemClassificationId(
- "/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_managedinstance_problemClassification_guid")
+ "/providers/Microsoft.Support/services/billing_service_guid/problemClassifications/billing_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.YES)
- .withContactDetails(new ContactProfile().withFirstName("abc")
- .withLastName("xyz")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("abc@contoso.com")
- .withPreferredTimeZone("Pacific Standard Time")
- .withCountry("usa")
- .withPreferredSupportLanguage("en-US"))
- .withTitle("my title")
- .withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
.withSupportPlanId(
"U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("SQLMI")
- .withQuotaChangeRequestVersion("1.0")
- .withQuotaChangeRequests(Arrays.asList(
- new QuotaChangeRequest().withRegion("EastUS")
- .withPayload("{\"NewLimit\":200, \"Metadata\":null, \"Type\":\"vCore\"}"),
- new QuotaChangeRequest().withRegion("EastUS")
- .withPayload("{\"NewLimit\":200, \"Metadata\":null, \"Type\":\"Subnet\"}"))))
- .create();
- }
-
- /*
- * 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.
- *
- * @param manager Entry point to SupportManager.
- */
- public static void createATicketForSubscriptionManagementRelatedIssuesForASubscription(
- com.azure.resourcemanager.support.SupportManager manager) {
- manager.supportTickets()
- .define("testticket")
- .withDescription("my description")
- .withProblemClassificationId(
- "/providers/Microsoft.Support/services/subscription_management_service_guid/problemClassifications/subscription_management_problemClassification_guid")
- .withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.NO)
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -323,30 +316,30 @@ public static void createATicketForSubscriptionManagementRelatedIssuesForASubscr
.withCountry("usa")
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
- .withServiceId("/providers/Microsoft.Support/services/subscription_management_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
+ .withServiceId("/providers/Microsoft.Support/services/billing_service_guid")
.withFileWorkspaceName("6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066")
.create();
}
/*
- * 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/preview/2023-06-01-preview/examples/CreateSqlManagedInstanceQuotaTicket.json
*/
/**
- * Sample code: Create a ticket for Technical issue related to a specific resource for a subscription.
+ * Sample code: Create a ticket to request Quota increase for Azure SQL managed instance.
*
* @param manager Entry point to SupportManager.
*/
- public static void createATicketForTechnicalIssueRelatedToASpecificResourceForASubscription(
+ public static void createATicketToRequestQuotaIncreaseForAzureSQLManagedInstance(
com.azure.resourcemanager.support.SupportManager manager) {
manager.supportTickets()
.define("testticket")
.withDescription("my description")
.withProblemClassificationId(
- "/providers/Microsoft.Support/services/virtual_machine_running_linux_service_guid/problemClassifications/problemClassification_guid")
+ "/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_managedinstance_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -355,21 +348,19 @@ public static void createATicketForTechnicalIssueRelatedToASpecificResourceForAS
.withCountry("usa")
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
- .withServiceId("/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc")
- .withProblemScopingQuestions(
- "{\"articleId\":\"076846c1-4c0b-4b21-91c6-1a30246b3867\",\"scopingDetails\":[{\"question\":\"When did the problem begin?\",\"controlId\":\"problem_start_time\",\"orderId\":1,\"inputType\":\"static\",\"answer\":{\"displayValue\":\"2023-08-31T18:55:00.739Z\",\"value\":\"2023-08-31T18:55:00.739Z\",\"type\":\"datetime\"}},{\"question\":\"API Type of the Cosmos DB account\",\"controlId\":\"api_type\",\"orderId\":2,\"inputType\":\"static\",\"answer\":{\"displayValue\":\"Table\",\"value\":\"tables\",\"type\":\"string\"}},{\"question\":\"Table name\",\"controlId\":\"collection_name_table\",\"orderId\":11,\"inputType\":\"nonstatic\",\"answer\":{\"displayValue\":\"Select Table Name\",\"value\":\"dont_know_answer\",\"type\":\"string\"}},{\"question\":\"Provide additional details about the issue you're facing\",\"controlId\":\"problem_description\",\"orderId\":12,\"inputType\":\"nonstatic\",\"answer\":{\"displayValue\":\"test ticket, please ignore and close\",\"value\":\"test ticket, please ignore and close\",\"type\":\"string\"}}]}")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
- .withFileWorkspaceName("6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId(
- "/subscriptions/132d901f-189d-4381-9214-fe68e27e05a1/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/testserver"))
- .withSecondaryConsent(Arrays.asList(
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("virtualmachinerunninglinuxservice")))
+ .withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
+ .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("SQLMI")
+ .withQuotaChangeRequestVersion("1.0")
+ .withQuotaChangeRequests(Arrays.asList(
+ new QuotaChangeRequest().withRegion("EastUS")
+ .withPayload("{\"NewLimit\":200, \"Metadata\":null, \"Type\":\"vCore\"}"),
+ new QuotaChangeRequest().withRegion("EastUS")
+ .withPayload("{\"NewLimit\":200, \"Metadata\":null, \"Type\":\"Subnet\"}"))))
.create();
}
/*
- * 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/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForPools.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Pools for a Batch account.
@@ -385,6 +376,8 @@ public static void createATicketToRequestQuotaIncreaseForPoolsForABatchAccount(
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -394,8 +387,6 @@ public static void createATicketToRequestQuotaIncreaseForPoolsForABatchAccount(
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Account")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -404,7 +395,7 @@ 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/preview/2023-06-01-preview/examples/CreateBatchQuotaTicketForSpecificBatchAccountForDedicatedCores.json
*/
/**
* Sample code: Create a ticket to request Quota increase for specific VM family cores for a Batch account.
@@ -420,6 +411,8 @@ public static void createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresFo
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/batch_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -429,8 +422,6 @@ public static void createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresFo
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Account")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -440,7 +431,7 @@ 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/preview/2023-06-01-preview/examples/CreateSqlDatabaseQuotaTicketForServers.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Servers for SQL Database.
@@ -456,6 +447,8 @@ public static void createATicketToRequestQuotaIncreaseForServersForSQLDatabase(
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_database_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -465,8 +458,6 @@ public static void createATicketToRequestQuotaIncreaseForServersForSQLDatabase(
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Servers")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(
@@ -475,21 +466,26 @@ 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/preview/2023-06-01-preview/examples/CreateTechnicalSupportTicketForSubscription.json
*/
/**
- * Sample code: Create a ticket for Billing related issues.
+ * Sample code: Create a subscription scoped ticket for Technical issue related to a specific resource.
*
* @param manager Entry point to SupportManager.
*/
- public static void createATicketForBillingRelatedIssues(com.azure.resourcemanager.support.SupportManager manager) {
+ public static void createASubscriptionScopedTicketForTechnicalIssueRelatedToASpecificResource(
+ com.azure.resourcemanager.support.SupportManager manager) {
manager.supportTickets()
.define("testticket")
.withDescription("my description")
.withProblemClassificationId(
- "/providers/Microsoft.Support/services/billing_service_guid/problemClassifications/billing_problemClassification_guid")
+ "/providers/Microsoft.Support/services/virtual_machine_running_linux_service_guid/problemClassifications/problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.NO)
+ .withAdvancedDiagnosticConsent(Consent.YES)
+ .withProblemScopingQuestions(
+ "{\"articleId\":\"076846c1-4c0b-4b21-91c6-1a30246b3867\",\"scopingDetails\":[{\"question\":\"When did the problem begin?\",\"controlId\":\"problem_start_time\",\"orderId\":1,\"inputType\":\"static\",\"answer\":{\"displayValue\":\"2023-08-31T18:55:00.739Z\",\"value\":\"2023-08-31T18:55:00.739Z\",\"type\":\"datetime\"}},{\"question\":\"API Type of the Cosmos DB account\",\"controlId\":\"api_type\",\"orderId\":2,\"inputType\":\"static\",\"answer\":{\"displayValue\":\"Table\",\"value\":\"tables\",\"type\":\"string\"}},{\"question\":\"Table name\",\"controlId\":\"collection_name_table\",\"orderId\":11,\"inputType\":\"nonstatic\",\"answer\":{\"displayValue\":\"Select Table Name\",\"value\":\"dont_know_answer\",\"type\":\"string\"}},{\"question\":\"Provide additional details about the issue you're facing\",\"controlId\":\"problem_description\",\"orderId\":12,\"inputType\":\"nonstatic\",\"answer\":{\"displayValue\":\"test ticket, please ignore and close\",\"value\":\"test ticket, please ignore and close\",\"type\":\"string\"}}]}")
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -498,15 +494,17 @@ public static void createATicketForBillingRelatedIssues(com.azure.resourcemanage
.withCountry("usa")
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
- .withServiceId("/providers/Microsoft.Support/services/billing_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
+ .withServiceId("/providers/Microsoft.Support/services/cddd3eb5-1830-b494-44fd-782f691479dc")
.withFileWorkspaceName("6f16735c-1530836f-e9970f1a-2e49-47b7-96cd-9746b83aa066")
+ .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId(
+ "/subscriptions/subid/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/testserver"))
+ .withSecondaryConsent(Arrays.asList(
+ new SecondaryConsent().withUserConsent(UserConsent.YES).withType("virtualmachinerunninglinuxservice")))
.create();
}
/*
- * 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/preview/2023-06-01-preview/examples/CreateMachineLearningQuotaTicketForDedicatedCores.json
*/
/**
* Sample code: Create a ticket to request Quota increase for specific VM family cores for Machine Learning service.
@@ -522,6 +520,8 @@ public static void createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresFo
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/machine_learning_service_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -531,8 +531,6 @@ public static void createATicketToRequestQuotaIncreaseForSpecificVMFamilyCoresFo
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("BatchAml")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
@@ -541,7 +539,7 @@ 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/preview/2023-06-01-preview/examples/CreateSqlDatawarehouseQuotaTicketForServers.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Servers for Azure Synapse Analytics.
@@ -557,6 +555,8 @@ public static void createATicketToRequestQuotaIncreaseForServersForAzureSynapseA
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/sql_datawarehouse_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -566,8 +566,6 @@ public static void createATicketToRequestQuotaIncreaseForServersForAzureSynapseA
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("Servers")
.withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(
@@ -576,7 +574,7 @@ 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/preview/2023-06-01-preview/examples/CreateCoresQuotaTicketForSubscription.json
*/
/**
* Sample code: Create a ticket to request Quota increase for Compute VM Cores.
@@ -592,6 +590,8 @@ public static void createATicketToRequestQuotaIncreaseForServersForAzureSynapseA
"/providers/Microsoft.Support/services/quota_service_guid/problemClassifications/cores_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
.withAdvancedDiagnosticConsent(Consent.YES)
+ .withSupportPlanId(
+ "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
.withLastName("xyz")
.withPreferredContactMethod(PreferredContactMethod.EMAIL)
@@ -601,8 +601,6 @@ public static void createATicketToRequestQuotaIncreaseForServersForAzureSynapseA
.withPreferredSupportLanguage("en-US"))
.withTitle("my title")
.withServiceId("/providers/Microsoft.Support/services/quota_service_guid")
- .withSupportPlanId(
- "U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestVersion("1.0")
.withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("EastUS")
.withPayload("{\"SKU\":\"DSv3 Series\",\"NewLimit\":104}"))))
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..90247b135122d 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,7 @@
*/
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/preview/2023-06-01-preview/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..fd51585828128 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,7 @@
*/
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/preview/2023-06-01-preview/examples/ListSupportTicketsServiceIdEqualsForSubscription.json
*/
/**
* Sample code: List support tickets with a certain service id for a subscription.
@@ -22,7 +22,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenStateBySubscription.json
*/
/**
* Sample code: List support tickets created on or after a certain date and in open state for a subscription.
@@ -36,7 +36,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsInUpdatingStateBySubscription.json
*/
/**
* Sample code: List support tickets in updating state for a subscription.
@@ -49,7 +49,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingStateBySubscription.json
*/
/**
* Sample code: List support tickets created on or after a certain date and in updating state for a subscription.
@@ -64,7 +64,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsProblemClassificationIdEqualsForSubscription.json
*/
/**
* Sample code: List support tickets with a certain problem classification id for a subscription.
@@ -79,7 +79,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsBySubscription.json
*/
/**
* Sample code: List support tickets for a subscription.
@@ -91,7 +91,7 @@ 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/preview/2023-06-01-preview/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..a7eea21896788 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,7 @@
*/
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/preview/2023-06-01-preview/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..30adc92f8d637 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,7 @@
*/
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/preview/2023-06-01-preview/examples/CreateBillingSupportTicket.json
*/
/**
* Sample code: Create a ticket for Billing related issues.
@@ -31,7 +31,6 @@ public static void createATicketForBillingRelatedIssues(com.azure.resourcemanage
.withProblemClassificationId(
"/providers/Microsoft.Support/services/billing_service_guid/problemClassifications/billing_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.NO)
.withSupportPlanId(
"U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
@@ -48,7 +47,7 @@ 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/preview/2023-06-01-preview/examples/CreateSubMgmtSupportTicket.json
*/
/**
* Sample code: Create a ticket for Subscription Management related issues.
@@ -62,7 +61,6 @@ public static void createATicketForBillingRelatedIssues(com.azure.resourcemanage
.withProblemClassificationId(
"/providers/Microsoft.Support/services/subscription_management_service_guid/problemClassifications/subscription_management_problemClassification_guid")
.withSeverity(SeverityLevel.MODERATE)
- .withAdvancedDiagnosticConsent(Consent.YES)
.withSupportPlanId(
"U291cmNlOlNDTSxDbGFyaWZ5SW5zdGFsbGF0aW9uU2l0ZUlkOjcsTGluZUl0ZW1JZDo5ODY1NzIyOSxDb250cmFjdElkOjk4NjU5MTk0LFN1YnNjcmlwdGlvbklkOjc2Y2I3N2ZhLThiMTctNGVhYi05NDkzLWI2NWRhY2U5OTgxMyw=")
.withContactDetails(new ContactProfile().withFirstName("abc")
@@ -79,7 +77,7 @@ 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/preview/2023-06-01-preview/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..db2b8a0be5c42 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,7 @@
*/
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/preview/2023-06-01-preview/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..308054c975a96 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,7 @@
*/
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/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInUpdatingState.json
*/
/**
* Sample code: List support tickets created on or after a certain date and in updating state.
@@ -24,7 +24,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsInOpenState.json
*/
/**
* Sample code: List support tickets in open state.
@@ -36,7 +36,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTickets.json
*/
/**
* Sample code: List support tickets.
@@ -48,7 +48,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsInUpdatingState.json
*/
/**
* Sample code: List support tickets in updating state.
@@ -60,7 +60,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsCreatedOnOrAfterAndInOpenState.json
*/
/**
* Sample code: List support tickets created on or after a certain date and in open state.
@@ -74,7 +74,7 @@ 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/preview/2023-06-01-preview/examples/ListSupportTicketsServiceIdEquals.json
*/
/**
* Sample code: List support tickets with a certain service id.
@@ -88,7 +88,7 @@ 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/preview/2023-06-01-preview/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..b86c6077af41c 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,7 @@
*/
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/preview/2023-06-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicket.json
*/
/**
* Sample code: Update advanced diagnostic consent of a support ticket.
@@ -32,7 +32,7 @@ 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/preview/2023-06-01-preview/examples/UpdateSeverityOfSupportTicket.json
*/
/**
* Sample code: Update severity of a support ticket.
@@ -46,7 +46,7 @@ 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/preview/2023-06-01-preview/examples/UpdateStatusOfSupportTicket.json
*/
/**
* Sample code: Update status of a support ticket.
@@ -60,7 +60,7 @@ 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/preview/2023-06-01-preview/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..6a0842cc8f926 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,72 +17,72 @@
*/
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/preview/2023-06-01-preview/examples/UpdateAdvancedDiagnosticConsentOfSupportTicketForSubscription.json
*/
/**
- * Sample code: Update advanced diagnostic consent of a subscription support ticket.
+ * Sample code: Update advanced diagnostic consent of a support ticket.
*
* @param manager Entry point to SupportManager.
*/
- public static void updateAdvancedDiagnosticConsentOfASubscriptionSupportTicket(
- com.azure.resourcemanager.support.SupportManager manager) {
+ public static void
+ updateAdvancedDiagnosticConsentOfASupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
SupportTicketDetails resource
= manager.supportTickets().getWithResponse("testticket", com.azure.core.util.Context.NONE).getValue();
resource.update().withAdvancedDiagnosticConsent(Consent.YES).apply();
}
/*
- * 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/preview/2023-06-01-preview/examples/UpdateContactDetailsOfSupportTicketForSubscription.json
*/
/**
- * Sample code: Update severity of a subscription support ticket.
+ * Sample code: Update contact details of a subscription scoped support ticket.
*
* @param manager Entry point to SupportManager.
*/
- public static void
- updateSeverityOfASubscriptionSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
+ public static void updateContactDetailsOfASubscriptionScopedSupportTicket(
+ com.azure.resourcemanager.support.SupportManager manager) {
SupportTicketDetails resource
= manager.supportTickets().getWithResponse("testticket", com.azure.core.util.Context.NONE).getValue();
- resource.update().withSeverity(SeverityLevel.CRITICAL).apply();
+ resource.update()
+ .withContactDetails(new UpdateContactProfile().withFirstName("first name")
+ .withLastName("last name")
+ .withPreferredContactMethod(PreferredContactMethod.EMAIL)
+ .withPrimaryEmailAddress("test.name@contoso.com")
+ .withAdditionalEmailAddresses(Arrays.asList("tname@contoso.com", "teamtest@contoso.com"))
+ .withPhoneNumber("123-456-7890")
+ .withPreferredTimeZone("Pacific Standard Time")
+ .withCountry("USA")
+ .withPreferredSupportLanguage("en-US"))
+ .apply();
}
/*
- * 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/preview/2023-06-01-preview/examples/UpdateStatusOfSupportTicketForSubscription.json
*/
/**
- * Sample code: Update status of a subscription support ticket.
+ * Sample code: Update status of a subscription scoped support ticket.
*
* @param manager Entry point to SupportManager.
*/
public static void
- updateStatusOfASubscriptionSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
+ updateStatusOfASubscriptionScopedSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
SupportTicketDetails resource
= manager.supportTickets().getWithResponse("testticket", com.azure.core.util.Context.NONE).getValue();
resource.update().withStatus(Status.CLOSED).apply();
}
/*
- * 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/preview/2023-06-01-preview/examples/UpdateSeverityOfSupportTicketForSubscription.json
*/
/**
- * Sample code: Update contact details of a subscription support ticket.
+ * Sample code: Update severity of a subscription scoped support ticket.
*
* @param manager Entry point to SupportManager.
*/
public static void
- updateContactDetailsOfASubscriptionSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
+ updateSeverityOfASubscriptionScopedSupportTicket(com.azure.resourcemanager.support.SupportManager manager) {
SupportTicketDetails resource
= manager.supportTickets().getWithResponse("testticket", com.azure.core.util.Context.NONE).getValue();
- resource.update()
- .withContactDetails(new UpdateContactProfile().withFirstName("first name")
- .withLastName("last name")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("test.name@contoso.com")
- .withAdditionalEmailAddresses(Arrays.asList("tname@contoso.com", "teamtest@contoso.com"))
- .withPhoneNumber("123-456-7890")
- .withPreferredTimeZone("Pacific Standard Time")
- .withCountry("USA")
- .withPreferredSupportLanguage("en-US"))
- .apply();
+ resource.update().withSeverity(SeverityLevel.CRITICAL).apply();
}
}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptDetailsInnerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptDetailsInnerTests.java
deleted file mode 100644
index 84775c28f13f7..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptDetailsInnerTests.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.ChatTranscriptDetailsInner;
-import com.azure.resourcemanager.support.models.MessageProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ChatTranscriptDetailsInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ChatTranscriptDetailsInner model = BinaryData.fromString(
- "{\"properties\":{\"messages\":[{\"communicationDirection\":\"outbound\",\"sender\":\"jfdtwssotftpvj\",\"body\":\"exilzznfqqnvwpmq\",\"createdDate\":\"2021-06-07T17:58:08Z\"},{\"communicationDirection\":\"outbound\",\"sender\":\"mkcjhwqytjrybn\",\"body\":\"ewgdrjervn\",\"createdDate\":\"2021-09-08T11:50:32Z\"}],\"startTime\":\"2021-06-16T21:41:42Z\"},\"id\":\"hin\",\"name\":\"oygmift\",\"type\":\"nzdndslgna\"}")
- .toObject(ChatTranscriptDetailsInner.class);
- Assertions.assertEquals("jfdtwssotftpvj", model.messages().get(0).sender());
- Assertions.assertEquals("exilzznfqqnvwpmq", model.messages().get(0).body());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ChatTranscriptDetailsInner model = new ChatTranscriptDetailsInner().withMessages(
- Arrays.asList(new MessageProperties().withSender("jfdtwssotftpvj").withBody("exilzznfqqnvwpmq"),
- new MessageProperties().withSender("mkcjhwqytjrybn").withBody("ewgdrjervn")));
- model = BinaryData.fromObject(model).toObject(ChatTranscriptDetailsInner.class);
- Assertions.assertEquals("jfdtwssotftpvj", model.messages().get(0).sender());
- Assertions.assertEquals("exilzznfqqnvwpmq", model.messages().get(0).body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptDetailsPropertiesTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptDetailsPropertiesTests.java
deleted file mode 100644
index e53688e633df9..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptDetailsPropertiesTests.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.ChatTranscriptDetailsProperties;
-import com.azure.resourcemanager.support.models.MessageProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ChatTranscriptDetailsPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ChatTranscriptDetailsProperties model = BinaryData.fromString(
- "{\"messages\":[{\"communicationDirection\":\"outbound\",\"sender\":\"uhavhql\",\"body\":\"humaqolbgyc\",\"createdDate\":\"2021-09-15T15:38:14Z\"},{\"communicationDirection\":\"outbound\",\"sender\":\"ccymvaolpsslql\",\"body\":\"mdnbbglzpswiy\",\"createdDate\":\"2021-07-14T12:06:58Z\"},{\"communicationDirection\":\"outbound\",\"sender\":\"dxssadbzm\",\"body\":\"dfznudaodv\",\"createdDate\":\"2021-05-29T13:49:41Z\"},{\"communicationDirection\":\"outbound\",\"sender\":\"ylpstdbhhxsrzdz\",\"body\":\"erscdntne\",\"createdDate\":\"2021-04-19T04:18:41Z\"}],\"startTime\":\"2021-05-10T05:26:40Z\"}")
- .toObject(ChatTranscriptDetailsProperties.class);
- Assertions.assertEquals("uhavhql", model.messages().get(0).sender());
- Assertions.assertEquals("humaqolbgyc", model.messages().get(0).body());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ChatTranscriptDetailsProperties model = new ChatTranscriptDetailsProperties()
- .withMessages(Arrays.asList(new MessageProperties().withSender("uhavhql").withBody("humaqolbgyc"),
- new MessageProperties().withSender("ccymvaolpsslql").withBody("mdnbbglzpswiy"),
- new MessageProperties().withSender("dxssadbzm").withBody("dfznudaodv"),
- new MessageProperties().withSender("ylpstdbhhxsrzdz").withBody("erscdntne")));
- model = BinaryData.fromObject(model).toObject(ChatTranscriptDetailsProperties.class);
- Assertions.assertEquals("uhavhql", model.messages().get(0).sender());
- Assertions.assertEquals("humaqolbgyc", model.messages().get(0).body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsGetWithResponseMockTests.java
deleted file mode 100644
index 8aec9fe326f8a..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.ChatTranscriptDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ChatTranscriptsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"messages\":[{\"communicationDirection\":\"inbound\",\"sender\":\"yuvvfonkp\",\"body\":\"qyikvy\",\"createdDate\":\"2021-02-02T17:56:52Z\"}],\"startTime\":\"2021-10-02T06:20:36Z\"},\"id\":\"luwmncst\",\"name\":\"ijf\",\"type\":\"bvpoekrsgsgbdhu\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ChatTranscriptDetails response
- = manager.chatTranscripts().getWithResponse("tj", "zysdzh", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("yuvvfonkp", response.messages().get(0).sender());
- Assertions.assertEquals("qyikvy", response.messages().get(0).body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListMockTests.java
deleted file mode 100644
index ed2da72dc8f8a..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListMockTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.ChatTranscriptDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ChatTranscriptsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"messages\":[{\"communicationDirection\":\"outbound\",\"sender\":\"ecxn\",\"body\":\"icokpv\",\"createdDate\":\"2021-07-01T18:07:42Z\"},{\"communicationDirection\":\"outbound\",\"sender\":\"dgxobfircl\",\"body\":\"kciayzri\",\"createdDate\":\"2021-12-06T15:32:30Z\"}],\"startTime\":\"2021-07-02T10:18:56Z\"},\"id\":\"fvjlboxqvkjlmx\",\"name\":\"omdynhdwdigum\",\"type\":\"nraauzz\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.chatTranscripts().list("aawzqadfl", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("ecxn", response.iterator().next().messages().get(0).sender());
- Assertions.assertEquals("icokpv", response.iterator().next().messages().get(0).body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListResultTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListResultTests.java
deleted file mode 100644
index 5acfad6005538..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsListResultTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.ChatTranscriptDetailsInner;
-import com.azure.resourcemanager.support.models.ChatTranscriptsListResult;
-import com.azure.resourcemanager.support.models.MessageProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ChatTranscriptsListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ChatTranscriptsListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"messages\":[{\"communicationDirection\":\"inbound\",\"sender\":\"ppcqeqxolz\",\"body\":\"hzxct\",\"createdDate\":\"2021-10-01T04:47:29Z\"},{\"communicationDirection\":\"outbound\",\"sender\":\"oizpostmgrcfbun\",\"body\":\"fqjhhkxbpvjymj\",\"createdDate\":\"2021-07-29T03:03:57Z\"}],\"startTime\":\"2021-12-01T23:11:57Z\"},\"id\":\"gudivkrtswbxqz\",\"name\":\"szjfauvjfdxxivet\",\"type\":\"t\"},{\"properties\":{\"messages\":[{\"communicationDirection\":\"outbound\",\"sender\":\"mcbxvwvxysl\",\"body\":\"hsfxoblytkb\",\"createdDate\":\"2021-09-21T19:24:42Z\"}],\"startTime\":\"2021-02-10T08:31:36Z\"},\"id\":\"wfbkrvrns\",\"name\":\"shqjohxcrsbf\",\"type\":\"vasrruvwb\"}],\"nextLink\":\"qfsubcgjbirx\"}")
- .toObject(ChatTranscriptsListResult.class);
- Assertions.assertEquals("ppcqeqxolz", model.value().get(0).messages().get(0).sender());
- Assertions.assertEquals("hzxct", model.value().get(0).messages().get(0).body());
- Assertions.assertEquals("qfsubcgjbirx", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ChatTranscriptsListResult model = new ChatTranscriptsListResult()
- .withValue(Arrays.asList(
- new ChatTranscriptDetailsInner()
- .withMessages(Arrays.asList(new MessageProperties().withSender("ppcqeqxolz").withBody("hzxct"),
- new MessageProperties().withSender("oizpostmgrcfbun").withBody("fqjhhkxbpvjymj"))),
- new ChatTranscriptDetailsInner().withMessages(
- Arrays.asList(new MessageProperties().withSender("mcbxvwvxysl").withBody("hsfxoblytkb")))))
- .withNextLink("qfsubcgjbirx");
- model = BinaryData.fromObject(model).toObject(ChatTranscriptsListResult.class);
- Assertions.assertEquals("ppcqeqxolz", model.value().get(0).messages().get(0).sender());
- Assertions.assertEquals("hzxct", model.value().get(0).messages().get(0).body());
- Assertions.assertEquals("qfsubcgjbirx", model.nextLink());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionsGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionsGetWithResponseMockTests.java
deleted file mode 100644
index 937f56978b090..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.ChatTranscriptDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ChatTranscriptsNoSubscriptionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"messages\":[{\"communicationDirection\":\"inbound\",\"sender\":\"udaspavehh\",\"body\":\"kbunzoz\",\"createdDate\":\"2021-03-21T22:40:21Z\"}],\"startTime\":\"2021-07-25T12:58:50Z\"},\"id\":\"kmoyxcdyuibh\",\"name\":\"fdn\",\"type\":\"zydvfvf\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ChatTranscriptDetails response = manager.chatTranscriptsNoSubscriptions()
- .getWithResponse("m", "rafwgckhocxvdf", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("udaspavehh", response.messages().get(0).sender());
- Assertions.assertEquals("kbunzoz", response.messages().get(0).body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionsListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionsListMockTests.java
deleted file mode 100644
index fba9876515916..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ChatTranscriptsNoSubscriptionsListMockTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.ChatTranscriptDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ChatTranscriptsNoSubscriptionsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"messages\":[{\"communicationDirection\":\"inbound\",\"sender\":\"omtkub\",\"body\":\"ppnvdxz\",\"createdDate\":\"2021-01-05T01:25:57Z\"},{\"communicationDirection\":\"inbound\",\"sender\":\"b\",\"body\":\"vqagtltdhlf\",\"createdDate\":\"2021-10-11T23:31:22Z\"}],\"startTime\":\"2021-08-08T09:12:47Z\"},\"id\":\"kvgtrdcn\",\"name\":\"fmzzsdymbrny\",\"type\":\"u\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.chatTranscriptsNoSubscriptions().list("qgnjdgkynscli", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("omtkub", response.iterator().next().messages().get(0).sender());
- Assertions.assertEquals("ppnvdxz", response.iterator().next().messages().get(0).body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CheckNameAvailabilityInputTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CheckNameAvailabilityInputTests.java
deleted file mode 100644
index 440eb5bbbfc03..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CheckNameAvailabilityInputTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.CheckNameAvailabilityInput;
-import com.azure.resourcemanager.support.models.Type;
-import org.junit.jupiter.api.Assertions;
-
-public final class CheckNameAvailabilityInputTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CheckNameAvailabilityInput model
- = BinaryData.fromString("{\"name\":\"psalgbqux\",\"type\":\"Microsoft.Support/communications\"}")
- .toObject(CheckNameAvailabilityInput.class);
- Assertions.assertEquals("psalgbqux", model.name());
- Assertions.assertEquals(Type.MICROSOFT_SUPPORT_COMMUNICATIONS, model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CheckNameAvailabilityInput model
- = new CheckNameAvailabilityInput().withName("psalgbqux").withType(Type.MICROSOFT_SUPPORT_COMMUNICATIONS);
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityInput.class);
- Assertions.assertEquals("psalgbqux", model.name());
- Assertions.assertEquals(Type.MICROSOFT_SUPPORT_COMMUNICATIONS, model.type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CheckNameAvailabilityOutputInnerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CheckNameAvailabilityOutputInnerTests.java
deleted file mode 100644
index 8d525254b3f1f..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CheckNameAvailabilityOutputInnerTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.CheckNameAvailabilityOutputInner;
-
-public final class CheckNameAvailabilityOutputInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CheckNameAvailabilityOutputInner model
- = BinaryData.fromString("{\"nameAvailable\":true,\"reason\":\"gzjaoyfhrtxilne\",\"message\":\"ujysvle\"}")
- .toObject(CheckNameAvailabilityOutputInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CheckNameAvailabilityOutputInner model = new CheckNameAvailabilityOutputInner();
- model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityOutputInner.class);
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationDetailsInnerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationDetailsInnerTests.java
deleted file mode 100644
index 950f3adfa04ce..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationDetailsInnerTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.CommunicationDetailsInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class CommunicationDetailsInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CommunicationDetailsInner model = BinaryData.fromString(
- "{\"properties\":{\"communicationType\":\"phone\",\"communicationDirection\":\"outbound\",\"sender\":\"pnyiropuhp\",\"subject\":\"gvpgy\",\"body\":\"gqgitxmedjvcsl\",\"createdDate\":\"2021-02-07T09:50:45Z\"},\"id\":\"wwncwzzhxgk\",\"name\":\"rmgucnap\",\"type\":\"t\"}")
- .toObject(CommunicationDetailsInner.class);
- Assertions.assertEquals("pnyiropuhp", model.sender());
- Assertions.assertEquals("gvpgy", model.subject());
- Assertions.assertEquals("gqgitxmedjvcsl", model.body());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CommunicationDetailsInner model
- = new CommunicationDetailsInner().withSender("pnyiropuhp").withSubject("gvpgy").withBody("gqgitxmedjvcsl");
- model = BinaryData.fromObject(model).toObject(CommunicationDetailsInner.class);
- Assertions.assertEquals("pnyiropuhp", model.sender());
- Assertions.assertEquals("gvpgy", model.subject());
- Assertions.assertEquals("gqgitxmedjvcsl", model.body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationDetailsPropertiesTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationDetailsPropertiesTests.java
deleted file mode 100644
index 43b2dde14c7f8..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationDetailsPropertiesTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.CommunicationDetailsProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class CommunicationDetailsPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CommunicationDetailsProperties model = BinaryData.fromString(
- "{\"communicationType\":\"phone\",\"communicationDirection\":\"inbound\",\"sender\":\"pt\",\"subject\":\"d\",\"body\":\"gpfqbuace\",\"createdDate\":\"2021-09-04T05:04:19Z\"}")
- .toObject(CommunicationDetailsProperties.class);
- Assertions.assertEquals("pt", model.sender());
- Assertions.assertEquals("d", model.subject());
- Assertions.assertEquals("gpfqbuace", model.body());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CommunicationDetailsProperties model
- = new CommunicationDetailsProperties().withSender("pt").withSubject("d").withBody("gpfqbuace");
- model = BinaryData.fromObject(model).toObject(CommunicationDetailsProperties.class);
- Assertions.assertEquals("pt", model.sender());
- Assertions.assertEquals("d", model.subject());
- Assertions.assertEquals("gpfqbuace", model.body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsCheckNameAvailabilityWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsCheckNameAvailabilityWithResponseMockTests.java
deleted file mode 100644
index 2aeba55111f29..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsCheckNameAvailabilityWithResponseMockTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.CheckNameAvailabilityInput;
-import com.azure.resourcemanager.support.models.CheckNameAvailabilityOutput;
-import com.azure.resourcemanager.support.models.Type;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CommunicationsCheckNameAvailabilityWithResponseMockTests {
- @Test
- public void testCheckNameAvailabilityWithResponse() throws Exception {
- String responseStr = "{\"nameAvailable\":false,\"reason\":\"fnynszqujizdvoqy\",\"message\":\"byowbblgyavutp\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckNameAvailabilityOutput response = manager.communications()
- .checkNameAvailabilityWithResponse("ilbywdxsm",
- new CheckNameAvailabilityInput().withName("ccwr").withType(Type.MICROSOFT_SUPPORT_COMMUNICATIONS),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsCreateMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsCreateMockTests.java
deleted file mode 100644
index 6cd42173a2f84..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsCreateMockTests.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.CommunicationDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CommunicationsCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- String responseStr
- = "{\"properties\":{\"communicationType\":\"web\",\"communicationDirection\":\"inbound\",\"sender\":\"udzpxgwjplmagstc\",\"subject\":\"ohpfkyrkdbdgiog\",\"body\":\"jkmnwq\",\"createdDate\":\"2021-09-21T11:57:43Z\"},\"id\":\"baiyhddviaceg\",\"name\":\"n\",\"type\":\"ntfpmvmemfnc\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CommunicationDetails response = manager.communications()
- .define("jxakv")
- .withExistingSupportTicket("bteoybf")
- .withSubject("il")
- .withBody("yw")
- .withSender("r")
- .create();
-
- Assertions.assertEquals("udzpxgwjplmagstc", response.sender());
- Assertions.assertEquals("ohpfkyrkdbdgiog", response.subject());
- Assertions.assertEquals("jkmnwq", response.body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsGetWithResponseMockTests.java
deleted file mode 100644
index 0fb92d8f354a2..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.CommunicationDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CommunicationsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"communicationType\":\"phone\",\"communicationDirection\":\"inbound\",\"sender\":\"juisavokqdzf\",\"subject\":\"azivjlfrqttbajl\",\"body\":\"atnwxyiopi\",\"createdDate\":\"2021-05-28T18:08:40Z\"},\"id\":\"qfkuvscxkdmli\",\"name\":\"ovibrxkp\",\"type\":\"loazuruocbgoo\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CommunicationDetails response = manager.communications()
- .getWithResponse("ctxtgzukxi", "mmqtgqqqxhr", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("juisavokqdzf", response.sender());
- Assertions.assertEquals("azivjlfrqttbajl", response.subject());
- Assertions.assertEquals("atnwxyiopi", response.body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsListMockTests.java
deleted file mode 100644
index 98195344e3454..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsListMockTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.CommunicationDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CommunicationsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"communicationType\":\"web\",\"communicationDirection\":\"inbound\",\"sender\":\"jxkcgxxlxsff\",\"subject\":\"cvizqzdwlvw\",\"body\":\"youpfgfbkj\",\"createdDate\":\"2021-08-08T19:25:39Z\"},\"id\":\"yhgk\",\"name\":\"minsgowzf\",\"type\":\"tsttktlahbq\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.communications().list("hjoxo", 1315761996, "msksbp", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("jxkcgxxlxsff", response.iterator().next().sender());
- Assertions.assertEquals("cvizqzdwlvw", response.iterator().next().subject());
- Assertions.assertEquals("youpfgfbkj", response.iterator().next().body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsListResultTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsListResultTests.java
deleted file mode 100644
index a7fd511bf1546..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsListResultTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.CommunicationDetailsInner;
-import com.azure.resourcemanager.support.models.CommunicationsListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class CommunicationsListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- CommunicationsListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"communicationType\":\"web\",\"communicationDirection\":\"inbound\",\"sender\":\"ro\",\"subject\":\"qbex\",\"body\":\"mcqibycnojv\",\"createdDate\":\"2021-02-06T03:19:14Z\"},\"id\":\"fqsgzvahapjy\",\"name\":\"hpvgqz\",\"type\":\"j\"},{\"properties\":{\"communicationType\":\"phone\",\"communicationDirection\":\"inbound\",\"sender\":\"lmwlxkvugfhzo\",\"subject\":\"awjvzunluthnnp\",\"body\":\"nxipeil\",\"createdDate\":\"2021-07-12T01:35:59Z\"},\"id\":\"uaejxdultsk\",\"name\":\"bbtdzumvee\",\"type\":\"gpw\"},{\"properties\":{\"communicationType\":\"web\",\"communicationDirection\":\"inbound\",\"sender\":\"p\",\"subject\":\"sjyofdx\",\"body\":\"uusdttouwa\",\"createdDate\":\"2021-08-12T22:43:04Z\"},\"id\":\"kqvkelnsmvbxwyjs\",\"name\":\"lh\",\"type\":\"caalnjixisxyaw\"},{\"properties\":{\"communicationType\":\"phone\",\"communicationDirection\":\"outbound\",\"sender\":\"slyjpkiid\",\"subject\":\"yexz\",\"body\":\"eli\",\"createdDate\":\"2021-06-22T01:42:27Z\"},\"id\":\"rzt\",\"name\":\"o\",\"type\":\"hb\"}],\"nextLink\":\"knalaulppg\"}")
- .toObject(CommunicationsListResult.class);
- Assertions.assertEquals("ro", model.value().get(0).sender());
- Assertions.assertEquals("qbex", model.value().get(0).subject());
- Assertions.assertEquals("mcqibycnojv", model.value().get(0).body());
- Assertions.assertEquals("knalaulppg", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- CommunicationsListResult model = new CommunicationsListResult()
- .withValue(Arrays.asList(
- new CommunicationDetailsInner().withSender("ro").withSubject("qbex").withBody("mcqibycnojv"),
- new CommunicationDetailsInner().withSender("lmwlxkvugfhzo")
- .withSubject("awjvzunluthnnp")
- .withBody("nxipeil"),
- new CommunicationDetailsInner().withSender("p").withSubject("sjyofdx").withBody("uusdttouwa"),
- new CommunicationDetailsInner().withSender("slyjpkiid").withSubject("yexz").withBody("eli")))
- .withNextLink("knalaulppg");
- model = BinaryData.fromObject(model).toObject(CommunicationsListResult.class);
- Assertions.assertEquals("ro", model.value().get(0).sender());
- Assertions.assertEquals("qbex", model.value().get(0).subject());
- Assertions.assertEquals("mcqibycnojv", model.value().get(0).body());
- Assertions.assertEquals("knalaulppg", model.nextLink());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsCheckNameAvailabilityWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsCheckNameAvailabilityWithResponseMockTests.java
deleted file mode 100644
index 536dae8d44393..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsCheckNameAvailabilityWithResponseMockTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.CheckNameAvailabilityInput;
-import com.azure.resourcemanager.support.models.CheckNameAvailabilityOutput;
-import com.azure.resourcemanager.support.models.Type;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CommunicationsNoSubscriptionsCheckNameAvailabilityWithResponseMockTests {
- @Test
- public void testCheckNameAvailabilityWithResponse() throws Exception {
- String responseStr = "{\"nameAvailable\":true,\"reason\":\"vwrdnhfukuvsj\",\"message\":\"wsmystuluqypf\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckNameAvailabilityOutput response
- = manager.communicationsNoSubscriptions()
- .checkNameAvailabilityWithResponse("dwvvba",
- new CheckNameAvailabilityInput().withName("xlllchp")
- .withType(Type.MICROSOFT_SUPPORT_SUPPORT_TICKETS),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsCreateMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsCreateMockTests.java
deleted file mode 100644
index 8ee87d47fd46f..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsCreateMockTests.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.fluent.models.CommunicationDetailsInner;
-import com.azure.resourcemanager.support.models.CommunicationDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CommunicationsNoSubscriptionsCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- String responseStr
- = "{\"properties\":{\"communicationType\":\"web\",\"communicationDirection\":\"inbound\",\"sender\":\"z\",\"subject\":\"rr\",\"body\":\"vpglydz\",\"createdDate\":\"2021-02-08T17:34:52Z\"},\"id\":\"vqeevtoep\",\"name\":\"yutnwytpzdmov\",\"type\":\"vf\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CommunicationDetails response = manager.communicationsNoSubscriptions()
- .create("eqvldspast", "bkkd",
- new CommunicationDetailsInner().withSender("tmjlx").withSubject("ril").withBody("zapeewchpx"),
- com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("z", response.sender());
- Assertions.assertEquals("rr", response.subject());
- Assertions.assertEquals("vpglydz", response.body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsGetWithResponseMockTests.java
deleted file mode 100644
index dd0a2f84ecd2e..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.CommunicationDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CommunicationsNoSubscriptionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"communicationType\":\"phone\",\"communicationDirection\":\"inbound\",\"sender\":\"jtlvofqzhvfciby\",\"subject\":\"mowuxrk\",\"body\":\"pvdwxf\",\"createdDate\":\"2021-09-25T09:52:18Z\"},\"id\":\"vwzjbhyz\",\"name\":\"xjrk\",\"type\":\"mbtrnegvmnvu\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CommunicationDetails response = manager.communicationsNoSubscriptions()
- .getWithResponse("pgogtqxepny", "b", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("jtlvofqzhvfciby", response.sender());
- Assertions.assertEquals("mowuxrk", response.subject());
- Assertions.assertEquals("pvdwxf", response.body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsListMockTests.java
deleted file mode 100644
index 45b48db90fd6b..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/CommunicationsNoSubscriptionsListMockTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.CommunicationDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class CommunicationsNoSubscriptionsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"communicationType\":\"web\",\"communicationDirection\":\"inbound\",\"sender\":\"rihpfhoq\",\"subject\":\"aaewdaomdjv\",\"body\":\"pjxxkzb\",\"createdDate\":\"2021-07-29T14:30:38Z\"},\"id\":\"geivsiykzkdncj\",\"name\":\"xonbzoggculapz\",\"type\":\"y\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.communicationsNoSubscriptions()
- .list("vlerchpqbmfpjba", 877892499, "idfcxsspuunnoxyh", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("rihpfhoq", response.iterator().next().sender());
- Assertions.assertEquals("aaewdaomdjv", response.iterator().next().subject());
- Assertions.assertEquals("pjxxkzb", response.iterator().next().body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ContactProfileTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ContactProfileTests.java
deleted file mode 100644
index abd71ad4a1e93..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ContactProfileTests.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.ContactProfile;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ContactProfileTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ContactProfile model = BinaryData.fromString(
- "{\"firstName\":\"zntxhdz\",\"lastName\":\"lrqjbhckfr\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"rxsbkyvp\",\"additionalEmailAddresses\":[\"n\",\"z\",\"p\",\"kafkuwbcrnwbm\"],\"phoneNumber\":\"hseyvju\",\"preferredTimeZone\":\"rts\",\"country\":\"hspkdeemao\",\"preferredSupportLanguage\":\"mx\"}")
- .toObject(ContactProfile.class);
- Assertions.assertEquals("zntxhdz", model.firstName());
- Assertions.assertEquals("lrqjbhckfr", model.lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL, model.preferredContactMethod());
- Assertions.assertEquals("rxsbkyvp", model.primaryEmailAddress());
- Assertions.assertEquals("n", model.additionalEmailAddresses().get(0));
- Assertions.assertEquals("hseyvju", model.phoneNumber());
- Assertions.assertEquals("rts", model.preferredTimeZone());
- Assertions.assertEquals("hspkdeemao", model.country());
- Assertions.assertEquals("mx", model.preferredSupportLanguage());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ContactProfile model = new ContactProfile().withFirstName("zntxhdz")
- .withLastName("lrqjbhckfr")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("rxsbkyvp")
- .withAdditionalEmailAddresses(Arrays.asList("n", "z", "p", "kafkuwbcrnwbm"))
- .withPhoneNumber("hseyvju")
- .withPreferredTimeZone("rts")
- .withCountry("hspkdeemao")
- .withPreferredSupportLanguage("mx");
- model = BinaryData.fromObject(model).toObject(ContactProfile.class);
- Assertions.assertEquals("zntxhdz", model.firstName());
- Assertions.assertEquals("lrqjbhckfr", model.lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL, model.preferredContactMethod());
- Assertions.assertEquals("rxsbkyvp", model.primaryEmailAddress());
- Assertions.assertEquals("n", model.additionalEmailAddresses().get(0));
- Assertions.assertEquals("hseyvju", model.phoneNumber());
- Assertions.assertEquals("rts", model.preferredTimeZone());
- Assertions.assertEquals("hspkdeemao", model.country());
- Assertions.assertEquals("mx", model.preferredSupportLanguage());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileDetailsInnerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileDetailsInnerTests.java
deleted file mode 100644
index 746612c56a417..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileDetailsInnerTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.FileDetailsInner;
-import org.junit.jupiter.api.Assertions;
-
-public final class FileDetailsInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FileDetailsInner model = BinaryData.fromString(
- "{\"properties\":{\"createdOn\":\"2021-11-03T20:59:21Z\",\"chunkSize\":1250108412,\"fileSize\":239999895,\"numberOfChunks\":659977632},\"id\":\"tibqdxbxwakb\",\"name\":\"gqxndlkzgxhuripl\",\"type\":\"podxunkb\"}")
- .toObject(FileDetailsInner.class);
- Assertions.assertEquals(1250108412, model.chunkSize());
- Assertions.assertEquals(239999895, model.fileSize());
- Assertions.assertEquals(659977632, model.numberOfChunks());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FileDetailsInner model
- = new FileDetailsInner().withChunkSize(1250108412).withFileSize(239999895).withNumberOfChunks(659977632);
- model = BinaryData.fromObject(model).toObject(FileDetailsInner.class);
- Assertions.assertEquals(1250108412, model.chunkSize());
- Assertions.assertEquals(239999895, model.fileSize());
- Assertions.assertEquals(659977632, model.numberOfChunks());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileDetailsPropertiesTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileDetailsPropertiesTests.java
deleted file mode 100644
index dbb8ef5fac881..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileDetailsPropertiesTests.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.FileDetailsProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class FileDetailsPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FileDetailsProperties model = BinaryData.fromString(
- "{\"createdOn\":\"2021-09-11T16:48:39Z\",\"chunkSize\":1819295736,\"fileSize\":1347899854,\"numberOfChunks\":1050448020}")
- .toObject(FileDetailsProperties.class);
- Assertions.assertEquals(1819295736, model.chunkSize());
- Assertions.assertEquals(1347899854, model.fileSize());
- Assertions.assertEquals(1050448020, model.numberOfChunks());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FileDetailsProperties model = new FileDetailsProperties().withChunkSize(1819295736)
- .withFileSize(1347899854)
- .withNumberOfChunks(1050448020);
- model = BinaryData.fromObject(model).toObject(FileDetailsProperties.class);
- Assertions.assertEquals(1819295736, model.chunkSize());
- Assertions.assertEquals(1347899854, model.fileSize());
- Assertions.assertEquals(1050448020, model.numberOfChunks());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspaceDetailsInnerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspaceDetailsInnerTests.java
deleted file mode 100644
index 4db2ffa9d7df3..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspaceDetailsInnerTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.FileWorkspaceDetailsInner;
-
-public final class FileWorkspaceDetailsInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FileWorkspaceDetailsInner model = BinaryData.fromString(
- "{\"properties\":{\"createdOn\":\"2021-11-23T06:55:57Z\",\"expirationTime\":\"2021-04-22T09:32:34Z\"},\"id\":\"hhszh\",\"name\":\"d\",\"type\":\"lvwiwubmwmbesl\"}")
- .toObject(FileWorkspaceDetailsInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FileWorkspaceDetailsInner model = new FileWorkspaceDetailsInner();
- model = BinaryData.fromObject(model).toObject(FileWorkspaceDetailsInner.class);
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspaceDetailsPropertiesTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspaceDetailsPropertiesTests.java
deleted file mode 100644
index b5d400abce330..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspaceDetailsPropertiesTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.FileWorkspaceDetailsProperties;
-
-public final class FileWorkspaceDetailsPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FileWorkspaceDetailsProperties model = BinaryData
- .fromString("{\"createdOn\":\"2021-09-29T12:41:57Z\",\"expirationTime\":\"2020-12-30T08:12:48Z\"}")
- .toObject(FileWorkspaceDetailsProperties.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FileWorkspaceDetailsProperties model = new FileWorkspaceDetailsProperties();
- model = BinaryData.fromObject(model).toObject(FileWorkspaceDetailsProperties.class);
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesCreateWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesCreateWithResponseMockTests.java
deleted file mode 100644
index d01c7dd6f7b67..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.FileWorkspaceDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FileWorkspacesCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"createdOn\":\"2021-08-19T13:21:57Z\",\"expirationTime\":\"2021-04-19T12:51:33Z\"},\"id\":\"zqlqhyc\",\"name\":\"vodggxdbee\",\"type\":\"mieknlraria\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 201, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FileWorkspaceDetails response
- = manager.fileWorkspaces().createWithResponse("hnze", com.azure.core.util.Context.NONE).getValue();
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesGetWithResponseMockTests.java
deleted file mode 100644
index 7aba8218decae..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.FileWorkspaceDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FileWorkspacesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"createdOn\":\"2021-07-04T04:35:49Z\",\"expirationTime\":\"2021-03-05T05:54Z\"},\"id\":\"ffukiscvw\",\"name\":\"zhwplefaxvxilc\",\"type\":\"tg\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FileWorkspaceDetails response
- = manager.fileWorkspaces().getWithResponse("jnaeois", com.azure.core.util.Context.NONE).getValue();
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionsCreateWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionsCreateWithResponseMockTests.java
deleted file mode 100644
index 65d480ba16577..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionsCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.FileWorkspaceDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FileWorkspacesNoSubscriptionsCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"createdOn\":\"2021-06-16T11:37:33Z\",\"expirationTime\":\"2021-03-28T18:59:19Z\"},\"id\":\"bugrj\",\"name\":\"cto\",\"type\":\"cmisofie\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 201, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FileWorkspaceDetails response = manager.fileWorkspacesNoSubscriptions()
- .createWithResponse("ozuxylfsbtkadpys", com.azure.core.util.Context.NONE)
- .getValue();
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionsGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionsGetWithResponseMockTests.java
deleted file mode 100644
index a705327c1e94a..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FileWorkspacesNoSubscriptionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.FileWorkspaceDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FileWorkspacesNoSubscriptionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"createdOn\":\"2021-09-23T05:34:47Z\",\"expirationTime\":\"2021-06-07T02:49:09Z\"},\"id\":\"iagtc\",\"name\":\"jocqwogfnzjvusf\",\"type\":\"ld\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FileWorkspaceDetails response = manager.fileWorkspacesNoSubscriptions()
- .getWithResponse("wiuagydwqf", com.azure.core.util.Context.NONE)
- .getValue();
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesCreateWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesCreateWithResponseMockTests.java
deleted file mode 100644
index ee43ff38c599c..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.FileDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FilesCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"createdOn\":\"2021-09-06T02:43:55Z\",\"chunkSize\":1964101220,\"fileSize\":527338272,\"numberOfChunks\":1341869205},\"id\":\"hyrpetogebjoxs\",\"name\":\"hvnh\",\"type\":\"abrqnkkzj\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 201, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FileDetails response = manager.files()
- .define("bgq")
- .withExistingFileWorkspace("fmmfblcqcu")
- .withChunkSize(1522947792)
- .withFileSize(1749229509)
- .withNumberOfChunks(1690066547)
- .create();
-
- Assertions.assertEquals(1964101220, response.chunkSize());
- Assertions.assertEquals(527338272, response.fileSize());
- Assertions.assertEquals(1341869205, response.numberOfChunks());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesGetWithResponseMockTests.java
deleted file mode 100644
index d5bbe7e00ac16..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.FileDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FilesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"createdOn\":\"2021-03-09T08:38:36Z\",\"chunkSize\":966273213,\"fileSize\":1305858117,\"numberOfChunks\":272678412},\"id\":\"qovekqvgqou\",\"name\":\"ifzmpjwyivqi\",\"type\":\"f\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FileDetails response
- = manager.files().getWithResponse("rgnowcjhfgm", "ecactx", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals(966273213, response.chunkSize());
- Assertions.assertEquals(1305858117, response.fileSize());
- Assertions.assertEquals(272678412, response.numberOfChunks());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesListMockTests.java
deleted file mode 100644
index cdf6d2b17ee5d..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesListMockTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.FileDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FilesListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"createdOn\":\"2021-02-12T18:50:03Z\",\"chunkSize\":359045420,\"fileSize\":1283952114,\"numberOfChunks\":362693256},\"id\":\"cp\",\"name\":\"cwkhihi\",\"type\":\"lhzdsqtzb\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.files().list("pe", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(359045420, response.iterator().next().chunkSize());
- Assertions.assertEquals(1283952114, response.iterator().next().fileSize());
- Assertions.assertEquals(362693256, response.iterator().next().numberOfChunks());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesListResultTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesListResultTests.java
deleted file mode 100644
index 769806d2f3cfd..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesListResultTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.FileDetailsInner;
-import com.azure.resourcemanager.support.models.FilesListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class FilesListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- FilesListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"createdOn\":\"2021-05-13T14:02:05Z\",\"chunkSize\":799059143,\"fileSize\":1248501015,\"numberOfChunks\":712173581},\"id\":\"konzmnsik\",\"name\":\"mkqzeqqkdltfzxmh\",\"type\":\"v\"}],\"nextLink\":\"ur\"}")
- .toObject(FilesListResult.class);
- Assertions.assertEquals(799059143, model.value().get(0).chunkSize());
- Assertions.assertEquals(1248501015, model.value().get(0).fileSize());
- Assertions.assertEquals(712173581, model.value().get(0).numberOfChunks());
- Assertions.assertEquals("ur", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- FilesListResult model = new FilesListResult()
- .withValue(Arrays.asList(
- new FileDetailsInner().withChunkSize(799059143).withFileSize(1248501015).withNumberOfChunks(712173581)))
- .withNextLink("ur");
- model = BinaryData.fromObject(model).toObject(FilesListResult.class);
- Assertions.assertEquals(799059143, model.value().get(0).chunkSize());
- Assertions.assertEquals(1248501015, model.value().get(0).fileSize());
- Assertions.assertEquals(712173581, model.value().get(0).numberOfChunks());
- Assertions.assertEquals("ur", model.nextLink());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsCreateWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsCreateWithResponseMockTests.java
deleted file mode 100644
index 05d0581360aad..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsCreateWithResponseMockTests.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.fluent.models.FileDetailsInner;
-import com.azure.resourcemanager.support.models.FileDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FilesNoSubscriptionsCreateWithResponseMockTests {
- @Test
- public void testCreateWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"createdOn\":\"2021-06-27T13:13:13Z\",\"chunkSize\":1740217746,\"fileSize\":1527837396,\"numberOfChunks\":1693425826},\"id\":\"h\",\"name\":\"immbcx\",\"type\":\"h\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 201, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FileDetails response = manager.filesNoSubscriptions()
- .createWithResponse("aaomylweazu", "cse",
- new FileDetailsInner().withChunkSize(1128305959).withFileSize(574230298).withNumberOfChunks(307378678),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(1740217746, response.chunkSize());
- Assertions.assertEquals(1527837396, response.fileSize());
- Assertions.assertEquals(1693425826, response.numberOfChunks());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsGetWithResponseMockTests.java
deleted file mode 100644
index 9df40e1c64004..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.FileDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FilesNoSubscriptionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"createdOn\":\"2021-05-29T18:36:16Z\",\"chunkSize\":2128381794,\"fileSize\":23704541,\"numberOfChunks\":654985035},\"id\":\"ltlwtjjguktalhs\",\"name\":\"vkcdmxzr\",\"type\":\"oaimlnw\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- FileDetails response = manager.filesNoSubscriptions()
- .getWithResponse("pimaqxzhemjyh", "hujswtwkozzwcul", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals(2128381794, response.chunkSize());
- Assertions.assertEquals(23704541, response.fileSize());
- Assertions.assertEquals(654985035, response.numberOfChunks());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsListMockTests.java
deleted file mode 100644
index a424d83ee7e38..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsListMockTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.FileDetails;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FilesNoSubscriptionsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"createdOn\":\"2021-05-20T11:54:02Z\",\"chunkSize\":732133593,\"fileSize\":1032283606,\"numberOfChunks\":2115158777},\"id\":\"xjjs\",\"name\":\"oqbeitpkxzt\",\"type\":\"oobklftidgfcwq\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.filesNoSubscriptions().list("jb", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals(732133593, response.iterator().next().chunkSize());
- Assertions.assertEquals(1032283606, response.iterator().next().fileSize());
- Assertions.assertEquals(2115158777, response.iterator().next().numberOfChunks());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsUploadWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsUploadWithResponseMockTests.java
deleted file mode 100644
index dfbead908ff8f..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesNoSubscriptionsUploadWithResponseMockTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.UploadFile;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FilesNoSubscriptionsUploadWithResponseMockTests {
- @Test
- public void testUploadWithResponse() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 204, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.filesNoSubscriptions()
- .uploadWithResponse("cporxvxcjz", "qizxfpxtgqscjavf",
- new UploadFile().withContent("uhdqazk").withChunkIndex(308398935), com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesUploadWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesUploadWithResponseMockTests.java
deleted file mode 100644
index 7b5594a1e244c..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/FilesUploadWithResponseMockTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.UploadFile;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class FilesUploadWithResponseMockTests {
- @Test
- public void testUploadWithResponse() throws Exception {
- String responseStr = "{}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 204, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- manager.files()
- .uploadWithResponse("cvhrfsp", "uagrttikteusqc",
- new UploadFile().withContent("vyklxuby").withChunkIndex(490127820), com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/MessagePropertiesTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/MessagePropertiesTests.java
deleted file mode 100644
index 02a87786bd216..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/MessagePropertiesTests.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.MessageProperties;
-import org.junit.jupiter.api.Assertions;
-
-public final class MessagePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- MessageProperties model = BinaryData.fromString(
- "{\"communicationDirection\":\"outbound\",\"sender\":\"dsslswt\",\"body\":\"eriofzpyqs\",\"createdDate\":\"2021-06-06T05:20:48Z\"}")
- .toObject(MessageProperties.class);
- Assertions.assertEquals("dsslswt", model.sender());
- Assertions.assertEquals("eriofzpyqs", model.body());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- MessageProperties model = new MessageProperties().withSender("dsslswt").withBody("eriofzpyqs");
- model = BinaryData.fromObject(model).toObject(MessageProperties.class);
- Assertions.assertEquals("dsslswt", model.sender());
- Assertions.assertEquals("eriofzpyqs", model.body());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationDisplayTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationDisplayTests.java
deleted file mode 100644
index ae7c12dcf953e..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationDisplayTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.OperationDisplay;
-
-public final class OperationDisplayTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationDisplay model = BinaryData.fromString(
- "{\"description\":\"fcqhsmyurkd\",\"operation\":\"lx\",\"provider\":\"kuksjtxukcdm\",\"resource\":\"rcryuanzwuxzdxta\"}")
- .toObject(OperationDisplay.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationDisplay model = new OperationDisplay();
- model = BinaryData.fromObject(model).toObject(OperationDisplay.class);
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationInnerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationInnerTests.java
deleted file mode 100644
index 9589f1aedd839..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationInnerTests.java
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.OperationInner;
-import com.azure.resourcemanager.support.models.OperationDisplay;
-
-public final class OperationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationInner model = BinaryData.fromString(
- "{\"name\":\"dkfo\",\"display\":{\"description\":\"ygjofjdd\",\"operation\":\"s\",\"provider\":\"eupewnwreitjz\",\"resource\":\"lusarh\"}}")
- .toObject(OperationInner.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationInner model = new OperationInner().withDisplay(new OperationDisplay());
- model = BinaryData.fromObject(model).toObject(OperationInner.class);
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationsListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationsListMockTests.java
deleted file mode 100644
index 0dce6bff6908b..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationsListMockTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.Operation;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class OperationsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"name\":\"l\",\"display\":{\"description\":\"u\",\"operation\":\"auwzizxbmpgc\",\"provider\":\"fuzmuvpbtt\",\"resource\":\"morppxebmnzbtbh\"}}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationsListResultTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationsListResultTests.java
deleted file mode 100644
index 7963ce9cfb4d6..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/OperationsListResultTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.OperationInner;
-import com.azure.resourcemanager.support.models.OperationDisplay;
-import com.azure.resourcemanager.support.models.OperationsListResult;
-import java.util.Arrays;
-
-public final class OperationsListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- OperationsListResult model = BinaryData.fromString(
- "{\"value\":[{\"name\":\"quvgjxpybczme\",\"display\":{\"description\":\"zopbsphrupidgs\",\"operation\":\"bejhphoycmsxa\",\"provider\":\"hdxbmtqio\",\"resource\":\"zehtbmu\"}},{\"name\":\"ownoizhw\",\"display\":{\"description\":\"ybqsoqijg\",\"operation\":\"mbpazlobcufpdzn\",\"provider\":\"t\",\"resource\":\"qjnqglhqgnufoooj\"}},{\"name\":\"ifsqesaagdfmg\",\"display\":{\"description\":\"hjxri\",\"operation\":\"wmrvktsizntocipa\",\"provider\":\"ajpsquc\",\"resource\":\"o\"}}]}")
- .toObject(OperationsListResult.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- OperationsListResult model = new OperationsListResult()
- .withValue(Arrays.asList(new OperationInner().withDisplay(new OperationDisplay()),
- new OperationInner().withDisplay(new OperationDisplay()),
- new OperationInner().withDisplay(new OperationDisplay())));
- model = BinaryData.fromObject(model).toObject(OperationsListResult.class);
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationInnerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationInnerTests.java
deleted file mode 100644
index f28316705b7c3..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationInnerTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner;
-import com.azure.resourcemanager.support.models.SecondaryConsentEnabled;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ProblemClassificationInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ProblemClassificationInner model = BinaryData.fromString(
- "{\"id\":\"rokft\",\"name\":\"olniwpwcukjf\",\"type\":\"iawxklry\",\"properties\":{\"displayName\":\"ckbasyypndd\",\"secondaryConsentEnabled\":[{\"description\":\"bacphejko\",\"type\":\"nqgoulzndli\"},{\"description\":\"yqkgfg\",\"type\":\"madgakeqsrxyb\"},{\"description\":\"qedqytbciqfoufl\",\"type\":\"nkzsmodmglou\"}]}}")
- .toObject(ProblemClassificationInner.class);
- Assertions.assertEquals("ckbasyypndd", model.displayName());
- Assertions.assertEquals("bacphejko", model.secondaryConsentEnabled().get(0).description());
- Assertions.assertEquals("nqgoulzndli", model.secondaryConsentEnabled().get(0).type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ProblemClassificationInner model = new ProblemClassificationInner().withDisplayName("ckbasyypndd")
- .withSecondaryConsentEnabled(
- Arrays.asList(new SecondaryConsentEnabled().withDescription("bacphejko").withType("nqgoulzndli"),
- new SecondaryConsentEnabled().withDescription("yqkgfg").withType("madgakeqsrxyb"),
- new SecondaryConsentEnabled().withDescription("qedqytbciqfoufl").withType("nkzsmodmglou")));
- model = BinaryData.fromObject(model).toObject(ProblemClassificationInner.class);
- Assertions.assertEquals("ckbasyypndd", model.displayName());
- Assertions.assertEquals("bacphejko", model.secondaryConsentEnabled().get(0).description());
- Assertions.assertEquals("nqgoulzndli", model.secondaryConsentEnabled().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationPropertiesTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationPropertiesTests.java
deleted file mode 100644
index 6ada29f5493a9..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationPropertiesTests.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.ProblemClassificationProperties;
-import com.azure.resourcemanager.support.models.SecondaryConsentEnabled;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ProblemClassificationPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ProblemClassificationProperties model = BinaryData.fromString(
- "{\"displayName\":\"b\",\"secondaryConsentEnabled\":[{\"description\":\"utduqktapspwgcu\",\"type\":\"tumkdosvqwhbm\"}]}")
- .toObject(ProblemClassificationProperties.class);
- Assertions.assertEquals("b", model.displayName());
- Assertions.assertEquals("utduqktapspwgcu", model.secondaryConsentEnabled().get(0).description());
- Assertions.assertEquals("tumkdosvqwhbm", model.secondaryConsentEnabled().get(0).type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ProblemClassificationProperties model = new ProblemClassificationProperties().withDisplayName("b")
- .withSecondaryConsentEnabled(Arrays
- .asList(new SecondaryConsentEnabled().withDescription("utduqktapspwgcu").withType("tumkdosvqwhbm")));
- model = BinaryData.fromObject(model).toObject(ProblemClassificationProperties.class);
- Assertions.assertEquals("b", model.displayName());
- Assertions.assertEquals("utduqktapspwgcu", model.secondaryConsentEnabled().get(0).description());
- Assertions.assertEquals("tumkdosvqwhbm", model.secondaryConsentEnabled().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationsGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationsGetWithResponseMockTests.java
deleted file mode 100644
index 22c260a639611..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.ProblemClassification;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ProblemClassificationsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"id\":\"smocmbq\",\"name\":\"vmkcx\",\"type\":\"apvhelxprgly\",\"properties\":{\"displayName\":\"dckcbc\",\"secondaryConsentEnabled\":[{\"description\":\"jxgciqibrh\",\"type\":\"xsdqrhzoymibmrqy\"},{\"description\":\"ahwfluszdtmhrk\",\"type\":\"fyyvoq\"},{\"description\":\"piexpbtgiw\",\"type\":\"oenwashr\"},{\"description\":\"tkcnqxwb\",\"type\":\"kulpiujwaasi\"}]}}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- ProblemClassification response = manager.problemClassifications()
- .getWithResponse("jvp", "jqg", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("dckcbc", response.displayName());
- Assertions.assertEquals("jxgciqibrh", response.secondaryConsentEnabled().get(0).description());
- Assertions.assertEquals("xsdqrhzoymibmrqy", response.secondaryConsentEnabled().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListMockTests.java
deleted file mode 100644
index 608193966ce07..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListMockTests.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.ProblemClassification;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ProblemClassificationsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"id\":\"gx\",\"name\":\"rslpmutwuoeg\",\"type\":\"khjwn\",\"properties\":{\"displayName\":\"sluicpdggkzz\",\"secondaryConsentEnabled\":[{\"description\":\"mpaxmodfvuefywsb\",\"type\":\"vmwy\"},{\"description\":\"fouyf\",\"type\":\"akcp\"},{\"description\":\"yzvqt\",\"type\":\"ubex\"},{\"description\":\"zksmondj\",\"type\":\"uxvypomgkopkwh\"}]}}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.problemClassifications().list("d", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("sluicpdggkzz", response.iterator().next().displayName());
- Assertions.assertEquals("mpaxmodfvuefywsb",
- response.iterator().next().secondaryConsentEnabled().get(0).description());
- Assertions.assertEquals("vmwy", response.iterator().next().secondaryConsentEnabled().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListResultTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListResultTests.java
deleted file mode 100644
index e39a282f36b76..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ProblemClassificationsListResultTests.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner;
-import com.azure.resourcemanager.support.models.ProblemClassificationsListResult;
-import com.azure.resourcemanager.support.models.SecondaryConsentEnabled;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ProblemClassificationsListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ProblemClassificationsListResult model = BinaryData.fromString(
- "{\"value\":[{\"id\":\"ypininm\",\"name\":\"huyb\",\"type\":\"podepoo\",\"properties\":{\"displayName\":\"uvamiheognarxzxt\",\"secondaryConsentEnabled\":[{\"description\":\"usivye\",\"type\":\"ciqihnhung\"}]}},{\"id\":\"jzrnf\",\"name\":\"xgispemvtzfkufu\",\"type\":\"jofxqe\",\"properties\":{\"displayName\":\"aeqjhqjbasvms\",\"secondaryConsentEnabled\":[{\"description\":\"lngsntnbybkzgcwr\",\"type\":\"lxxwrljdouskc\"},{\"description\":\"kocrcjdkwtnhx\",\"type\":\"jbiksqrglssai\"},{\"description\":\"p\",\"type\":\"nzl\"},{\"description\":\"fmppe\",\"type\":\"vmgxsab\"}]}},{\"id\":\"qduujitcjczdz\",\"name\":\"ndhkrw\",\"type\":\"appd\",\"properties\":{\"displayName\":\"kvwrwjfeu\",\"secondaryConsentEnabled\":[{\"description\":\"tjelt\",\"type\":\"ldhugjzzdatqxh\"},{\"description\":\"dgeablgphu\",\"type\":\"cndvkaozwyiftyhx\"}]}}]}")
- .toObject(ProblemClassificationsListResult.class);
- Assertions.assertEquals("uvamiheognarxzxt", model.value().get(0).displayName());
- Assertions.assertEquals("usivye", model.value().get(0).secondaryConsentEnabled().get(0).description());
- Assertions.assertEquals("ciqihnhung", model.value().get(0).secondaryConsentEnabled().get(0).type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ProblemClassificationsListResult model
- = new ProblemClassificationsListResult()
- .withValue(Arrays.asList(
- new ProblemClassificationInner().withDisplayName("uvamiheognarxzxt")
- .withSecondaryConsentEnabled(Arrays
- .asList(new SecondaryConsentEnabled().withDescription("usivye").withType("ciqihnhung"))),
- new ProblemClassificationInner().withDisplayName("aeqjhqjbasvms")
- .withSecondaryConsentEnabled(Arrays.asList(
- new SecondaryConsentEnabled().withDescription("lngsntnbybkzgcwr").withType("lxxwrljdouskc"),
- new SecondaryConsentEnabled().withDescription("kocrcjdkwtnhx").withType("jbiksqrglssai"),
- new SecondaryConsentEnabled().withDescription("p").withType("nzl"),
- new SecondaryConsentEnabled().withDescription("fmppe").withType("vmgxsab"))),
- new ProblemClassificationInner().withDisplayName("kvwrwjfeu")
- .withSecondaryConsentEnabled(Arrays.asList(
- new SecondaryConsentEnabled().withDescription("tjelt").withType("ldhugjzzdatqxh"),
- new SecondaryConsentEnabled().withDescription("dgeablgphu")
- .withType("cndvkaozwyiftyhx")))));
- model = BinaryData.fromObject(model).toObject(ProblemClassificationsListResult.class);
- Assertions.assertEquals("uvamiheognarxzxt", model.value().get(0).displayName());
- Assertions.assertEquals("usivye", model.value().get(0).secondaryConsentEnabled().get(0).description());
- Assertions.assertEquals("ciqihnhung", model.value().get(0).secondaryConsentEnabled().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/QuotaChangeRequestTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/QuotaChangeRequestTests.java
deleted file mode 100644
index 8b43677ee3031..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/QuotaChangeRequestTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.QuotaChangeRequest;
-import org.junit.jupiter.api.Assertions;
-
-public final class QuotaChangeRequestTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- QuotaChangeRequest model = BinaryData.fromString("{\"region\":\"ldawkzbaliourqha\",\"payload\":\"uhashsfwx\"}")
- .toObject(QuotaChangeRequest.class);
- Assertions.assertEquals("ldawkzbaliourqha", model.region());
- Assertions.assertEquals("uhashsfwx", model.payload());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- QuotaChangeRequest model = new QuotaChangeRequest().withRegion("ldawkzbaliourqha").withPayload("uhashsfwx");
- model = BinaryData.fromObject(model).toObject(QuotaChangeRequest.class);
- Assertions.assertEquals("ldawkzbaliourqha", model.region());
- Assertions.assertEquals("uhashsfwx", model.payload());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/QuotaTicketDetailsTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/QuotaTicketDetailsTests.java
deleted file mode 100644
index 3c73035ca3bf1..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/QuotaTicketDetailsTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.QuotaChangeRequest;
-import com.azure.resourcemanager.support.models.QuotaTicketDetails;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class QuotaTicketDetailsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- QuotaTicketDetails model = BinaryData.fromString(
- "{\"quotaChangeRequestSubType\":\"exq\",\"quotaChangeRequestVersion\":\"fadmws\",\"quotaChangeRequests\":[{\"region\":\"vxpvgomz\",\"payload\":\"misgwbnb\"}]}")
- .toObject(QuotaTicketDetails.class);
- Assertions.assertEquals("exq", model.quotaChangeRequestSubType());
- Assertions.assertEquals("fadmws", model.quotaChangeRequestVersion());
- Assertions.assertEquals("vxpvgomz", model.quotaChangeRequests().get(0).region());
- Assertions.assertEquals("misgwbnb", model.quotaChangeRequests().get(0).payload());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- QuotaTicketDetails model = new QuotaTicketDetails().withQuotaChangeRequestSubType("exq")
- .withQuotaChangeRequestVersion("fadmws")
- .withQuotaChangeRequests(
- Arrays.asList(new QuotaChangeRequest().withRegion("vxpvgomz").withPayload("misgwbnb")));
- model = BinaryData.fromObject(model).toObject(QuotaTicketDetails.class);
- Assertions.assertEquals("exq", model.quotaChangeRequestSubType());
- Assertions.assertEquals("fadmws", model.quotaChangeRequestVersion());
- Assertions.assertEquals("vxpvgomz", model.quotaChangeRequests().get(0).region());
- Assertions.assertEquals("misgwbnb", model.quotaChangeRequests().get(0).payload());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SecondaryConsentEnabledTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SecondaryConsentEnabledTests.java
deleted file mode 100644
index 96ef9ad920879..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SecondaryConsentEnabledTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.SecondaryConsentEnabled;
-import org.junit.jupiter.api.Assertions;
-
-public final class SecondaryConsentEnabledTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SecondaryConsentEnabled model
- = BinaryData.fromString("{\"description\":\"bbjfddgmbmbexp\",\"type\":\"htqqrolfp\"}")
- .toObject(SecondaryConsentEnabled.class);
- Assertions.assertEquals("bbjfddgmbmbexp", model.description());
- Assertions.assertEquals("htqqrolfp", model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SecondaryConsentEnabled model
- = new SecondaryConsentEnabled().withDescription("bbjfddgmbmbexp").withType("htqqrolfp");
- model = BinaryData.fromObject(model).toObject(SecondaryConsentEnabled.class);
- Assertions.assertEquals("bbjfddgmbmbexp", model.description());
- Assertions.assertEquals("htqqrolfp", model.type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SecondaryConsentTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SecondaryConsentTests.java
deleted file mode 100644
index 1df2d23da65ba..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SecondaryConsentTests.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.SecondaryConsent;
-import com.azure.resourcemanager.support.models.UserConsent;
-import org.junit.jupiter.api.Assertions;
-
-public final class SecondaryConsentTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SecondaryConsent model
- = BinaryData.fromString("{\"userConsent\":\"Yes\",\"type\":\"z\"}").toObject(SecondaryConsent.class);
- Assertions.assertEquals(UserConsent.YES, model.userConsent());
- Assertions.assertEquals("z", model.type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SecondaryConsent model = new SecondaryConsent().withUserConsent(UserConsent.YES).withType("z");
- model = BinaryData.fromObject(model).toObject(SecondaryConsent.class);
- Assertions.assertEquals(UserConsent.YES, model.userConsent());
- Assertions.assertEquals("z", model.type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServiceInnerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServiceInnerTests.java
deleted file mode 100644
index af10e6b7d4d2a..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServiceInnerTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.ServiceInner;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ServiceInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ServiceInner model = BinaryData.fromString(
- "{\"id\":\"ctazakljlahbcryf\",\"name\":\"fdosyg\",\"type\":\"paojakhmsbzjh\",\"properties\":{\"displayName\":\"evdphlxaol\",\"resourceTypes\":[\"trg\",\"jbp\",\"zfsinzgvf\",\"jrwzox\"]}}")
- .toObject(ServiceInner.class);
- Assertions.assertEquals("evdphlxaol", model.displayName());
- Assertions.assertEquals("trg", model.resourceTypes().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ServiceInner model = new ServiceInner().withDisplayName("evdphlxaol")
- .withResourceTypes(Arrays.asList("trg", "jbp", "zfsinzgvf", "jrwzox"));
- model = BinaryData.fromObject(model).toObject(ServiceInner.class);
- Assertions.assertEquals("evdphlxaol", model.displayName());
- Assertions.assertEquals("trg", model.resourceTypes().get(0));
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServiceLevelAgreementTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServiceLevelAgreementTests.java
deleted file mode 100644
index cc0cbf764991a..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServiceLevelAgreementTests.java
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.ServiceLevelAgreement;
-
-public final class ServiceLevelAgreementTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ServiceLevelAgreement model = BinaryData.fromString(
- "{\"startTime\":\"2021-03-01T08:49:54Z\",\"expirationTime\":\"2020-12-25T09:40:11Z\",\"slaMinutes\":1243858380}")
- .toObject(ServiceLevelAgreement.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ServiceLevelAgreement model = new ServiceLevelAgreement();
- model = BinaryData.fromObject(model).toObject(ServiceLevelAgreement.class);
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicePropertiesTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicePropertiesTests.java
deleted file mode 100644
index 917ed9211faf8..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicePropertiesTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.ServiceProperties;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ServicePropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ServiceProperties model
- = BinaryData.fromString("{\"displayName\":\"tfell\",\"resourceTypes\":[\"zitonpeqfpjkjl\",\"ofpdvh\"]}")
- .toObject(ServiceProperties.class);
- Assertions.assertEquals("tfell", model.displayName());
- Assertions.assertEquals("zitonpeqfpjkjl", model.resourceTypes().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ServiceProperties model = new ServiceProperties().withDisplayName("tfell")
- .withResourceTypes(Arrays.asList("zitonpeqfpjkjl", "ofpdvh"));
- model = BinaryData.fromObject(model).toObject(ServiceProperties.class);
- Assertions.assertEquals("tfell", model.displayName());
- Assertions.assertEquals("zitonpeqfpjkjl", model.resourceTypes().get(0));
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicesGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicesGetWithResponseMockTests.java
deleted file mode 100644
index 1fcac5942b5d1..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicesGetWithResponseMockTests.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.Service;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ServicesGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"id\":\"wdmhdlxyjrxs\",\"name\":\"afcnih\",\"type\":\"qapnedgfbcv\",\"properties\":{\"displayName\":\"q\",\"resourceTypes\":[\"eqdcv\",\"rhvoods\",\"tbobz\",\"opcjwvnhd\"]}}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- Service response = manager.services().getWithResponse("pnppfuf", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("q", response.displayName());
- Assertions.assertEquals("eqdcv", response.resourceTypes().get(0));
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicesListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicesListMockTests.java
deleted file mode 100644
index e145749ec341e..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicesListMockTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.Service;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class ServicesListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"id\":\"glkfg\",\"name\":\"dneu\",\"type\":\"fphsdyhtozfikdow\",\"properties\":{\"displayName\":\"uvxzxclvi\",\"resourceTypes\":[\"qzonosggbhcohf\",\"dsjnka\",\"jutiiswacff\",\"dkzzewkfvhqcrail\"]}}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response = manager.services().list(com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("uvxzxclvi", response.iterator().next().displayName());
- Assertions.assertEquals("qzonosggbhcohf", response.iterator().next().resourceTypes().get(0));
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicesListResultTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicesListResultTests.java
deleted file mode 100644
index 9bc84f26e8b36..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/ServicesListResultTests.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.ServiceInner;
-import com.azure.resourcemanager.support.models.ServicesListResult;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class ServicesListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ServicesListResult model = BinaryData.fromString(
- "{\"value\":[{\"id\":\"m\",\"name\":\"fp\",\"type\":\"qobmtukk\",\"properties\":{\"displayName\":\"rtihfxtijbpz\",\"resourceTypes\":[\"wzsymglzufcy\",\"kohdbiha\"]}},{\"id\":\"fhfcb\",\"name\":\"s\",\"type\":\"ithxqhabifpi\",\"properties\":{\"displayName\":\"czbysc\",\"resourceTypes\":[\"x\"]}},{\"id\":\"ivyqniwbybrkxvd\",\"name\":\"jgrtfwvukxga\",\"type\":\"ccsnhsjc\",\"properties\":{\"displayName\":\"j\",\"resourceTypes\":[\"yhtnapczwlokjye\",\"kkvnipjox\",\"jnchgej\",\"podmailzydehojwy\"]}},{\"id\":\"uxinpmqnjaq\",\"name\":\"xj\",\"type\":\"r\",\"properties\":{\"displayName\":\"cputegjvwmfdats\",\"resourceTypes\":[\"vpjhulsuuv\",\"kjozkrwfnd\",\"odjpslwejd\",\"vwryoqpso\"]}}]}")
- .toObject(ServicesListResult.class);
- Assertions.assertEquals("rtihfxtijbpz", model.value().get(0).displayName());
- Assertions.assertEquals("wzsymglzufcy", model.value().get(0).resourceTypes().get(0));
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ServicesListResult model = new ServicesListResult().withValue(Arrays.asList(
- new ServiceInner().withDisplayName("rtihfxtijbpz")
- .withResourceTypes(Arrays.asList("wzsymglzufcy", "kohdbiha")),
- new ServiceInner().withDisplayName("czbysc").withResourceTypes(Arrays.asList("x")),
- new ServiceInner().withDisplayName("j")
- .withResourceTypes(Arrays.asList("yhtnapczwlokjye", "kkvnipjox", "jnchgej", "podmailzydehojwy")),
- new ServiceInner().withDisplayName("cputegjvwmfdats")
- .withResourceTypes(Arrays.asList("vpjhulsuuv", "kjozkrwfnd", "odjpslwejd", "vwryoqpso"))));
- model = BinaryData.fromObject(model).toObject(ServicesListResult.class);
- Assertions.assertEquals("rtihfxtijbpz", model.value().get(0).displayName());
- Assertions.assertEquals("wzsymglzufcy", model.value().get(0).resourceTypes().get(0));
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportEngineerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportEngineerTests.java
deleted file mode 100644
index a536b256569d9..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportEngineerTests.java
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.SupportEngineer;
-
-public final class SupportEngineerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SupportEngineer model
- = BinaryData.fromString("{\"emailAddress\":\"mqkrhahvljuahaqu\"}").toObject(SupportEngineer.class);
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SupportEngineer model = new SupportEngineer();
- model = BinaryData.fromObject(model).toObject(SupportEngineer.class);
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketDetailsInnerTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketDetailsInnerTests.java
deleted file mode 100644
index bb7e1e6ec9217..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketDetailsInnerTests.java
+++ /dev/null
@@ -1,126 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.SupportTicketDetailsInner;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.ContactProfile;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.QuotaChangeRequest;
-import com.azure.resourcemanager.support.models.QuotaTicketDetails;
-import com.azure.resourcemanager.support.models.SecondaryConsent;
-import com.azure.resourcemanager.support.models.ServiceLevelAgreement;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.SupportEngineer;
-import com.azure.resourcemanager.support.models.TechnicalTicketDetails;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class SupportTicketDetailsInnerTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SupportTicketDetailsInner model = BinaryData.fromString(
- "{\"properties\":{\"supportTicketId\":\"hwankixzbinjepu\",\"description\":\"tmryw\",\"problemClassificationId\":\"uzoqft\",\"problemClassificationDisplayName\":\"qzrnkcqvyxlwhz\",\"severity\":\"highestcriticalimpact\",\"enrollmentId\":\"cohoq\",\"require24X7Response\":false,\"advancedDiagnosticConsent\":\"No\",\"problemScopingQuestions\":\"ryavwhheunmmqh\",\"supportPlanId\":\"xzko\",\"contactDetails\":{\"firstName\":\"ocukoklyax\",\"lastName\":\"conuqszfkbeype\",\"preferredContactMethod\":\"phone\",\"primaryEmailAddress\":\"mjmwvvjektcx\",\"additionalEmailAddresses\":[\"hwlrsf\",\"rzpwvlqdqgbiq\",\"lihkaetcktvfc\",\"vf\"],\"phoneNumber\":\"kymuctqhjfbebr\",\"preferredTimeZone\":\"cxerf\",\"country\":\"wutttxfvjrbi\",\"preferredSupportLanguage\":\"phxepcyvahf\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-05-16T05:23:49Z\",\"expirationTime\":\"2021-01-31T22:23:26Z\",\"slaMinutes\":197436298},\"supportEngineer\":{\"emailAddress\":\"ujqgidok\"},\"supportPlanType\":\"ljyoxgvcltb\",\"supportPlanDisplayName\":\"ncghkje\",\"title\":\"zz\",\"problemStartTime\":\"2021-12-06T11:52:19Z\",\"serviceId\":\"jhtxfvgxbfsmxne\",\"serviceDisplayName\":\"pvecxgodeb\",\"status\":\"kk\",\"createdDate\":\"2021-10-28T16:20:15Z\",\"modifiedDate\":\"2021-01-02T22:48:09Z\",\"fileWorkspaceName\":\"gr\",\"isTemporaryTicket\":\"Yes\",\"technicalTicketDetails\":{\"resourceId\":\"lfbxzpuzycisp\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"ahmgkbrp\",\"quotaChangeRequestVersion\":\"dhibnuq\",\"quotaChangeRequests\":[{\"region\":\"kadrgvt\",\"payload\":\"gnbuy\"},{\"region\":\"ijggmebfsiar\",\"payload\":\"trcvpnazzmh\"}]},\"secondaryConsent\":[{\"userConsent\":\"No\",\"type\":\"xttd\"},{\"userConsent\":\"No\",\"type\":\"nlankxmyskpb\"}]},\"id\":\"enbtkcxywny\",\"name\":\"nrs\",\"type\":\"nlqidybyxczf\"}")
- .toObject(SupportTicketDetailsInner.class);
- Assertions.assertEquals("hwankixzbinjepu", model.supportTicketId());
- Assertions.assertEquals("tmryw", model.description());
- Assertions.assertEquals("uzoqft", model.problemClassificationId());
- Assertions.assertEquals(SeverityLevel.HIGHESTCRITICALIMPACT, model.severity());
- Assertions.assertEquals("cohoq", model.enrollmentId());
- Assertions.assertEquals(false, model.require24X7Response());
- Assertions.assertEquals(Consent.NO, model.advancedDiagnosticConsent());
- Assertions.assertEquals("ryavwhheunmmqh", model.problemScopingQuestions());
- Assertions.assertEquals("xzko", model.supportPlanId());
- Assertions.assertEquals("ocukoklyax", model.contactDetails().firstName());
- Assertions.assertEquals("conuqszfkbeype", model.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.PHONE, model.contactDetails().preferredContactMethod());
- Assertions.assertEquals("mjmwvvjektcx", model.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("hwlrsf", model.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("kymuctqhjfbebr", model.contactDetails().phoneNumber());
- Assertions.assertEquals("cxerf", model.contactDetails().preferredTimeZone());
- Assertions.assertEquals("wutttxfvjrbi", model.contactDetails().country());
- Assertions.assertEquals("phxepcyvahf", model.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("zz", model.title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-12-06T11:52:19Z"), model.problemStartTime());
- Assertions.assertEquals("jhtxfvgxbfsmxne", model.serviceId());
- Assertions.assertEquals("gr", model.fileWorkspaceName());
- Assertions.assertEquals("lfbxzpuzycisp", model.technicalTicketDetails().resourceId());
- Assertions.assertEquals("ahmgkbrp", model.quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("dhibnuq", model.quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("kadrgvt", model.quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("gnbuy", model.quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.NO, model.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("xttd", model.secondaryConsent().get(0).type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SupportTicketDetailsInner model = new SupportTicketDetailsInner().withSupportTicketId("hwankixzbinjepu")
- .withDescription("tmryw")
- .withProblemClassificationId("uzoqft")
- .withSeverity(SeverityLevel.HIGHESTCRITICALIMPACT)
- .withEnrollmentId("cohoq")
- .withRequire24X7Response(false)
- .withAdvancedDiagnosticConsent(Consent.NO)
- .withProblemScopingQuestions("ryavwhheunmmqh")
- .withSupportPlanId("xzko")
- .withContactDetails(new ContactProfile().withFirstName("ocukoklyax")
- .withLastName("conuqszfkbeype")
- .withPreferredContactMethod(PreferredContactMethod.PHONE)
- .withPrimaryEmailAddress("mjmwvvjektcx")
- .withAdditionalEmailAddresses(Arrays.asList("hwlrsf", "rzpwvlqdqgbiq", "lihkaetcktvfc", "vf"))
- .withPhoneNumber("kymuctqhjfbebr")
- .withPreferredTimeZone("cxerf")
- .withCountry("wutttxfvjrbi")
- .withPreferredSupportLanguage("phxepcyvahf"))
- .withServiceLevelAgreement(new ServiceLevelAgreement())
- .withSupportEngineer(new SupportEngineer())
- .withTitle("zz")
- .withProblemStartTime(OffsetDateTime.parse("2021-12-06T11:52:19Z"))
- .withServiceId("jhtxfvgxbfsmxne")
- .withFileWorkspaceName("gr")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId("lfbxzpuzycisp"))
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("ahmgkbrp")
- .withQuotaChangeRequestVersion("dhibnuq")
- .withQuotaChangeRequests(
- Arrays.asList(new QuotaChangeRequest().withRegion("kadrgvt").withPayload("gnbuy"),
- new QuotaChangeRequest().withRegion("ijggmebfsiar").withPayload("trcvpnazzmh"))))
- .withSecondaryConsent(Arrays.asList(new SecondaryConsent().withUserConsent(UserConsent.NO).withType("xttd"),
- new SecondaryConsent().withUserConsent(UserConsent.NO).withType("nlankxmyskpb")));
- model = BinaryData.fromObject(model).toObject(SupportTicketDetailsInner.class);
- Assertions.assertEquals("hwankixzbinjepu", model.supportTicketId());
- Assertions.assertEquals("tmryw", model.description());
- Assertions.assertEquals("uzoqft", model.problemClassificationId());
- Assertions.assertEquals(SeverityLevel.HIGHESTCRITICALIMPACT, model.severity());
- Assertions.assertEquals("cohoq", model.enrollmentId());
- Assertions.assertEquals(false, model.require24X7Response());
- Assertions.assertEquals(Consent.NO, model.advancedDiagnosticConsent());
- Assertions.assertEquals("ryavwhheunmmqh", model.problemScopingQuestions());
- Assertions.assertEquals("xzko", model.supportPlanId());
- Assertions.assertEquals("ocukoklyax", model.contactDetails().firstName());
- Assertions.assertEquals("conuqszfkbeype", model.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.PHONE, model.contactDetails().preferredContactMethod());
- Assertions.assertEquals("mjmwvvjektcx", model.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("hwlrsf", model.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("kymuctqhjfbebr", model.contactDetails().phoneNumber());
- Assertions.assertEquals("cxerf", model.contactDetails().preferredTimeZone());
- Assertions.assertEquals("wutttxfvjrbi", model.contactDetails().country());
- Assertions.assertEquals("phxepcyvahf", model.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("zz", model.title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-12-06T11:52:19Z"), model.problemStartTime());
- Assertions.assertEquals("jhtxfvgxbfsmxne", model.serviceId());
- Assertions.assertEquals("gr", model.fileWorkspaceName());
- Assertions.assertEquals("lfbxzpuzycisp", model.technicalTicketDetails().resourceId());
- Assertions.assertEquals("ahmgkbrp", model.quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("dhibnuq", model.quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("kadrgvt", model.quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("gnbuy", model.quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.NO, model.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("xttd", model.secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketDetailsPropertiesTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketDetailsPropertiesTests.java
deleted file mode 100644
index f4f578ea66852..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketDetailsPropertiesTests.java
+++ /dev/null
@@ -1,130 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.SupportTicketDetailsProperties;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.ContactProfile;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.QuotaChangeRequest;
-import com.azure.resourcemanager.support.models.QuotaTicketDetails;
-import com.azure.resourcemanager.support.models.SecondaryConsent;
-import com.azure.resourcemanager.support.models.ServiceLevelAgreement;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.SupportEngineer;
-import com.azure.resourcemanager.support.models.TechnicalTicketDetails;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class SupportTicketDetailsPropertiesTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SupportTicketDetailsProperties model = BinaryData.fromString(
- "{\"supportTicketId\":\"haaxdbabphl\",\"description\":\"rqlfktsthsucocmn\",\"problemClassificationId\":\"yazttbtwwrqpue\",\"problemClassificationDisplayName\":\"kzywbiex\",\"severity\":\"minimal\",\"enrollmentId\":\"yueaxibxujwb\",\"require24X7Response\":false,\"advancedDiagnosticConsent\":\"No\",\"problemScopingQuestions\":\"muzyoxaepdk\",\"supportPlanId\":\"ancuxrhd\",\"contactDetails\":{\"firstName\":\"bavxbniwdjswzt\",\"lastName\":\"dbpgnxytxhp\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"bzpfzab\",\"additionalEmailAddresses\":[\"uhxwtctyqiklbbov\"],\"phoneNumber\":\"wzbhvgyugu\",\"preferredTimeZone\":\"svmkfssxquk\",\"country\":\"fpl\",\"preferredSupportLanguage\":\"mg\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-09-17T03:45:09Z\",\"expirationTime\":\"2021-10-15T20:07:23Z\",\"slaMinutes\":1195842617},\"supportEngineer\":{\"emailAddress\":\"lpvlopw\"},\"supportPlanType\":\"ighxpk\",\"supportPlanDisplayName\":\"zb\",\"title\":\"iuebbaumny\",\"problemStartTime\":\"2021-02-11T09:41:28Z\",\"serviceId\":\"edeojnabc\",\"serviceDisplayName\":\"smtxpsieb\",\"status\":\"hvpesapskrdqm\",\"createdDate\":\"2021-01-31T10:46:35Z\",\"modifiedDate\":\"2021-06-12T00:35:29Z\",\"fileWorkspaceName\":\"ldwkyzxuutkn\",\"isTemporaryTicket\":\"Yes\",\"technicalTicketDetails\":{\"resourceId\":\"svlxotogtwrup\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"vnm\",\"quotaChangeRequestVersion\":\"ykvceoveil\",\"quotaChangeRequests\":[{\"region\":\"tyfjfcnjbkcnxdhb\",\"payload\":\"kphywpnvjto\"},{\"region\":\"ermclfplphoxuscr\",\"payload\":\"bgyepsbj\"},{\"region\":\"zq\",\"payload\":\"xywpmueefjzwfqkq\"},{\"region\":\"ids\",\"payload\":\"onobglaocqx\"}]},\"secondaryConsent\":[{\"userConsent\":\"Yes\",\"type\":\"udxytlmoyrx\"},{\"userConsent\":\"Yes\",\"type\":\"dw\"}]}")
- .toObject(SupportTicketDetailsProperties.class);
- Assertions.assertEquals("haaxdbabphl", model.supportTicketId());
- Assertions.assertEquals("rqlfktsthsucocmn", model.description());
- Assertions.assertEquals("yazttbtwwrqpue", model.problemClassificationId());
- Assertions.assertEquals(SeverityLevel.MINIMAL, model.severity());
- Assertions.assertEquals("yueaxibxujwb", model.enrollmentId());
- Assertions.assertEquals(false, model.require24X7Response());
- Assertions.assertEquals(Consent.NO, model.advancedDiagnosticConsent());
- Assertions.assertEquals("muzyoxaepdk", model.problemScopingQuestions());
- Assertions.assertEquals("ancuxrhd", model.supportPlanId());
- Assertions.assertEquals("bavxbniwdjswzt", model.contactDetails().firstName());
- Assertions.assertEquals("dbpgnxytxhp", model.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL, model.contactDetails().preferredContactMethod());
- Assertions.assertEquals("bzpfzab", model.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("uhxwtctyqiklbbov", model.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("wzbhvgyugu", model.contactDetails().phoneNumber());
- Assertions.assertEquals("svmkfssxquk", model.contactDetails().preferredTimeZone());
- Assertions.assertEquals("fpl", model.contactDetails().country());
- Assertions.assertEquals("mg", model.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("iuebbaumny", model.title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-02-11T09:41:28Z"), model.problemStartTime());
- Assertions.assertEquals("edeojnabc", model.serviceId());
- Assertions.assertEquals("ldwkyzxuutkn", model.fileWorkspaceName());
- Assertions.assertEquals("svlxotogtwrup", model.technicalTicketDetails().resourceId());
- Assertions.assertEquals("vnm", model.quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("ykvceoveil", model.quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("tyfjfcnjbkcnxdhb", model.quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("kphywpnvjto", model.quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.YES, model.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("udxytlmoyrx", model.secondaryConsent().get(0).type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SupportTicketDetailsProperties model
- = new SupportTicketDetailsProperties().withSupportTicketId("haaxdbabphl")
- .withDescription("rqlfktsthsucocmn")
- .withProblemClassificationId("yazttbtwwrqpue")
- .withSeverity(SeverityLevel.MINIMAL)
- .withEnrollmentId("yueaxibxujwb")
- .withRequire24X7Response(false)
- .withAdvancedDiagnosticConsent(Consent.NO)
- .withProblemScopingQuestions("muzyoxaepdk")
- .withSupportPlanId("ancuxrhd")
- .withContactDetails(new ContactProfile().withFirstName("bavxbniwdjswzt")
- .withLastName("dbpgnxytxhp")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("bzpfzab")
- .withAdditionalEmailAddresses(Arrays.asList("uhxwtctyqiklbbov"))
- .withPhoneNumber("wzbhvgyugu")
- .withPreferredTimeZone("svmkfssxquk")
- .withCountry("fpl")
- .withPreferredSupportLanguage("mg"))
- .withServiceLevelAgreement(new ServiceLevelAgreement())
- .withSupportEngineer(new SupportEngineer())
- .withTitle("iuebbaumny")
- .withProblemStartTime(OffsetDateTime.parse("2021-02-11T09:41:28Z"))
- .withServiceId("edeojnabc")
- .withFileWorkspaceName("ldwkyzxuutkn")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId("svlxotogtwrup"))
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("vnm")
- .withQuotaChangeRequestVersion("ykvceoveil")
- .withQuotaChangeRequests(Arrays.asList(
- new QuotaChangeRequest().withRegion("tyfjfcnjbkcnxdhb").withPayload("kphywpnvjto"),
- new QuotaChangeRequest().withRegion("ermclfplphoxuscr").withPayload("bgyepsbj"),
- new QuotaChangeRequest().withRegion("zq").withPayload("xywpmueefjzwfqkq"),
- new QuotaChangeRequest().withRegion("ids").withPayload("onobglaocqx"))))
- .withSecondaryConsent(
- Arrays.asList(new SecondaryConsent().withUserConsent(UserConsent.YES).withType("udxytlmoyrx"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("dw")));
- model = BinaryData.fromObject(model).toObject(SupportTicketDetailsProperties.class);
- Assertions.assertEquals("haaxdbabphl", model.supportTicketId());
- Assertions.assertEquals("rqlfktsthsucocmn", model.description());
- Assertions.assertEquals("yazttbtwwrqpue", model.problemClassificationId());
- Assertions.assertEquals(SeverityLevel.MINIMAL, model.severity());
- Assertions.assertEquals("yueaxibxujwb", model.enrollmentId());
- Assertions.assertEquals(false, model.require24X7Response());
- Assertions.assertEquals(Consent.NO, model.advancedDiagnosticConsent());
- Assertions.assertEquals("muzyoxaepdk", model.problemScopingQuestions());
- Assertions.assertEquals("ancuxrhd", model.supportPlanId());
- Assertions.assertEquals("bavxbniwdjswzt", model.contactDetails().firstName());
- Assertions.assertEquals("dbpgnxytxhp", model.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL, model.contactDetails().preferredContactMethod());
- Assertions.assertEquals("bzpfzab", model.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("uhxwtctyqiklbbov", model.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("wzbhvgyugu", model.contactDetails().phoneNumber());
- Assertions.assertEquals("svmkfssxquk", model.contactDetails().preferredTimeZone());
- Assertions.assertEquals("fpl", model.contactDetails().country());
- Assertions.assertEquals("mg", model.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("iuebbaumny", model.title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-02-11T09:41:28Z"), model.problemStartTime());
- Assertions.assertEquals("edeojnabc", model.serviceId());
- Assertions.assertEquals("ldwkyzxuutkn", model.fileWorkspaceName());
- Assertions.assertEquals("svlxotogtwrup", model.technicalTicketDetails().resourceId());
- Assertions.assertEquals("vnm", model.quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("ykvceoveil", model.quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("tyfjfcnjbkcnxdhb", model.quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("kphywpnvjto", model.quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.YES, model.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("udxytlmoyrx", model.secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsCheckNameAvailabilityWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsCheckNameAvailabilityWithResponseMockTests.java
deleted file mode 100644
index 8f65d71e1df1c..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsCheckNameAvailabilityWithResponseMockTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.CheckNameAvailabilityInput;
-import com.azure.resourcemanager.support.models.CheckNameAvailabilityOutput;
-import com.azure.resourcemanager.support.models.Type;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class SupportTicketsCheckNameAvailabilityWithResponseMockTests {
- @Test
- public void testCheckNameAvailabilityWithResponse() throws Exception {
- String responseStr = "{\"nameAvailable\":true,\"reason\":\"wcciuqgbdbu\",\"message\":\"uvfbtkuwh\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckNameAvailabilityOutput response
- = manager.supportTickets()
- .checkNameAvailabilityWithResponse(new CheckNameAvailabilityInput().withName("qiiobyuqer")
- .withType(Type.MICROSOFT_SUPPORT_COMMUNICATIONS), com.azure.core.util.Context.NONE)
- .getValue();
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsCreateMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsCreateMockTests.java
deleted file mode 100644
index 274a54544f090..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsCreateMockTests.java
+++ /dev/null
@@ -1,116 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.ContactProfile;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.QuotaChangeRequest;
-import com.azure.resourcemanager.support.models.QuotaTicketDetails;
-import com.azure.resourcemanager.support.models.SecondaryConsent;
-import com.azure.resourcemanager.support.models.ServiceLevelAgreement;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.SupportEngineer;
-import com.azure.resourcemanager.support.models.SupportTicketDetails;
-import com.azure.resourcemanager.support.models.TechnicalTicketDetails;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class SupportTicketsCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- String responseStr
- = "{\"properties\":{\"supportTicketId\":\"bejdcn\",\"description\":\"qqmoaku\",\"problemClassificationId\":\"gm\",\"problemClassificationDisplayName\":\"rwr\",\"severity\":\"moderate\",\"enrollmentId\":\"twaenuuzko\",\"require24X7Response\":false,\"advancedDiagnosticConsent\":\"No\",\"problemScopingQuestions\":\"rfdwoyu\",\"supportPlanId\":\"ziuiefozbhdm\",\"contactDetails\":{\"firstName\":\"mlmz\",\"lastName\":\"hoftr\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"equi\",\"additionalEmailAddresses\":[\"icslfaoq\",\"piyylhalnswhccsp\"],\"phoneNumber\":\"aivwitqscywu\",\"preferredTimeZone\":\"gwol\",\"country\":\"h\",\"preferredSupportLanguage\":\"zbwemh\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-04-14T21:32:09Z\",\"expirationTime\":\"2021-08-12T10:49:45Z\",\"slaMinutes\":73661757},\"supportEngineer\":{\"emailAddress\":\"msweypqwdxggicc\"},\"supportPlanType\":\"xqhuexm\",\"supportPlanDisplayName\":\"tlstvlzywem\",\"title\":\"zrncsdt\",\"problemStartTime\":\"2021-07-01T02:09:13Z\",\"serviceId\":\"siypbs\",\"serviceDisplayName\":\"ytguslf\",\"status\":\"dcygqukyhejhz\",\"createdDate\":\"2021-04-26T05:02:54Z\",\"modifiedDate\":\"2021-04-29T01:54:20Z\",\"fileWorkspaceName\":\"elolppvksrpqvuj\",\"isTemporaryTicket\":\"Yes\",\"technicalTicketDetails\":{\"resourceId\":\"twdw\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"swibyr\",\"quotaChangeRequestVersion\":\"l\",\"quotaChangeRequests\":[{\"region\":\"fwpracstwi\",\"payload\":\"khevxccedc\"},{\"region\":\"md\",\"payload\":\"dnwzxltjcvnhltiu\"},{\"region\":\"xnavvwxq\",\"payload\":\"y\"},{\"region\":\"nyowxwlmdjrkvfg\",\"payload\":\"fvpdbo\"}]},\"secondaryConsent\":[{\"userConsent\":\"Yes\",\"type\":\"j\"},{\"userConsent\":\"Yes\",\"type\":\"rribd\"},{\"userConsent\":\"Yes\",\"type\":\"ipqkghvxndzwm\"},{\"userConsent\":\"Yes\",\"type\":\"ajpjo\"}]},\"id\":\"wkqnyhg\",\"name\":\"ij\",\"type\":\"jivfxzsjabib\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SupportTicketDetails response = manager.supportTickets()
- .define("ao")
- .withDescription("jervtia")
- .withProblemClassificationId("xsdszuempsb")
- .withSeverity(SeverityLevel.HIGHESTCRITICALIMPACT)
- .withAdvancedDiagnosticConsent(Consent.NO)
- .withContactDetails(new ContactProfile().withFirstName("fn")
- .withLastName("ckw")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("zqwhxxbuyqaxzfeq")
- .withAdditionalEmailAddresses(Arrays.asList("priolx", "rjaltolmncw"))
- .withPhoneNumber("bqwcsdbnwdcf")
- .withPreferredTimeZone("ucqdpfuvglsb")
- .withCountry("jcanvxbvtvudut")
- .withPreferredSupportLanguage("cormr"))
- .withTitle("dsg")
- .withServiceId("mkycgra")
- .withSupportTicketId("ulpqblylsyxkqjn")
- .withEnrollmentId("yvpnqicvinvkjj")
- .withRequire24X7Response(true)
- .withProblemScopingQuestions("uukzclewyhmlw")
- .withSupportPlanId("ztzp")
- .withServiceLevelAgreement(new ServiceLevelAgreement())
- .withSupportEngineer(new SupportEngineer())
- .withProblemStartTime(OffsetDateTime.parse("2021-04-29T00:37:52Z"))
- .withFileWorkspaceName("mqoefkifrvtpuqu")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId("kfbtndoaongbjc"))
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("jitcjedftwwaez")
- .withQuotaChangeRequestVersion("jvdcpzfoqouic")
- .withQuotaChangeRequests(
- Arrays.asList(new QuotaChangeRequest().withRegion("rzgszufoxci").withPayload("p"),
- new QuotaChangeRequest().withRegion("oamciodh").withPayload("azxkhnzbonlwnto"),
- new QuotaChangeRequest().withRegion("okdwb").withPayload("kszzcmrvexztv"),
- new QuotaChangeRequest().withRegion("qgsfraoyzkoow").withPayload("mnguxawqaldsyu"))))
- .withSecondaryConsent(
- Arrays.asList(new SecondaryConsent().withUserConsent(UserConsent.YES).withType("qfobwyz"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("kutwpf"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("m"),
- new SecondaryConsent().withUserConsent(UserConsent.NO).withType("dsnfdsdoakgtdl")))
- .create();
-
- Assertions.assertEquals("bejdcn", response.supportTicketId());
- Assertions.assertEquals("qqmoaku", response.description());
- Assertions.assertEquals("gm", response.problemClassificationId());
- Assertions.assertEquals(SeverityLevel.MODERATE, response.severity());
- Assertions.assertEquals("twaenuuzko", response.enrollmentId());
- Assertions.assertEquals(false, response.require24X7Response());
- Assertions.assertEquals(Consent.NO, response.advancedDiagnosticConsent());
- Assertions.assertEquals("rfdwoyu", response.problemScopingQuestions());
- Assertions.assertEquals("ziuiefozbhdm", response.supportPlanId());
- Assertions.assertEquals("mlmz", response.contactDetails().firstName());
- Assertions.assertEquals("hoftr", response.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL, response.contactDetails().preferredContactMethod());
- Assertions.assertEquals("equi", response.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("icslfaoq", response.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("aivwitqscywu", response.contactDetails().phoneNumber());
- Assertions.assertEquals("gwol", response.contactDetails().preferredTimeZone());
- Assertions.assertEquals("h", response.contactDetails().country());
- Assertions.assertEquals("zbwemh", response.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("zrncsdt", response.title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-07-01T02:09:13Z"), response.problemStartTime());
- Assertions.assertEquals("siypbs", response.serviceId());
- Assertions.assertEquals("elolppvksrpqvuj", response.fileWorkspaceName());
- Assertions.assertEquals("twdw", response.technicalTicketDetails().resourceId());
- Assertions.assertEquals("swibyr", response.quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("l", response.quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("fwpracstwi", response.quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("khevxccedc", response.quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.YES, response.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("j", response.secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsGetWithResponseMockTests.java
deleted file mode 100644
index 9efbaa7890357..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.SupportTicketDetails;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class SupportTicketsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"supportTicketId\":\"atklddxbjhwuaa\",\"description\":\"oz\",\"problemClassificationId\":\"osphyoul\",\"problemClassificationDisplayName\":\"rvxaglrvimjwosy\",\"severity\":\"minimal\",\"enrollmentId\":\"tcs\",\"require24X7Response\":true,\"advancedDiagnosticConsent\":\"Yes\",\"problemScopingQuestions\":\"qumiek\",\"supportPlanId\":\"zzikhlyfjhdg\",\"contactDetails\":{\"firstName\":\"gge\",\"lastName\":\"dunyg\",\"preferredContactMethod\":\"phone\",\"primaryEmailAddress\":\"qidbqfatpxllrxcy\",\"additionalEmailAddresses\":[\"a\",\"su\"],\"phoneNumber\":\"r\",\"preferredTimeZone\":\"ywdmjsjqbjh\",\"country\":\"yxxrwlycoduh\",\"preferredSupportLanguage\":\"kxkgymareqna\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-06-15T09:27:50Z\",\"expirationTime\":\"2021-06-13T08:03:20Z\",\"slaMinutes\":432489630},\"supportEngineer\":{\"emailAddress\":\"ubeddg\"},\"supportPlanType\":\"ofwq\",\"supportPlanDisplayName\":\"qal\",\"title\":\"rmnjijpx\",\"problemStartTime\":\"2021-07-27T17:13:58Z\",\"serviceId\":\"qudf\",\"serviceDisplayName\":\"yxbaaabjyvayf\",\"status\":\"m\",\"createdDate\":\"2021-07-11T14:35:31Z\",\"modifiedDate\":\"2021-04-01T17:38:45Z\",\"fileWorkspaceName\":\"qogsexnevfd\",\"isTemporaryTicket\":\"Yes\",\"technicalTicketDetails\":{\"resourceId\":\"ewzsyyceuzsoib\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"pfrxtrthzvay\",\"quotaChangeRequestVersion\":\"wkqbrqu\",\"quotaChangeRequests\":[{\"region\":\"h\",\"payload\":\"iilivpdtiirqtd\"},{\"region\":\"axoruzfgsquy\",\"payload\":\"rxxle\"},{\"region\":\"ramxjezwlwnw\",\"payload\":\"qlcvydy\"}]},\"secondaryConsent\":[{\"userConsent\":\"No\",\"type\":\"aojkniodk\"},{\"userConsent\":\"Yes\",\"type\":\"wnujhemmsbvdk\"}]},\"id\":\"rodtjinfwjlfl\",\"name\":\"kacjvefkdlfo\",\"type\":\"kggkfpa\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SupportTicketDetails response
- = manager.supportTickets().getWithResponse("elpcirelsfeaenwa", com.azure.core.util.Context.NONE).getValue();
-
- Assertions.assertEquals("atklddxbjhwuaa", response.supportTicketId());
- Assertions.assertEquals("oz", response.description());
- Assertions.assertEquals("osphyoul", response.problemClassificationId());
- Assertions.assertEquals(SeverityLevel.MINIMAL, response.severity());
- Assertions.assertEquals("tcs", response.enrollmentId());
- Assertions.assertEquals(true, response.require24X7Response());
- Assertions.assertEquals(Consent.YES, response.advancedDiagnosticConsent());
- Assertions.assertEquals("qumiek", response.problemScopingQuestions());
- Assertions.assertEquals("zzikhlyfjhdg", response.supportPlanId());
- Assertions.assertEquals("gge", response.contactDetails().firstName());
- Assertions.assertEquals("dunyg", response.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.PHONE, response.contactDetails().preferredContactMethod());
- Assertions.assertEquals("qidbqfatpxllrxcy", response.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("a", response.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("r", response.contactDetails().phoneNumber());
- Assertions.assertEquals("ywdmjsjqbjh", response.contactDetails().preferredTimeZone());
- Assertions.assertEquals("yxxrwlycoduh", response.contactDetails().country());
- Assertions.assertEquals("kxkgymareqna", response.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("rmnjijpx", response.title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-07-27T17:13:58Z"), response.problemStartTime());
- Assertions.assertEquals("qudf", response.serviceId());
- Assertions.assertEquals("qogsexnevfd", response.fileWorkspaceName());
- Assertions.assertEquals("ewzsyyceuzsoib", response.technicalTicketDetails().resourceId());
- Assertions.assertEquals("pfrxtrthzvay", response.quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("wkqbrqu", response.quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("h", response.quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("iilivpdtiirqtd", response.quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.NO, response.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("aojkniodk", response.secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsListMockTests.java
deleted file mode 100644
index 51750adb04fe5..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsListMockTests.java
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.SupportTicketDetails;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class SupportTicketsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"supportTicketId\":\"o\",\"description\":\"mkcdyhbpkkpwdre\",\"problemClassificationId\":\"novvqfovljxy\",\"problemClassificationDisplayName\":\"uwsyrsndsytgadg\",\"severity\":\"minimal\",\"enrollmentId\":\"ea\",\"require24X7Response\":false,\"advancedDiagnosticConsent\":\"Yes\",\"problemScopingQuestions\":\"zar\",\"supportPlanId\":\"lquuijfqkacewii\",\"contactDetails\":{\"firstName\":\"fpubjibwwi\",\"lastName\":\"tohqkvpuvksgp\",\"preferredContactMethod\":\"phone\",\"primaryEmailAddress\":\"aknynfsynljphuop\",\"additionalEmailAddresses\":[\"lqiyntorzihl\",\"osjswsr\",\"slyzrpzbchckqq\"],\"phoneNumber\":\"ioxiysuiizyn\",\"preferredTimeZone\":\"edyatrwyhqmibzyh\",\"country\":\"itsmypyyn\",\"preferredSupportLanguage\":\"cdpu\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-01-20T04:27:27Z\",\"expirationTime\":\"2021-04-24T15:22:10Z\",\"slaMinutes\":1547081847},\"supportEngineer\":{\"emailAddress\":\"biknsorgjhxbld\"},\"supportPlanType\":\"wwrlkdmtncv\",\"supportPlanDisplayName\":\"otllxdyhgsyo\",\"title\":\"ogjltdtbnnhad\",\"problemStartTime\":\"2021-04-24T13:40:54Z\",\"serviceId\":\"rkvcikhnvpa\",\"serviceDisplayName\":\"gxqquezik\",\"status\":\"ggxkallatmelwuip\",\"createdDate\":\"2021-10-19T09:34:04Z\",\"modifiedDate\":\"2021-06-05T01:20:37Z\",\"fileWorkspaceName\":\"z\",\"isTemporaryTicket\":\"No\",\"technicalTicketDetails\":{\"resourceId\":\"c\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"rhyrnxxmueed\",\"quotaChangeRequestVersion\":\"rdvstkwqqtch\",\"quotaChangeRequests\":[{\"region\":\"fmtdaaygdvwvgp\",\"payload\":\"hgwxrtfudx\"},{\"region\":\"xg\",\"payload\":\"agvrvmnpkuk\"},{\"region\":\"i\",\"payload\":\"blxgwimf\"}]},\"secondaryConsent\":[{\"userConsent\":\"Yes\",\"type\":\"wmszkk\"}]},\"id\":\"oqreyfkzikfjawn\",\"name\":\"a\",\"type\":\"vxwc\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.supportTickets().list(1424566562, "hykojoxafnndlpic", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("o", response.iterator().next().supportTicketId());
- Assertions.assertEquals("mkcdyhbpkkpwdre", response.iterator().next().description());
- Assertions.assertEquals("novvqfovljxy", response.iterator().next().problemClassificationId());
- Assertions.assertEquals(SeverityLevel.MINIMAL, response.iterator().next().severity());
- Assertions.assertEquals("ea", response.iterator().next().enrollmentId());
- Assertions.assertEquals(false, response.iterator().next().require24X7Response());
- Assertions.assertEquals(Consent.YES, response.iterator().next().advancedDiagnosticConsent());
- Assertions.assertEquals("zar", response.iterator().next().problemScopingQuestions());
- Assertions.assertEquals("lquuijfqkacewii", response.iterator().next().supportPlanId());
- Assertions.assertEquals("fpubjibwwi", response.iterator().next().contactDetails().firstName());
- Assertions.assertEquals("tohqkvpuvksgp", response.iterator().next().contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.PHONE,
- response.iterator().next().contactDetails().preferredContactMethod());
- Assertions.assertEquals("aknynfsynljphuop", response.iterator().next().contactDetails().primaryEmailAddress());
- Assertions.assertEquals("lqiyntorzihl",
- response.iterator().next().contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("ioxiysuiizyn", response.iterator().next().contactDetails().phoneNumber());
- Assertions.assertEquals("edyatrwyhqmibzyh", response.iterator().next().contactDetails().preferredTimeZone());
- Assertions.assertEquals("itsmypyyn", response.iterator().next().contactDetails().country());
- Assertions.assertEquals("cdpu", response.iterator().next().contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("ogjltdtbnnhad", response.iterator().next().title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-04-24T13:40:54Z"),
- response.iterator().next().problemStartTime());
- Assertions.assertEquals("rkvcikhnvpa", response.iterator().next().serviceId());
- Assertions.assertEquals("z", response.iterator().next().fileWorkspaceName());
- Assertions.assertEquals("c", response.iterator().next().technicalTicketDetails().resourceId());
- Assertions.assertEquals("rhyrnxxmueed",
- response.iterator().next().quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("rdvstkwqqtch",
- response.iterator().next().quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("fmtdaaygdvwvgp",
- response.iterator().next().quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("hgwxrtfudx",
- response.iterator().next().quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.YES, response.iterator().next().secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("wmszkk", response.iterator().next().secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsListResultTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsListResultTests.java
deleted file mode 100644
index 6dea880f9753f..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsListResultTests.java
+++ /dev/null
@@ -1,228 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.fluent.models.SupportTicketDetailsInner;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.ContactProfile;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.QuotaChangeRequest;
-import com.azure.resourcemanager.support.models.QuotaTicketDetails;
-import com.azure.resourcemanager.support.models.SecondaryConsent;
-import com.azure.resourcemanager.support.models.ServiceLevelAgreement;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.SupportEngineer;
-import com.azure.resourcemanager.support.models.SupportTicketsListResult;
-import com.azure.resourcemanager.support.models.TechnicalTicketDetails;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class SupportTicketsListResultTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- SupportTicketsListResult model = BinaryData.fromString(
- "{\"value\":[{\"properties\":{\"supportTicketId\":\"qawrlyxwj\",\"description\":\"cpr\",\"problemClassificationId\":\"nwbxgjvtbvpyssz\",\"problemClassificationDisplayName\":\"rujqg\",\"severity\":\"highestcriticalimpact\",\"enrollmentId\":\"uouq\",\"require24X7Response\":false,\"advancedDiagnosticConsent\":\"No\",\"problemScopingQuestions\":\"wbnguitnwui\",\"supportPlanId\":\"a\",\"contactDetails\":{\"firstName\":\"x\",\"lastName\":\"fizuckyf\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"rfidfvzwdz\",\"additionalEmailAddresses\":[\"ymwisdkft\"],\"phoneNumber\":\"xmnteiwaop\",\"preferredTimeZone\":\"km\",\"country\":\"jcmmxdcufufsrp\",\"preferredSupportLanguage\":\"mzidnsezcxtb\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-04-17T07:41:34Z\",\"expirationTime\":\"2021-11-30T22:43:16Z\",\"slaMinutes\":669773317},\"supportEngineer\":{\"emailAddress\":\"wmdwzjeiachboo\"},\"supportPlanType\":\"lnrosfqp\",\"supportPlanDisplayName\":\"ehzzvypyqrim\",\"title\":\"inpvswjdkirsoodq\",\"problemStartTime\":\"2021-07-12T18:06:29Z\",\"serviceId\":\"rmnohj\",\"serviceDisplayName\":\"kwh\",\"status\":\"oifiyipjxsqwpgr\",\"createdDate\":\"2021-03-31T15:02:13Z\",\"modifiedDate\":\"2021-06-14T22:17:31Z\",\"fileWorkspaceName\":\"cjxvsnbyxqab\",\"isTemporaryTicket\":\"Yes\",\"technicalTicketDetails\":{\"resourceId\":\"cyshurzafbljjgp\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"qcjm\",\"quotaChangeRequestVersion\":\"javbqidtqajz\",\"quotaChangeRequests\":[{}]},\"secondaryConsent\":[{\"userConsent\":\"Yes\",\"type\":\"krlkhbzhfepg\"},{\"userConsent\":\"Yes\",\"type\":\"xzlocxscp\"},{\"userConsent\":\"No\",\"type\":\"hhbcsglummajtjao\"}]},\"id\":\"xobnbdxkqpxok\",\"name\":\"jionpimexgstxgc\",\"type\":\"odgmaajrmvdjwz\"},{\"properties\":{\"supportTicketId\":\"ovmclwhijcoejct\",\"description\":\"zaqsqsycbkbfk\",\"problemClassificationId\":\"ukdkexxppofmxa\",\"problemClassificationDisplayName\":\"fjpgddtocjjxhvp\",\"severity\":\"minimal\",\"enrollmentId\":\"exhd\",\"require24X7Response\":false,\"advancedDiagnosticConsent\":\"Yes\",\"problemScopingQuestions\":\"eojnxqbzvddn\",\"supportPlanId\":\"ndei\",\"contactDetails\":{\"firstName\":\"btwnpzaoqvuhrhcf\",\"lastName\":\"cyddglmjthjqk\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"yeicxmqciwqvhk\",\"additionalEmailAddresses\":[\"uigdtopbobjog\",\"m\",\"w\"],\"phoneNumber\":\"m\",\"preferredTimeZone\":\"uhrzayvvt\",\"country\":\"gvdfgiotkftutq\",\"preferredSupportLanguage\":\"ln\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-02-04T14:07:35Z\",\"expirationTime\":\"2021-03-05T03:19:35Z\",\"slaMinutes\":1408526617},\"supportEngineer\":{\"emailAddress\":\"krxd\"},\"supportPlanType\":\"i\",\"supportPlanDisplayName\":\"thz\",\"title\":\"vqdra\",\"problemStartTime\":\"2021-02-10T08:49:49Z\",\"serviceId\":\"yb\",\"serviceDisplayName\":\"ehoqfbowskan\",\"status\":\"tzlcuiywgqywgn\",\"createdDate\":\"2021-09-15T21:07:23Z\",\"modifiedDate\":\"2021-04-01T08:37:52Z\",\"fileWorkspaceName\":\"zgpphrcgyncocpe\",\"isTemporaryTicket\":\"Yes\",\"technicalTicketDetails\":{\"resourceId\":\"coofsxlzev\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"qjqabcypmivkwl\",\"quotaChangeRequestVersion\":\"vccfw\",\"quotaChangeRequests\":[{},{}]},\"secondaryConsent\":[{\"userConsent\":\"Yes\",\"type\":\"onlebxetqgtzxdpn\"}]},\"id\":\"bqqwxrj\",\"name\":\"eallnwsubisnj\",\"type\":\"mpmngnzscxaqwoo\"},{\"properties\":{\"supportTicketId\":\"cbonqvpk\",\"description\":\"lrxnjeaseiphe\",\"problemClassificationId\":\"f\",\"problemClassificationDisplayName\":\"keyyi\",\"severity\":\"minimal\",\"enrollmentId\":\"bdlwtgrhpdjpj\",\"require24X7Response\":true,\"advancedDiagnosticConsent\":\"Yes\",\"problemScopingQuestions\":\"azjpqyegualhbxxh\",\"supportPlanId\":\"jzzvdud\",\"contactDetails\":{\"firstName\":\"wdslfhotwmcy\",\"lastName\":\"pwlbjnpg\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"ftadehxnltyfs\",\"additionalEmailAddresses\":[\"usue\",\"nzwdejba\"],\"phoneNumber\":\"rxzdmohctbqvudwx\",\"preferredTimeZone\":\"ndnvo\",\"country\":\"gujjugwdkcglh\",\"preferredSupportLanguage\":\"lazjdyggdtjixhbk\"},\"serviceLevelAgreement\":{\"startTime\":\"2020-12-23T07:48:17Z\",\"expirationTime\":\"2021-02-13T10:06:52Z\",\"slaMinutes\":363488888},\"supportEngineer\":{\"emailAddress\":\"enevfyexfwhybci\"},\"supportPlanType\":\"yvdcsitynnaa\",\"supportPlanDisplayName\":\"ectehf\",\"title\":\"qsc\",\"problemStartTime\":\"2021-08-12T09:29:36Z\",\"serviceId\":\"pvhez\",\"serviceDisplayName\":\"gqhcjrefovg\",\"status\":\"qsl\",\"createdDate\":\"2021-08-20T18:32:02Z\",\"modifiedDate\":\"2021-05-05T15:09:29Z\",\"fileWorkspaceName\":\"qjpkcattpngjcrc\",\"isTemporaryTicket\":\"No\",\"technicalTicketDetails\":{\"resourceId\":\"jh\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"ajvnysounqe\",\"quotaChangeRequestVersion\":\"noae\",\"quotaChangeRequests\":[{},{},{},{}]},\"secondaryConsent\":[{\"userConsent\":\"Yes\",\"type\":\"rpmopjmc\"},{\"userConsent\":\"Yes\",\"type\":\"okth\"},{\"userConsent\":\"Yes\",\"type\":\"aodsfcpkv\"},{\"userConsent\":\"Yes\",\"type\":\"uozmyzydagfua\"}]},\"id\":\"bezy\",\"name\":\"uokktwhrdxwz\",\"type\":\"wqsmbsur\"},{\"properties\":{\"supportTicketId\":\"imoryocfsfksym\",\"description\":\"dystkiiuxhqyud\",\"problemClassificationId\":\"o\",\"problemClassificationDisplayName\":\"qn\",\"severity\":\"highestcriticalimpact\",\"enrollmentId\":\"czvyifq\",\"require24X7Response\":false,\"advancedDiagnosticConsent\":\"No\",\"problemScopingQuestions\":\"jsllrmv\",\"supportPlanId\":\"f\",\"contactDetails\":{\"firstName\":\"atkpnp\",\"lastName\":\"lexxbczwtru\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"qzbqjvsov\",\"additionalEmailAddresses\":[\"kacspkw\",\"hzdobpxjmflbvvnc\"],\"phoneNumber\":\"kcciwwzjuqkhr\",\"preferredTimeZone\":\"ajiwkuo\",\"country\":\"oskg\",\"preferredSupportLanguage\":\"sauuimj\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-06-29T03:13:35Z\",\"expirationTime\":\"2021-01-02T07:29:36Z\",\"slaMinutes\":1910171732},\"supportEngineer\":{\"emailAddress\":\"dyjrrfbyaosv\"},\"supportPlanType\":\"csonpclhoco\",\"supportPlanDisplayName\":\"lkevle\",\"title\":\"gz\",\"problemStartTime\":\"2021-09-05T06:09:57Z\",\"serviceId\":\"hfmvfaxkffe\",\"serviceDisplayName\":\"th\",\"status\":\"m\",\"createdDate\":\"2021-02-27T12:32:19Z\",\"modifiedDate\":\"2021-08-05T17:04:54Z\",\"fileWorkspaceName\":\"mzsb\",\"isTemporaryTicket\":\"No\",\"technicalTicketDetails\":{\"resourceId\":\"igrxwburvjxxjn\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"dptkoenkouk\",\"quotaChangeRequestVersion\":\"udwtiukbl\",\"quotaChangeRequests\":[{},{},{},{}]},\"secondaryConsent\":[{\"userConsent\":\"No\",\"type\":\"pazyxoegukg\"},{\"userConsent\":\"Yes\",\"type\":\"ucgygevqz\"},{\"userConsent\":\"Yes\",\"type\":\"mrbpizcdrqj\"},{\"userConsent\":\"Yes\",\"type\":\"dnfyhxdeoejzicwi\"}]},\"id\":\"sjttgzfbish\",\"name\":\"bkh\",\"type\":\"jdeyeamdpha\"}],\"nextLink\":\"lpbuxwgipwhonowk\"}")
- .toObject(SupportTicketsListResult.class);
- Assertions.assertEquals("qawrlyxwj", model.value().get(0).supportTicketId());
- Assertions.assertEquals("cpr", model.value().get(0).description());
- Assertions.assertEquals("nwbxgjvtbvpyssz", model.value().get(0).problemClassificationId());
- Assertions.assertEquals(SeverityLevel.HIGHESTCRITICALIMPACT, model.value().get(0).severity());
- Assertions.assertEquals("uouq", model.value().get(0).enrollmentId());
- Assertions.assertEquals(false, model.value().get(0).require24X7Response());
- Assertions.assertEquals(Consent.NO, model.value().get(0).advancedDiagnosticConsent());
- Assertions.assertEquals("wbnguitnwui", model.value().get(0).problemScopingQuestions());
- Assertions.assertEquals("a", model.value().get(0).supportPlanId());
- Assertions.assertEquals("x", model.value().get(0).contactDetails().firstName());
- Assertions.assertEquals("fizuckyf", model.value().get(0).contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL,
- model.value().get(0).contactDetails().preferredContactMethod());
- Assertions.assertEquals("rfidfvzwdz", model.value().get(0).contactDetails().primaryEmailAddress());
- Assertions.assertEquals("ymwisdkft", model.value().get(0).contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("xmnteiwaop", model.value().get(0).contactDetails().phoneNumber());
- Assertions.assertEquals("km", model.value().get(0).contactDetails().preferredTimeZone());
- Assertions.assertEquals("jcmmxdcufufsrp", model.value().get(0).contactDetails().country());
- Assertions.assertEquals("mzidnsezcxtb", model.value().get(0).contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("inpvswjdkirsoodq", model.value().get(0).title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-07-12T18:06:29Z"), model.value().get(0).problemStartTime());
- Assertions.assertEquals("rmnohj", model.value().get(0).serviceId());
- Assertions.assertEquals("cjxvsnbyxqab", model.value().get(0).fileWorkspaceName());
- Assertions.assertEquals("cyshurzafbljjgp", model.value().get(0).technicalTicketDetails().resourceId());
- Assertions.assertEquals("qcjm", model.value().get(0).quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("javbqidtqajz", model.value().get(0).quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals(UserConsent.YES, model.value().get(0).secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("krlkhbzhfepg", model.value().get(0).secondaryConsent().get(0).type());
- Assertions.assertEquals("lpbuxwgipwhonowk", model.nextLink());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- SupportTicketsListResult model = new SupportTicketsListResult()
- .withValue(Arrays.asList(
- new SupportTicketDetailsInner().withSupportTicketId("qawrlyxwj")
- .withDescription("cpr")
- .withProblemClassificationId("nwbxgjvtbvpyssz")
- .withSeverity(SeverityLevel.HIGHESTCRITICALIMPACT)
- .withEnrollmentId("uouq")
- .withRequire24X7Response(false)
- .withAdvancedDiagnosticConsent(Consent.NO)
- .withProblemScopingQuestions("wbnguitnwui")
- .withSupportPlanId("a")
- .withContactDetails(new ContactProfile().withFirstName("x")
- .withLastName("fizuckyf")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("rfidfvzwdz")
- .withAdditionalEmailAddresses(Arrays.asList("ymwisdkft"))
- .withPhoneNumber("xmnteiwaop")
- .withPreferredTimeZone("km")
- .withCountry("jcmmxdcufufsrp")
- .withPreferredSupportLanguage("mzidnsezcxtb"))
- .withServiceLevelAgreement(new ServiceLevelAgreement())
- .withSupportEngineer(new SupportEngineer())
- .withTitle("inpvswjdkirsoodq")
- .withProblemStartTime(OffsetDateTime.parse("2021-07-12T18:06:29Z"))
- .withServiceId("rmnohj")
- .withFileWorkspaceName("cjxvsnbyxqab")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId("cyshurzafbljjgp"))
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("qcjm")
- .withQuotaChangeRequestVersion("javbqidtqajz")
- .withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest())))
- .withSecondaryConsent(
- Arrays.asList(new SecondaryConsent().withUserConsent(UserConsent.YES).withType("krlkhbzhfepg"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("xzlocxscp"),
- new SecondaryConsent().withUserConsent(UserConsent.NO).withType("hhbcsglummajtjao"))),
- new SupportTicketDetailsInner().withSupportTicketId("ovmclwhijcoejct")
- .withDescription("zaqsqsycbkbfk")
- .withProblemClassificationId("ukdkexxppofmxa")
- .withSeverity(SeverityLevel.MINIMAL)
- .withEnrollmentId("exhd")
- .withRequire24X7Response(false)
- .withAdvancedDiagnosticConsent(Consent.YES)
- .withProblemScopingQuestions("eojnxqbzvddn")
- .withSupportPlanId("ndei")
- .withContactDetails(new ContactProfile().withFirstName("btwnpzaoqvuhrhcf")
- .withLastName("cyddglmjthjqk")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("yeicxmqciwqvhk")
- .withAdditionalEmailAddresses(Arrays.asList("uigdtopbobjog", "m", "w"))
- .withPhoneNumber("m")
- .withPreferredTimeZone("uhrzayvvt")
- .withCountry("gvdfgiotkftutq")
- .withPreferredSupportLanguage("ln"))
- .withServiceLevelAgreement(new ServiceLevelAgreement())
- .withSupportEngineer(new SupportEngineer())
- .withTitle("vqdra")
- .withProblemStartTime(OffsetDateTime.parse("2021-02-10T08:49:49Z"))
- .withServiceId("yb")
- .withFileWorkspaceName("zgpphrcgyncocpe")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId("coofsxlzev"))
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("qjqabcypmivkwl")
- .withQuotaChangeRequestVersion("vccfw")
- .withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest(), new QuotaChangeRequest())))
- .withSecondaryConsent(Arrays
- .asList(new SecondaryConsent().withUserConsent(UserConsent.YES).withType("onlebxetqgtzxdpn"))),
- new SupportTicketDetailsInner().withSupportTicketId("cbonqvpk")
- .withDescription("lrxnjeaseiphe")
- .withProblemClassificationId("f")
- .withSeverity(SeverityLevel.MINIMAL)
- .withEnrollmentId("bdlwtgrhpdjpj")
- .withRequire24X7Response(true)
- .withAdvancedDiagnosticConsent(Consent.YES)
- .withProblemScopingQuestions("azjpqyegualhbxxh")
- .withSupportPlanId("jzzvdud")
- .withContactDetails(new ContactProfile().withFirstName("wdslfhotwmcy")
- .withLastName("pwlbjnpg")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("ftadehxnltyfs")
- .withAdditionalEmailAddresses(Arrays.asList("usue", "nzwdejba"))
- .withPhoneNumber("rxzdmohctbqvudwx")
- .withPreferredTimeZone("ndnvo")
- .withCountry("gujjugwdkcglh")
- .withPreferredSupportLanguage("lazjdyggdtjixhbk"))
- .withServiceLevelAgreement(new ServiceLevelAgreement())
- .withSupportEngineer(new SupportEngineer())
- .withTitle("qsc")
- .withProblemStartTime(OffsetDateTime.parse("2021-08-12T09:29:36Z"))
- .withServiceId("pvhez")
- .withFileWorkspaceName("qjpkcattpngjcrc")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId("jh"))
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("ajvnysounqe")
- .withQuotaChangeRequestVersion("noae")
- .withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest(), new QuotaChangeRequest(),
- new QuotaChangeRequest(), new QuotaChangeRequest())))
- .withSecondaryConsent(
- Arrays.asList(new SecondaryConsent().withUserConsent(UserConsent.YES).withType("rpmopjmc"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("okth"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("aodsfcpkv"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("uozmyzydagfua"))),
- new SupportTicketDetailsInner().withSupportTicketId("imoryocfsfksym")
- .withDescription("dystkiiuxhqyud")
- .withProblemClassificationId("o")
- .withSeverity(SeverityLevel.HIGHESTCRITICALIMPACT)
- .withEnrollmentId("czvyifq")
- .withRequire24X7Response(false)
- .withAdvancedDiagnosticConsent(Consent.NO)
- .withProblemScopingQuestions("jsllrmv")
- .withSupportPlanId("f")
- .withContactDetails(new ContactProfile().withFirstName("atkpnp")
- .withLastName("lexxbczwtru")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("qzbqjvsov")
- .withAdditionalEmailAddresses(Arrays.asList("kacspkw", "hzdobpxjmflbvvnc"))
- .withPhoneNumber("kcciwwzjuqkhr")
- .withPreferredTimeZone("ajiwkuo")
- .withCountry("oskg")
- .withPreferredSupportLanguage("sauuimj"))
- .withServiceLevelAgreement(new ServiceLevelAgreement())
- .withSupportEngineer(new SupportEngineer())
- .withTitle("gz")
- .withProblemStartTime(OffsetDateTime.parse("2021-09-05T06:09:57Z"))
- .withServiceId("hfmvfaxkffe")
- .withFileWorkspaceName("mzsb")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId("igrxwburvjxxjn"))
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("dptkoenkouk")
- .withQuotaChangeRequestVersion("udwtiukbl")
- .withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest(), new QuotaChangeRequest(),
- new QuotaChangeRequest(), new QuotaChangeRequest())))
- .withSecondaryConsent(
- Arrays.asList(new SecondaryConsent().withUserConsent(UserConsent.NO).withType("pazyxoegukg"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("ucgygevqz"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("mrbpizcdrqj"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("dnfyhxdeoejzicwi")))))
- .withNextLink("lpbuxwgipwhonowk");
- model = BinaryData.fromObject(model).toObject(SupportTicketsListResult.class);
- Assertions.assertEquals("qawrlyxwj", model.value().get(0).supportTicketId());
- Assertions.assertEquals("cpr", model.value().get(0).description());
- Assertions.assertEquals("nwbxgjvtbvpyssz", model.value().get(0).problemClassificationId());
- Assertions.assertEquals(SeverityLevel.HIGHESTCRITICALIMPACT, model.value().get(0).severity());
- Assertions.assertEquals("uouq", model.value().get(0).enrollmentId());
- Assertions.assertEquals(false, model.value().get(0).require24X7Response());
- Assertions.assertEquals(Consent.NO, model.value().get(0).advancedDiagnosticConsent());
- Assertions.assertEquals("wbnguitnwui", model.value().get(0).problemScopingQuestions());
- Assertions.assertEquals("a", model.value().get(0).supportPlanId());
- Assertions.assertEquals("x", model.value().get(0).contactDetails().firstName());
- Assertions.assertEquals("fizuckyf", model.value().get(0).contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL,
- model.value().get(0).contactDetails().preferredContactMethod());
- Assertions.assertEquals("rfidfvzwdz", model.value().get(0).contactDetails().primaryEmailAddress());
- Assertions.assertEquals("ymwisdkft", model.value().get(0).contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("xmnteiwaop", model.value().get(0).contactDetails().phoneNumber());
- Assertions.assertEquals("km", model.value().get(0).contactDetails().preferredTimeZone());
- Assertions.assertEquals("jcmmxdcufufsrp", model.value().get(0).contactDetails().country());
- Assertions.assertEquals("mzidnsezcxtb", model.value().get(0).contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("inpvswjdkirsoodq", model.value().get(0).title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-07-12T18:06:29Z"), model.value().get(0).problemStartTime());
- Assertions.assertEquals("rmnohj", model.value().get(0).serviceId());
- Assertions.assertEquals("cjxvsnbyxqab", model.value().get(0).fileWorkspaceName());
- Assertions.assertEquals("cyshurzafbljjgp", model.value().get(0).technicalTicketDetails().resourceId());
- Assertions.assertEquals("qcjm", model.value().get(0).quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("javbqidtqajz", model.value().get(0).quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals(UserConsent.YES, model.value().get(0).secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("krlkhbzhfepg", model.value().get(0).secondaryConsent().get(0).type());
- Assertions.assertEquals("lpbuxwgipwhonowk", model.nextLink());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsCheckNameAvailabilityWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsCheckNameAvailabilityWithResponseMockTests.java
deleted file mode 100644
index 00ae701aee832..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsCheckNameAvailabilityWithResponseMockTests.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.CheckNameAvailabilityInput;
-import com.azure.resourcemanager.support.models.CheckNameAvailabilityOutput;
-import com.azure.resourcemanager.support.models.Type;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class SupportTicketsNoSubscriptionsCheckNameAvailabilityWithResponseMockTests {
- @Test
- public void testCheckNameAvailabilityWithResponse() throws Exception {
- String responseStr = "{\"nameAvailable\":false,\"reason\":\"zbzkdvncjabudurg\",\"message\":\"kmokz\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- CheckNameAvailabilityOutput response = manager.supportTicketsNoSubscriptions()
- .checkNameAvailabilityWithResponse(new CheckNameAvailabilityInput().withName("ystawfsdjpvkvp")
- .withType(Type.MICROSOFT_SUPPORT_COMMUNICATIONS), com.azure.core.util.Context.NONE)
- .getValue();
-
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsCreateMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsCreateMockTests.java
deleted file mode 100644
index 6cfecae02c8e3..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsCreateMockTests.java
+++ /dev/null
@@ -1,113 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.fluent.models.SupportTicketDetailsInner;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.ContactProfile;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.QuotaChangeRequest;
-import com.azure.resourcemanager.support.models.QuotaTicketDetails;
-import com.azure.resourcemanager.support.models.SecondaryConsent;
-import com.azure.resourcemanager.support.models.ServiceLevelAgreement;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.SupportEngineer;
-import com.azure.resourcemanager.support.models.SupportTicketDetails;
-import com.azure.resourcemanager.support.models.TechnicalTicketDetails;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class SupportTicketsNoSubscriptionsCreateMockTests {
- @Test
- public void testCreate() throws Exception {
- String responseStr
- = "{\"properties\":{\"supportTicketId\":\"hzlhplodqkdlww\",\"description\":\"fbumlkx\",\"problemClassificationId\":\"rqjfsmlm\",\"problemClassificationDisplayName\":\"xhwgfwsrtaw\",\"severity\":\"critical\",\"enrollmentId\":\"zbrhubskhudyg\",\"require24X7Response\":true,\"advancedDiagnosticConsent\":\"No\",\"problemScopingQuestions\":\"qfqjbvleorfm\",\"supportPlanId\":\"iqtqzfavyvnq\",\"contactDetails\":{\"firstName\":\"ybar\",\"lastName\":\"euayjkqabqgzsles\",\"preferredContactMethod\":\"phone\",\"primaryEmailAddress\":\"bhernntiew\",\"additionalEmailAddresses\":[\"vbquwr\"],\"phoneNumber\":\"hwagohbuffkmrqe\",\"preferredTimeZone\":\"vvhmxtdrj\",\"country\":\"utacoe\",\"preferredSupportLanguage\":\"jvewzcjznmwcp\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-11-24T12:45:46Z\",\"expirationTime\":\"2021-09-25T00:56:36Z\",\"slaMinutes\":1984994243},\"supportEngineer\":{\"emailAddress\":\"actkahzovajj\"},\"supportPlanType\":\"uxxpshne\",\"supportPlanDisplayName\":\"ulfgslqu\",\"title\":\"kwdlenrdsutujba\",\"problemStartTime\":\"2021-06-27T02:39:57Z\",\"serviceId\":\"uo\",\"serviceDisplayName\":\"inyflnorwmduvwp\",\"status\":\"vxwmygd\",\"createdDate\":\"2021-04-18T03:22:57Z\",\"modifiedDate\":\"2021-01-04T00:18:57Z\",\"fileWorkspaceName\":\"hiszepnnbjcrxgib\",\"isTemporaryTicket\":\"No\",\"technicalTicketDetails\":{\"resourceId\":\"onfo\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"orsukokwbqp\",\"quotaChangeRequestVersion\":\"lvnuuepzlrph\",\"quotaChangeRequests\":[{\"region\":\"l\",\"payload\":\"eyuqdunvmnnrwr\"},{\"region\":\"ork\",\"payload\":\"lywjhh\"},{\"region\":\"nhxmsi\",\"payload\":\"omi\"},{\"region\":\"xggdufi\",\"payload\":\"dieuzaofj\"}]},\"secondaryConsent\":[{\"userConsent\":\"No\",\"type\":\"ys\"}]},\"id\":\"gdotcubiipuipwo\",\"name\":\"onmacjekniz\",\"type\":\"hqvcimpevfgmblr\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SupportTicketDetails response = manager.supportTicketsNoSubscriptions()
- .create("cotmr", new SupportTicketDetailsInner().withSupportTicketId("irctymoxoftpipiw")
- .withDescription("czuhxacpqjlihh")
- .withProblemClassificationId("usps")
- .withSeverity(SeverityLevel.CRITICAL)
- .withEnrollmentId("rsre")
- .withRequire24X7Response(true)
- .withAdvancedDiagnosticConsent(Consent.NO)
- .withProblemScopingQuestions("risjnhnytxifqjz")
- .withSupportPlanId("mrhublwpc")
- .withContactDetails(new ContactProfile().withFirstName("sutrgjup")
- .withLastName("uutpwoqhih")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("qg")
- .withAdditionalEmailAddresses(Arrays.asList("nfqn", "cypsxjv", "oimwkslirc"))
- .withPhoneNumber("jxv")
- .withPreferredTimeZone("dfcea")
- .withCountry("vlhv")
- .withPreferredSupportLanguage("gdyftumrtwna"))
- .withServiceLevelAgreement(new ServiceLevelAgreement())
- .withSupportEngineer(new SupportEngineer())
- .withTitle("ydv")
- .withProblemStartTime(OffsetDateTime.parse("2021-08-31T10:25:05Z"))
- .withServiceId("ejd")
- .withFileWorkspaceName("novqfzge")
- .withTechnicalTicketDetails(new TechnicalTicketDetails().withResourceId("uljltduceamtmcz"))
- .withQuotaTicketDetails(new QuotaTicketDetails().withQuotaChangeRequestSubType("ejwcwwqiok")
- .withQuotaChangeRequestVersion("sx")
- .withQuotaChangeRequests(Arrays.asList(new QuotaChangeRequest().withRegion("sv").withPayload("jpr"),
- new QuotaChangeRequest().withRegion("wcfzqljyxgt").withPayload("heyd"))))
- .withSecondaryConsent(
- Arrays.asList(new SecondaryConsent().withUserConsent(UserConsent.NO).withType("kx"),
- new SecondaryConsent().withUserConsent(UserConsent.NO).withType("vbbxuripl"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("tbaxk"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("rc"))),
- com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("hzlhplodqkdlww", response.supportTicketId());
- Assertions.assertEquals("fbumlkx", response.description());
- Assertions.assertEquals("rqjfsmlm", response.problemClassificationId());
- Assertions.assertEquals(SeverityLevel.CRITICAL, response.severity());
- Assertions.assertEquals("zbrhubskhudyg", response.enrollmentId());
- Assertions.assertEquals(true, response.require24X7Response());
- Assertions.assertEquals(Consent.NO, response.advancedDiagnosticConsent());
- Assertions.assertEquals("qfqjbvleorfm", response.problemScopingQuestions());
- Assertions.assertEquals("iqtqzfavyvnq", response.supportPlanId());
- Assertions.assertEquals("ybar", response.contactDetails().firstName());
- Assertions.assertEquals("euayjkqabqgzsles", response.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.PHONE, response.contactDetails().preferredContactMethod());
- Assertions.assertEquals("bhernntiew", response.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("vbquwr", response.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("hwagohbuffkmrqe", response.contactDetails().phoneNumber());
- Assertions.assertEquals("vvhmxtdrj", response.contactDetails().preferredTimeZone());
- Assertions.assertEquals("utacoe", response.contactDetails().country());
- Assertions.assertEquals("jvewzcjznmwcp", response.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("kwdlenrdsutujba", response.title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-06-27T02:39:57Z"), response.problemStartTime());
- Assertions.assertEquals("uo", response.serviceId());
- Assertions.assertEquals("hiszepnnbjcrxgib", response.fileWorkspaceName());
- Assertions.assertEquals("onfo", response.technicalTicketDetails().resourceId());
- Assertions.assertEquals("orsukokwbqp", response.quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("lvnuuepzlrph", response.quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("l", response.quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("eyuqdunvmnnrwr", response.quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.NO, response.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("ys", response.secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsGetWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsGetWithResponseMockTests.java
deleted file mode 100644
index bb6be7bfd60f1..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsGetWithResponseMockTests.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.SupportTicketDetails;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class SupportTicketsNoSubscriptionsGetWithResponseMockTests {
- @Test
- public void testGetWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"supportTicketId\":\"pfcqdp\",\"description\":\"qxqvpsvuoymgc\",\"problemClassificationId\":\"elvezrypq\",\"problemClassificationDisplayName\":\"feo\",\"severity\":\"highestcriticalimpact\",\"enrollmentId\":\"qwkyhkobop\",\"require24X7Response\":true,\"advancedDiagnosticConsent\":\"Yes\",\"problemScopingQuestions\":\"owepbqpcrfkb\",\"supportPlanId\":\"csnjvcdwxlpqekft\",\"contactDetails\":{\"firstName\":\"khtj\",\"lastName\":\"y\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"gwfqatmt\",\"additionalEmailAddresses\":[\"mdvy\",\"gikdgsz\",\"w\"],\"phoneNumber\":\"irryuzhlh\",\"preferredTimeZone\":\"joqrvqqaatj\",\"country\":\"nrvgoupmfiibfgg\",\"preferredSupportLanguage\":\"ioolvrwxkvtkkgll\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-01-21T12:15:37Z\",\"expirationTime\":\"2021-08-08T04:13:54Z\",\"slaMinutes\":1394665734},\"supportEngineer\":{\"emailAddress\":\"blmhvkzuhb\"},\"supportPlanType\":\"vyhgs\",\"supportPlanDisplayName\":\"byrqufeg\",\"title\":\"uvwzfbnh\",\"problemStartTime\":\"2021-03-19T20:32:18Z\",\"serviceId\":\"tlpdn\",\"serviceDisplayName\":\"tvgbmhrixkwmy\",\"status\":\"ejvegrhbpnaixex\",\"createdDate\":\"2021-02-01T22:21:46Z\",\"modifiedDate\":\"2020-12-28T17:34:21Z\",\"fileWorkspaceName\":\"ax\",\"isTemporaryTicket\":\"No\",\"technicalTicketDetails\":{\"resourceId\":\"rrvqa\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"ghtpw\",\"quotaChangeRequestVersion\":\"nhyjsv\",\"quotaChangeRequests\":[{\"region\":\"z\",\"payload\":\"voowvr\"},{\"region\":\"t\",\"payload\":\"qp\"},{\"region\":\"ostronz\",\"payload\":\"hgfipnsxkmcw\"}]},\"secondaryConsent\":[{\"userConsent\":\"No\",\"type\":\"reafxtsgumhjg\"},{\"userConsent\":\"Yes\",\"type\":\"xwslolbqpv\"}]},\"id\":\"zlmvfelfktgp\",\"name\":\"crpw\",\"type\":\"xeznoi\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SupportTicketDetails response = manager.supportTicketsNoSubscriptions()
- .getWithResponse("semdwzrmu", com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("pfcqdp", response.supportTicketId());
- Assertions.assertEquals("qxqvpsvuoymgc", response.description());
- Assertions.assertEquals("elvezrypq", response.problemClassificationId());
- Assertions.assertEquals(SeverityLevel.HIGHESTCRITICALIMPACT, response.severity());
- Assertions.assertEquals("qwkyhkobop", response.enrollmentId());
- Assertions.assertEquals(true, response.require24X7Response());
- Assertions.assertEquals(Consent.YES, response.advancedDiagnosticConsent());
- Assertions.assertEquals("owepbqpcrfkb", response.problemScopingQuestions());
- Assertions.assertEquals("csnjvcdwxlpqekft", response.supportPlanId());
- Assertions.assertEquals("khtj", response.contactDetails().firstName());
- Assertions.assertEquals("y", response.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL, response.contactDetails().preferredContactMethod());
- Assertions.assertEquals("gwfqatmt", response.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("mdvy", response.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("irryuzhlh", response.contactDetails().phoneNumber());
- Assertions.assertEquals("joqrvqqaatj", response.contactDetails().preferredTimeZone());
- Assertions.assertEquals("nrvgoupmfiibfgg", response.contactDetails().country());
- Assertions.assertEquals("ioolvrwxkvtkkgll", response.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("uvwzfbnh", response.title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-03-19T20:32:18Z"), response.problemStartTime());
- Assertions.assertEquals("tlpdn", response.serviceId());
- Assertions.assertEquals("ax", response.fileWorkspaceName());
- Assertions.assertEquals("rrvqa", response.technicalTicketDetails().resourceId());
- Assertions.assertEquals("ghtpw", response.quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("nhyjsv", response.quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("z", response.quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("voowvr", response.quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.NO, response.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("reafxtsgumhjg", response.secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsListMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsListMockTests.java
deleted file mode 100644
index bf38054f5766a..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsListMockTests.java
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.SupportTicketDetails;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class SupportTicketsNoSubscriptionsListMockTests {
- @Test
- public void testList() throws Exception {
- String responseStr
- = "{\"value\":[{\"properties\":{\"supportTicketId\":\"fhmouwq\",\"description\":\"gzrf\",\"problemClassificationId\":\"eeyebi\",\"problemClassificationDisplayName\":\"kayuhqlbjbs\",\"severity\":\"critical\",\"enrollmentId\":\"qwrvtldgmfp\",\"require24X7Response\":true,\"advancedDiagnosticConsent\":\"Yes\",\"problemScopingQuestions\":\"paslthaqfxssmwu\",\"supportPlanId\":\"bdsrez\",\"contactDetails\":{\"firstName\":\"drhneuyow\",\"lastName\":\"kdw\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"i\",\"additionalEmailAddresses\":[\"ircgpikpz\"],\"phoneNumber\":\"ejzanlfz\",\"preferredTimeZone\":\"iavrm\",\"country\":\"zonokixrjqci\",\"preferredSupportLanguage\":\"gzpfrla\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-07-24T19:53:33Z\",\"expirationTime\":\"2021-05-24T12:41:33Z\",\"slaMinutes\":755855856},\"supportEngineer\":{\"emailAddress\":\"dfpwpjylwbtlhfls\"},\"supportPlanType\":\"dhszfjv\",\"supportPlanDisplayName\":\"gofel\",\"title\":\"a\",\"problemStartTime\":\"2021-09-13T20:46:53Z\",\"serviceId\":\"mqhldvrii\",\"serviceDisplayName\":\"jnalghf\",\"status\":\"tvsexsowuel\",\"createdDate\":\"2021-11-06T19:32:24Z\",\"modifiedDate\":\"2021-09-24T19:31:57Z\",\"fileWorkspaceName\":\"hxvrhmzkwpjg\",\"isTemporaryTicket\":\"No\",\"technicalTicketDetails\":{\"resourceId\":\"ghftqsxhqxujxuk\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"digrjguufzdmsyqt\",\"quotaChangeRequestVersion\":\"hwhbotzingamv\",\"quotaChangeRequests\":[{\"region\":\"szqzudphqamv\",\"payload\":\"fwynwcvtbvkay\"}]},\"secondaryConsent\":[{\"userConsent\":\"Yes\",\"type\":\"qiatkzwpcnp\"},{\"userConsent\":\"No\",\"type\":\"a\"},{\"userConsent\":\"Yes\",\"type\":\"v\"}]},\"id\":\"ccyajg\",\"name\":\"qfhwyg\",\"type\":\"lvdnkfx\"}]}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- PagedIterable response
- = manager.supportTicketsNoSubscriptions().list(1557744046, "jk", com.azure.core.util.Context.NONE);
-
- Assertions.assertEquals("fhmouwq", response.iterator().next().supportTicketId());
- Assertions.assertEquals("gzrf", response.iterator().next().description());
- Assertions.assertEquals("eeyebi", response.iterator().next().problemClassificationId());
- Assertions.assertEquals(SeverityLevel.CRITICAL, response.iterator().next().severity());
- Assertions.assertEquals("qwrvtldgmfp", response.iterator().next().enrollmentId());
- Assertions.assertEquals(true, response.iterator().next().require24X7Response());
- Assertions.assertEquals(Consent.YES, response.iterator().next().advancedDiagnosticConsent());
- Assertions.assertEquals("paslthaqfxssmwu", response.iterator().next().problemScopingQuestions());
- Assertions.assertEquals("bdsrez", response.iterator().next().supportPlanId());
- Assertions.assertEquals("drhneuyow", response.iterator().next().contactDetails().firstName());
- Assertions.assertEquals("kdw", response.iterator().next().contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL,
- response.iterator().next().contactDetails().preferredContactMethod());
- Assertions.assertEquals("i", response.iterator().next().contactDetails().primaryEmailAddress());
- Assertions.assertEquals("ircgpikpz",
- response.iterator().next().contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("ejzanlfz", response.iterator().next().contactDetails().phoneNumber());
- Assertions.assertEquals("iavrm", response.iterator().next().contactDetails().preferredTimeZone());
- Assertions.assertEquals("zonokixrjqci", response.iterator().next().contactDetails().country());
- Assertions.assertEquals("gzpfrla", response.iterator().next().contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("a", response.iterator().next().title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-09-13T20:46:53Z"),
- response.iterator().next().problemStartTime());
- Assertions.assertEquals("mqhldvrii", response.iterator().next().serviceId());
- Assertions.assertEquals("hxvrhmzkwpjg", response.iterator().next().fileWorkspaceName());
- Assertions.assertEquals("ghftqsxhqxujxuk", response.iterator().next().technicalTicketDetails().resourceId());
- Assertions.assertEquals("digrjguufzdmsyqt",
- response.iterator().next().quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("hwhbotzingamv",
- response.iterator().next().quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("szqzudphqamv",
- response.iterator().next().quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("fwynwcvtbvkay",
- response.iterator().next().quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.YES, response.iterator().next().secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("qiatkzwpcnp", response.iterator().next().secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsUpdateWithResponseMockTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsUpdateWithResponseMockTests.java
deleted file mode 100644
index e35488ac1fc3a..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/SupportTicketsNoSubscriptionsUpdateWithResponseMockTests.java
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.credential.AccessToken;
-import com.azure.core.http.HttpClient;
-import com.azure.core.management.AzureEnvironment;
-import com.azure.core.management.profile.AzureProfile;
-import com.azure.core.test.http.MockHttpResponse;
-import com.azure.resourcemanager.support.SupportManager;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.SecondaryConsent;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.Status;
-import com.azure.resourcemanager.support.models.SupportTicketDetails;
-import com.azure.resourcemanager.support.models.UpdateContactProfile;
-import com.azure.resourcemanager.support.models.UpdateSupportTicket;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.nio.charset.StandardCharsets;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import reactor.core.publisher.Mono;
-
-public final class SupportTicketsNoSubscriptionsUpdateWithResponseMockTests {
- @Test
- public void testUpdateWithResponse() throws Exception {
- String responseStr
- = "{\"properties\":{\"supportTicketId\":\"dscwxqupevzhf\",\"description\":\"totxhojujb\",\"problemClassificationId\":\"pelmcuvhixbjxyf\",\"problemClassificationDisplayName\":\"yl\",\"severity\":\"highestcriticalimpact\",\"enrollmentId\":\"o\",\"require24X7Response\":true,\"advancedDiagnosticConsent\":\"No\",\"problemScopingQuestions\":\"kiwkkbnujr\",\"supportPlanId\":\"vtylbfpncu\",\"contactDetails\":{\"firstName\":\"doiwi\",\"lastName\":\"thtywub\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"bihwqknfdnt\",\"additionalEmailAddresses\":[\"hrdgoihxumwcto\",\"dzjlu\",\"dfdlwggyts\",\"wtovvtgsein\"],\"phoneNumber\":\"iufxqknpir\",\"preferredTimeZone\":\"nepttwqmsni\",\"country\":\"fcdmqnrojlpijn\",\"preferredSupportLanguage\":\"rxfrddhc\"},\"serviceLevelAgreement\":{\"startTime\":\"2021-10-24T17:40:19Z\",\"expirationTime\":\"2021-08-13T20:41:57Z\",\"slaMinutes\":99900434},\"supportEngineer\":{\"emailAddress\":\"sxiftozq\"},\"supportPlanType\":\"hftwesgog\",\"supportPlanDisplayName\":\"honnxkrlgnyhmos\",\"title\":\"xkk\",\"problemStartTime\":\"2021-10-30T19:25:09Z\",\"serviceId\":\"rrghxjbdhqxvcxgf\",\"serviceDisplayName\":\"dsofbshrns\",\"status\":\"uswdv\",\"createdDate\":\"2021-07-28T13:53:22Z\",\"modifiedDate\":\"2021-02-22T05:56:13Z\",\"fileWorkspaceName\":\"nu\",\"isTemporaryTicket\":\"Yes\",\"technicalTicketDetails\":{\"resourceId\":\"tkfa\"},\"quotaTicketDetails\":{\"quotaChangeRequestSubType\":\"pqgik\",\"quotaChangeRequestVersion\":\"irtx\",\"quotaChangeRequests\":[{\"region\":\"zejntps\",\"payload\":\"gioilqu\"},{\"region\":\"ydxtqm\",\"payload\":\"ox\"},{\"region\":\"ggufhyaomtb\",\"payload\":\"havgrvk\"}]},\"secondaryConsent\":[{\"userConsent\":\"No\",\"type\":\"hpjbib\"},{\"userConsent\":\"No\",\"type\":\"xumvfcluyovw\"},{\"userConsent\":\"No\",\"type\":\"fezzxscyhwzdg\"},{\"userConsent\":\"Yes\",\"type\":\"bzbomvzzbtdcqvpn\"}]},\"id\":\"yujviylwdshfssn\",\"name\":\"bgye\",\"type\":\"rymsgaojfmw\"}";
-
- HttpClient httpClient
- = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
- SupportManager manager = SupportManager.configure()
- .withHttpClient(httpClient)
- .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
-
- SupportTicketDetails response = manager.supportTicketsNoSubscriptions()
- .updateWithResponse("brnjwmw",
- new UpdateSupportTicket().withSeverity(SeverityLevel.HIGHESTCRITICALIMPACT)
- .withStatus(Status.OPEN)
- .withContactDetails(new UpdateContactProfile().withFirstName("ejjoqkagfhsxtta")
- .withLastName("zxnfaaz")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("n")
- .withAdditionalEmailAddresses(Arrays.asList("kqjjlwuenvrkp", "ou"))
- .withPhoneNumber("bre")
- .withPreferredTimeZone("aays")
- .withCountry("ixqtn")
- .withPreferredSupportLanguage("tezlwff"))
- .withAdvancedDiagnosticConsent(Consent.NO)
- .withSecondaryConsent(
- Arrays.asList(new SecondaryConsent().withUserConsent(UserConsent.YES).withType("qmt"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("mmji"),
- new SecondaryConsent().withUserConsent(UserConsent.YES).withType("zphv"),
- new SecondaryConsent().withUserConsent(UserConsent.NO).withType("qncygupkvi"))),
- com.azure.core.util.Context.NONE)
- .getValue();
-
- Assertions.assertEquals("dscwxqupevzhf", response.supportTicketId());
- Assertions.assertEquals("totxhojujb", response.description());
- Assertions.assertEquals("pelmcuvhixbjxyf", response.problemClassificationId());
- Assertions.assertEquals(SeverityLevel.HIGHESTCRITICALIMPACT, response.severity());
- Assertions.assertEquals("o", response.enrollmentId());
- Assertions.assertEquals(true, response.require24X7Response());
- Assertions.assertEquals(Consent.NO, response.advancedDiagnosticConsent());
- Assertions.assertEquals("kiwkkbnujr", response.problemScopingQuestions());
- Assertions.assertEquals("vtylbfpncu", response.supportPlanId());
- Assertions.assertEquals("doiwi", response.contactDetails().firstName());
- Assertions.assertEquals("thtywub", response.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL, response.contactDetails().preferredContactMethod());
- Assertions.assertEquals("bihwqknfdnt", response.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("hrdgoihxumwcto", response.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("iufxqknpir", response.contactDetails().phoneNumber());
- Assertions.assertEquals("nepttwqmsni", response.contactDetails().preferredTimeZone());
- Assertions.assertEquals("fcdmqnrojlpijn", response.contactDetails().country());
- Assertions.assertEquals("rxfrddhc", response.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals("xkk", response.title());
- Assertions.assertEquals(OffsetDateTime.parse("2021-10-30T19:25:09Z"), response.problemStartTime());
- Assertions.assertEquals("rrghxjbdhqxvcxgf", response.serviceId());
- Assertions.assertEquals("nu", response.fileWorkspaceName());
- Assertions.assertEquals("tkfa", response.technicalTicketDetails().resourceId());
- Assertions.assertEquals("pqgik", response.quotaTicketDetails().quotaChangeRequestSubType());
- Assertions.assertEquals("irtx", response.quotaTicketDetails().quotaChangeRequestVersion());
- Assertions.assertEquals("zejntps", response.quotaTicketDetails().quotaChangeRequests().get(0).region());
- Assertions.assertEquals("gioilqu", response.quotaTicketDetails().quotaChangeRequests().get(0).payload());
- Assertions.assertEquals(UserConsent.NO, response.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("hpjbib", response.secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/TechnicalTicketDetailsTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/TechnicalTicketDetailsTests.java
deleted file mode 100644
index e481e9da077cb..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/TechnicalTicketDetailsTests.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.TechnicalTicketDetails;
-import org.junit.jupiter.api.Assertions;
-
-public final class TechnicalTicketDetailsTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- TechnicalTicketDetails model
- = BinaryData.fromString("{\"resourceId\":\"dhmdua\"}").toObject(TechnicalTicketDetails.class);
- Assertions.assertEquals("dhmdua", model.resourceId());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- TechnicalTicketDetails model = new TechnicalTicketDetails().withResourceId("dhmdua");
- model = BinaryData.fromObject(model).toObject(TechnicalTicketDetails.class);
- Assertions.assertEquals("dhmdua", model.resourceId());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/UpdateContactProfileTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/UpdateContactProfileTests.java
deleted file mode 100644
index 3a93b7c429ea5..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/UpdateContactProfileTests.java
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.UpdateContactProfile;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class UpdateContactProfileTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UpdateContactProfile model = BinaryData.fromString(
- "{\"firstName\":\"eualupjmkhf\",\"lastName\":\"bbcswsrtjri\",\"preferredContactMethod\":\"phone\",\"primaryEmailAddress\":\"pbewtghfgblcgwx\",\"additionalEmailAddresses\":[\"v\",\"hjkbegibtnmxieb\",\"waloayqcgwr\",\"zjuzgwyz\"],\"phoneNumber\":\"txon\",\"preferredTimeZone\":\"ts\",\"country\":\"jcbpwxqpsrknft\",\"preferredSupportLanguage\":\"vriuhprwmdyvx\"}")
- .toObject(UpdateContactProfile.class);
- Assertions.assertEquals("eualupjmkhf", model.firstName());
- Assertions.assertEquals("bbcswsrtjri", model.lastName());
- Assertions.assertEquals(PreferredContactMethod.PHONE, model.preferredContactMethod());
- Assertions.assertEquals("pbewtghfgblcgwx", model.primaryEmailAddress());
- Assertions.assertEquals("v", model.additionalEmailAddresses().get(0));
- Assertions.assertEquals("txon", model.phoneNumber());
- Assertions.assertEquals("ts", model.preferredTimeZone());
- Assertions.assertEquals("jcbpwxqpsrknft", model.country());
- Assertions.assertEquals("vriuhprwmdyvx", model.preferredSupportLanguage());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UpdateContactProfile model = new UpdateContactProfile().withFirstName("eualupjmkhf")
- .withLastName("bbcswsrtjri")
- .withPreferredContactMethod(PreferredContactMethod.PHONE)
- .withPrimaryEmailAddress("pbewtghfgblcgwx")
- .withAdditionalEmailAddresses(Arrays.asList("v", "hjkbegibtnmxieb", "waloayqcgwr", "zjuzgwyz"))
- .withPhoneNumber("txon")
- .withPreferredTimeZone("ts")
- .withCountry("jcbpwxqpsrknft")
- .withPreferredSupportLanguage("vriuhprwmdyvx");
- model = BinaryData.fromObject(model).toObject(UpdateContactProfile.class);
- Assertions.assertEquals("eualupjmkhf", model.firstName());
- Assertions.assertEquals("bbcswsrtjri", model.lastName());
- Assertions.assertEquals(PreferredContactMethod.PHONE, model.preferredContactMethod());
- Assertions.assertEquals("pbewtghfgblcgwx", model.primaryEmailAddress());
- Assertions.assertEquals("v", model.additionalEmailAddresses().get(0));
- Assertions.assertEquals("txon", model.phoneNumber());
- Assertions.assertEquals("ts", model.preferredTimeZone());
- Assertions.assertEquals("jcbpwxqpsrknft", model.country());
- Assertions.assertEquals("vriuhprwmdyvx", model.preferredSupportLanguage());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/UpdateSupportTicketTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/UpdateSupportTicketTests.java
deleted file mode 100644
index 042c765bbd811..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/UpdateSupportTicketTests.java
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.Consent;
-import com.azure.resourcemanager.support.models.PreferredContactMethod;
-import com.azure.resourcemanager.support.models.SecondaryConsent;
-import com.azure.resourcemanager.support.models.SeverityLevel;
-import com.azure.resourcemanager.support.models.Status;
-import com.azure.resourcemanager.support.models.UpdateContactProfile;
-import com.azure.resourcemanager.support.models.UpdateSupportTicket;
-import com.azure.resourcemanager.support.models.UserConsent;
-import java.util.Arrays;
-import org.junit.jupiter.api.Assertions;
-
-public final class UpdateSupportTicketTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UpdateSupportTicket model = BinaryData.fromString(
- "{\"severity\":\"highestcriticalimpact\",\"status\":\"open\",\"contactDetails\":{\"firstName\":\"ooxdjebwpuc\",\"lastName\":\"fvovbvmeuecivy\",\"preferredContactMethod\":\"email\",\"primaryEmailAddress\":\"uojgj\",\"additionalEmailAddresses\":[\"ueiotwmcdyt\",\"x\",\"it\",\"nrjawgqwg\"],\"phoneNumber\":\"ni\",\"preferredTimeZone\":\"x\",\"country\":\"kpycgklwndnhjd\",\"preferredSupportLanguage\":\"whvylw\"},\"advancedDiagnosticConsent\":\"No\",\"secondaryConsent\":[{\"userConsent\":\"Yes\",\"type\":\"znbmpowuwprzq\"}]}")
- .toObject(UpdateSupportTicket.class);
- Assertions.assertEquals(SeverityLevel.HIGHESTCRITICALIMPACT, model.severity());
- Assertions.assertEquals(Status.OPEN, model.status());
- Assertions.assertEquals("ooxdjebwpuc", model.contactDetails().firstName());
- Assertions.assertEquals("fvovbvmeuecivy", model.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL, model.contactDetails().preferredContactMethod());
- Assertions.assertEquals("uojgj", model.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("ueiotwmcdyt", model.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("ni", model.contactDetails().phoneNumber());
- Assertions.assertEquals("x", model.contactDetails().preferredTimeZone());
- Assertions.assertEquals("kpycgklwndnhjd", model.contactDetails().country());
- Assertions.assertEquals("whvylw", model.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals(Consent.NO, model.advancedDiagnosticConsent());
- Assertions.assertEquals(UserConsent.YES, model.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("znbmpowuwprzq", model.secondaryConsent().get(0).type());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UpdateSupportTicket model = new UpdateSupportTicket().withSeverity(SeverityLevel.HIGHESTCRITICALIMPACT)
- .withStatus(Status.OPEN)
- .withContactDetails(new UpdateContactProfile().withFirstName("ooxdjebwpuc")
- .withLastName("fvovbvmeuecivy")
- .withPreferredContactMethod(PreferredContactMethod.EMAIL)
- .withPrimaryEmailAddress("uojgj")
- .withAdditionalEmailAddresses(Arrays.asList("ueiotwmcdyt", "x", "it", "nrjawgqwg"))
- .withPhoneNumber("ni")
- .withPreferredTimeZone("x")
- .withCountry("kpycgklwndnhjd")
- .withPreferredSupportLanguage("whvylw"))
- .withAdvancedDiagnosticConsent(Consent.NO)
- .withSecondaryConsent(
- Arrays.asList(new SecondaryConsent().withUserConsent(UserConsent.YES).withType("znbmpowuwprzq")));
- model = BinaryData.fromObject(model).toObject(UpdateSupportTicket.class);
- Assertions.assertEquals(SeverityLevel.HIGHESTCRITICALIMPACT, model.severity());
- Assertions.assertEquals(Status.OPEN, model.status());
- Assertions.assertEquals("ooxdjebwpuc", model.contactDetails().firstName());
- Assertions.assertEquals("fvovbvmeuecivy", model.contactDetails().lastName());
- Assertions.assertEquals(PreferredContactMethod.EMAIL, model.contactDetails().preferredContactMethod());
- Assertions.assertEquals("uojgj", model.contactDetails().primaryEmailAddress());
- Assertions.assertEquals("ueiotwmcdyt", model.contactDetails().additionalEmailAddresses().get(0));
- Assertions.assertEquals("ni", model.contactDetails().phoneNumber());
- Assertions.assertEquals("x", model.contactDetails().preferredTimeZone());
- Assertions.assertEquals("kpycgklwndnhjd", model.contactDetails().country());
- Assertions.assertEquals("whvylw", model.contactDetails().preferredSupportLanguage());
- Assertions.assertEquals(Consent.NO, model.advancedDiagnosticConsent());
- Assertions.assertEquals(UserConsent.YES, model.secondaryConsent().get(0).userConsent());
- Assertions.assertEquals("znbmpowuwprzq", model.secondaryConsent().get(0).type());
- }
-}
diff --git a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/UploadFileTests.java b/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/UploadFileTests.java
deleted file mode 100644
index f477ffaa56d38..0000000000000
--- a/sdk/support/azure-resourcemanager-support/src/test/java/com/azure/resourcemanager/support/generated/UploadFileTests.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.support.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.support.models.UploadFile;
-import org.junit.jupiter.api.Assertions;
-
-public final class UploadFileTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- UploadFile model = BinaryData.fromString("{\"content\":\"wlrbqtkoievseo\",\"chunkIndex\":143823433}")
- .toObject(UploadFile.class);
- Assertions.assertEquals("wlrbqtkoievseo", model.content());
- Assertions.assertEquals(143823433, model.chunkIndex());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- UploadFile model = new UploadFile().withContent("wlrbqtkoievseo").withChunkIndex(143823433);
- model = BinaryData.fromObject(model).toObject(UploadFile.class);
- Assertions.assertEquals("wlrbqtkoievseo", model.content());
- Assertions.assertEquals(143823433, model.chunkIndex());
- }
-}