diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md index 9a88344116de..71e659572f0b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.9 (Unreleased) +## 1.0.0-beta.1 (2024-08-06) + +- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions extension resource. Package tag package-preview-2024-08. 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/appcontainers/azure-resourcemanager-appcontainers/README.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md index 7065b455a5af..29f620197dbb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md @@ -2,7 +2,7 @@ Azure Resource Manager ContainerAppsApi client library for Java. -This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions extension resource. Package tag package-preview-2024-02. 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 ContainerAppsApi Management SDK. Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions extension resource. Package tag package-preview-2024-08. 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-appcontainers - 1.0.0-beta.8 + 1.0.0-beta.9 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md index 43e8efcc1216..76ae42fe30c4 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md @@ -209,9 +209,11 @@ - [ListDetectors](#jobs_listdetectors) - [ListSecrets](#jobs_listsecrets) - [ProxyGet](#jobs_proxyget) +- [Resume](#jobs_resume) - [Start](#jobs_start) - [StopExecution](#jobs_stopexecution) - [StopMultipleExecutions](#jobs_stopmultipleexecutions) +- [Suspend](#jobs_suspend) - [Update](#jobs_update) ## JobsExecutions @@ -313,7 +315,7 @@ import java.util.Arrays; public final class AppResiliencyCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_CreateOrUpdate + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_CreateOrUpdate * .json */ /** @@ -357,7 +359,7 @@ public final class AppResiliencyCreateOrUpdateSamples { public final class AppResiliencyDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Delete.json */ /** * Sample code: Delete App Resiliency. @@ -380,7 +382,7 @@ public final class AppResiliencyDeleteSamples { public final class AppResiliencyGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Get.json */ /** * Sample code: Get App Resiliency. @@ -403,7 +405,7 @@ public final class AppResiliencyGetSamples { public final class AppResiliencyListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_List.json */ /** * Sample code: List App Resiliency. @@ -428,7 +430,7 @@ import com.azure.resourcemanager.appcontainers.models.TimeoutPolicy; public final class AppResiliencyUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Patch.json */ /** * Sample code: Update App Resiliency. @@ -454,7 +456,7 @@ public final class AppResiliencyUpdateSamples { */ public final class AvailableWorkloadProfilesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * AvailableWorkloadProfiles_Get.json */ /** @@ -477,7 +479,7 @@ public final class AvailableWorkloadProfilesGetSamples { public final class BillingMetersGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/BillingMeters_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/BillingMeters_Get.json */ /** * Sample code: BillingMeters_Get. @@ -499,7 +501,7 @@ public final class BillingMetersGetSamples { public final class BuildAuthTokenListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_ListAuthToken.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListAuthToken.json */ /** * Sample code: Get Build Auth Token. @@ -529,7 +531,7 @@ import java.util.Map; public final class BuildersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_CreateOrUpdate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_CreateOrUpdate.json */ /** * Sample code: Builders_CreateOrUpdate_0. @@ -583,7 +585,7 @@ public final class BuildersCreateOrUpdateSamples { public final class BuildersDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Delete.json */ /** * Sample code: Builders_Delete_0. @@ -605,7 +607,7 @@ public final class BuildersDeleteSamples { public final class BuildersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Get.json */ /** * Sample code: Builders_Get_0. @@ -627,7 +629,7 @@ public final class BuildersGetByResourceGroupSamples { public final class BuildersListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_ListBySubscription. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListBySubscription. * json */ /** @@ -651,7 +653,7 @@ public final class BuildersListSamples { public final class BuildersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_ListByResourceGroup + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListByResourceGroup * .json */ /** @@ -679,7 +681,7 @@ import java.util.Map; public final class BuildersUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Update.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Update.json */ /** * Sample code: Builders_Update_0. @@ -723,7 +725,7 @@ import java.util.Arrays; public final class BuildsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_CreateOrUpdate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_CreateOrUpdate.json */ /** * Sample code: Builds_CreateOrUpdate_WithConfig. @@ -757,7 +759,7 @@ public final class BuildsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Builds_CreateOrUpdate_NoConfig.json */ /** @@ -781,7 +783,7 @@ public final class BuildsCreateOrUpdateSamples { public final class BuildsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Delete.json */ /** * Sample code: Builds_Delete_0. @@ -803,7 +805,7 @@ public final class BuildsDeleteSamples { public final class BuildsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Get.json */ /** * Sample code: Builds_Get_0. @@ -825,7 +827,7 @@ public final class BuildsGetSamples { public final class BuildsByBuilderResourceListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_ListByBuilderResource + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListByBuilderResource * .json */ /** @@ -853,7 +855,7 @@ import com.azure.resourcemanager.appcontainers.models.CertificateType; */ public final class CertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Certificate_CreateOrUpdate_FromKeyVault.json */ /** @@ -876,7 +878,7 @@ public final class CertificatesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_CreateOrUpdate. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_CreateOrUpdate. * json */ /** @@ -906,7 +908,7 @@ public final class CertificatesCreateOrUpdateSamples { public final class CertificatesDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Delete.json */ /** * Sample code: Delete Certificate. @@ -930,7 +932,7 @@ public final class CertificatesDeleteSamples { public final class CertificatesGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Get.json */ /** * Sample code: Get Certificate. @@ -953,7 +955,7 @@ public final class CertificatesGetSamples { */ public final class CertificatesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Certificates_ListByManagedEnvironment.json */ /** @@ -981,7 +983,7 @@ import java.util.Map; public final class CertificatesUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificates_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificates_Patch.json */ /** * Sample code: Patch Certificate. @@ -1019,7 +1021,7 @@ import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReque */ public final class ConnectedEnvironmentsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificates_CheckNameAvailability.json */ /** @@ -1048,7 +1050,7 @@ import com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration; */ public final class ConnectedEnvironmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironments_CreateOrUpdate.json */ /** @@ -1081,7 +1083,7 @@ public final class ConnectedEnvironmentsCreateOrUpdateSamples { public final class ConnectedEnvironmentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Delete + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Delete * .json */ /** @@ -1105,7 +1107,7 @@ public final class ConnectedEnvironmentsDeleteSamples { public final class ConnectedEnvironmentsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Get. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Get. * json */ /** @@ -1129,7 +1131,7 @@ public final class ConnectedEnvironmentsGetByResourceGroupSamples { */ public final class ConnectedEnvironmentsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironments_ListBySubscription.json */ /** @@ -1152,7 +1154,7 @@ public final class ConnectedEnvironmentsListSamples { */ public final class ConnectedEnvironmentsListByResourceGroupSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironments_ListByResourceGroup.json */ /** @@ -1176,7 +1178,7 @@ public final class ConnectedEnvironmentsListByResourceGroupSamples { public final class ConnectedEnvironmentsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Patch. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Patch. * json */ /** @@ -1201,7 +1203,7 @@ import com.azure.resourcemanager.appcontainers.models.CertificateProperties; */ public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificate_CreateOrUpdate.json */ /** @@ -1230,7 +1232,7 @@ public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples { */ public final class ConnectedEnvironmentsCertificatesDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificate_Delete.json */ /** @@ -1254,7 +1256,7 @@ public final class ConnectedEnvironmentsCertificatesDeleteSamples { */ public final class ConnectedEnvironmentsCertificatesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificate_Get.json */ /** @@ -1278,7 +1280,7 @@ public final class ConnectedEnvironmentsCertificatesGetSamples { */ public final class ConnectedEnvironmentsCertificatesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json */ /** @@ -1306,7 +1308,7 @@ import java.util.Map; */ public final class ConnectedEnvironmentsCertificatesUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificates_Patch.json */ /** @@ -1350,7 +1352,7 @@ import java.util.Arrays; */ public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json */ /** @@ -1390,7 +1392,7 @@ public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples { */ public final class ConnectedEnvironmentsDaprComponentsDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_Delete.json */ /** @@ -1413,7 +1415,7 @@ public final class ConnectedEnvironmentsDaprComponentsDeleteSamples { */ public final class ConnectedEnvironmentsDaprComponentsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_Get.json */ /** @@ -1436,7 +1438,7 @@ public final class ConnectedEnvironmentsDaprComponentsGetSamples { */ public final class ConnectedEnvironmentsDaprComponentsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_List.json */ /** @@ -1459,7 +1461,7 @@ public final class ConnectedEnvironmentsDaprComponentsListSamples { */ public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_ListSecrets.json */ /** @@ -1487,7 +1489,7 @@ import com.azure.resourcemanager.appcontainers.models.ConnectedEnvironmentStorag */ public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsStorages_CreateOrUpdate.json */ /** @@ -1518,7 +1520,7 @@ public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples { */ public final class ConnectedEnvironmentsStoragesDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsStorages_Delete.json */ /** @@ -1542,7 +1544,7 @@ public final class ConnectedEnvironmentsStoragesDeleteSamples { */ public final class ConnectedEnvironmentsStoragesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsStorages_Get.json */ /** @@ -1566,7 +1568,7 @@ public final class ConnectedEnvironmentsStoragesGetSamples { */ public final class ConnectedEnvironmentsStoragesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsStorages_List.json */ /** @@ -1648,7 +1650,7 @@ import java.util.Map; */ public final class ContainerAppsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_SourceToCloudApp_CreateOrUpdate.json */ /** @@ -1766,7 +1768,7 @@ public final class ContainerAppsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_CreateOrUpdate_ConnectedEnvironment.json */ /** @@ -1868,7 +1870,7 @@ public final class ContainerAppsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_CreateOrUpdate * .json */ /** @@ -2012,7 +2014,7 @@ public final class ContainerAppsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_TcpApp_CreateOrUpdate.json */ /** @@ -2049,7 +2051,7 @@ public final class ContainerAppsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_Kind_CreateOrUpdate.json */ /** @@ -2078,7 +2080,7 @@ public final class ContainerAppsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_ManagedBy_CreateOrUpdate.json */ /** @@ -2139,7 +2141,7 @@ public final class ContainerAppsCreateOrUpdateSamples { public final class ContainerAppsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Delete.json */ /** * Sample code: Delete Container App. @@ -2161,7 +2163,7 @@ public final class ContainerAppsDeleteSamples { public final class ContainerAppsGetAuthTokenSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_GetAuthToken. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_GetAuthToken. * json */ /** @@ -2185,7 +2187,7 @@ public final class ContainerAppsGetAuthTokenSamples { public final class ContainerAppsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Get.json */ /** * Sample code: Get Container App. @@ -2207,7 +2209,7 @@ public final class ContainerAppsGetByResourceGroupSamples { */ public final class ContainerAppsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_ListBySubscription.json */ /** @@ -2230,7 +2232,7 @@ public final class ContainerAppsListSamples { */ public final class ContainerAppsListByResourceGroupSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_ListByResourceGroup.json */ /** @@ -2253,7 +2255,7 @@ public final class ContainerAppsListByResourceGroupSamples { */ public final class ContainerAppsListCustomHostnameAnalysisSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_ListCustomHostNameAnalysis.json */ /** @@ -2278,7 +2280,7 @@ public final class ContainerAppsListCustomHostnameAnalysisSamples { public final class ContainerAppsListSecretsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListSecrets. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_ListSecrets. * json */ /** @@ -2302,7 +2304,7 @@ public final class ContainerAppsListSecretsSamples { public final class ContainerAppsStartSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Start.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Start.json */ /** * Sample code: Start Container App. @@ -2324,7 +2326,7 @@ public final class ContainerAppsStartSamples { public final class ContainerAppsStopSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Stop.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Stop.json */ /** * Sample code: Stop Container App. @@ -2383,7 +2385,7 @@ import java.util.Map; public final class ContainerAppsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Patch.json */ /** * Sample code: Patch Container App. @@ -2502,7 +2504,7 @@ import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActio public final class ContainerAppsAuthConfigsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_CreateOrUpdate. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_CreateOrUpdate. * json */ /** @@ -2537,7 +2539,7 @@ public final class ContainerAppsAuthConfigsCreateOrUpdateSamples { public final class ContainerAppsAuthConfigsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Delete.json */ /** * Sample code: Delete Container App AuthConfig. @@ -2561,7 +2563,7 @@ public final class ContainerAppsAuthConfigsDeleteSamples { public final class ContainerAppsAuthConfigsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Get.json */ /** * Sample code: Get Container App's AuthConfig. @@ -2585,7 +2587,7 @@ public final class ContainerAppsAuthConfigsGetSamples { public final class ContainerAppsAuthConfigsListByContainerAppSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_ListByContainer. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_ListByContainer. * json */ /** @@ -2610,7 +2612,7 @@ public final class ContainerAppsAuthConfigsListByContainerAppSamples { public final class ContainerAppsBuildsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsBuilds_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Delete. * json */ /** @@ -2634,7 +2636,7 @@ public final class ContainerAppsBuildsDeleteSamples { public final class ContainerAppsBuildsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsBuilds_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Get.json */ /** * Sample code: ContainerAppsBuilds_Get_0. @@ -2656,7 +2658,7 @@ public final class ContainerAppsBuildsGetSamples { */ public final class ContainerAppsBuildsByContainerAppListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerAppsBuilds_ListByContainerApp.json */ /** @@ -2680,7 +2682,7 @@ public final class ContainerAppsBuildsByContainerAppListSamples { public final class ContainerAppsDiagnosticsGetDetectorSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsDiagnostics_Get + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsDiagnostics_Get * .json */ /** @@ -2706,7 +2708,7 @@ public final class ContainerAppsDiagnosticsGetDetectorSamples { public final class ContainerAppsDiagnosticsGetRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Get.json */ /** * Sample code: Get Container App's revision. @@ -2731,7 +2733,7 @@ public final class ContainerAppsDiagnosticsGetRevisionSamples { public final class ContainerAppsDiagnosticsGetRootSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Get.json */ /** * Sample code: Get Container App. @@ -2753,7 +2755,7 @@ public final class ContainerAppsDiagnosticsGetRootSamples { */ public final class ContainerAppsDiagnosticsListDetectorsSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerAppsDiagnostics_List.json */ /** @@ -2778,7 +2780,7 @@ public final class ContainerAppsDiagnosticsListDetectorsSamples { public final class ContainerAppsDiagnosticsListRevisionsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_List.json */ /** * Sample code: List Container App's revisions. @@ -2802,7 +2804,7 @@ public final class ContainerAppsDiagnosticsListRevisionsSamples { public final class ContainerAppsPatchesApplySamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Apply. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Apply. * json */ /** @@ -2826,7 +2828,7 @@ public final class ContainerAppsPatchesApplySamples { public final class ContainerAppsPatchesDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Delete. * json */ /** @@ -2850,7 +2852,7 @@ public final class ContainerAppsPatchesDeleteSamples { public final class ContainerAppsPatchesGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Get. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Get. * json */ /** @@ -2874,7 +2876,7 @@ public final class ContainerAppsPatchesGetSamples { */ public final class ContainerAppsPatchesListByContainerAppSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerAppsPatches_ListByContainerApp.json */ /** @@ -2899,7 +2901,7 @@ import com.azure.resourcemanager.appcontainers.models.PatchSkipConfig; */ public final class ContainerAppsPatchesSkipConfigureSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerAppsPatches_Skip_Configure.json */ /** @@ -2925,7 +2927,7 @@ public final class ContainerAppsPatchesSkipConfigureSamples { public final class ContainerAppsRevisionReplicasGetReplicaSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Replicas_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_Get.json */ /** * Sample code: Get Container App's revision replica. @@ -2950,7 +2952,7 @@ public final class ContainerAppsRevisionReplicasGetReplicaSamples { public final class ContainerAppsRevisionReplicasListReplicasSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Replicas_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_List.json */ /** * Sample code: List Container App's replicas. @@ -2974,7 +2976,7 @@ public final class ContainerAppsRevisionReplicasListReplicasSamples { public final class ContainerAppsRevisionsActivateRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Activate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Activate.json */ /** * Sample code: Activate Container App's revision. @@ -2999,7 +3001,7 @@ public final class ContainerAppsRevisionsActivateRevisionSamples { public final class ContainerAppsRevisionsDeactivateRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Deactivate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Deactivate.json */ /** * Sample code: Deactivate Container App's revision. @@ -3024,7 +3026,7 @@ public final class ContainerAppsRevisionsDeactivateRevisionSamples { public final class ContainerAppsRevisionsGetRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Get.json */ /** * Sample code: Get Container App's revision. @@ -3049,7 +3051,7 @@ public final class ContainerAppsRevisionsGetRevisionSamples { public final class ContainerAppsRevisionsListRevisionsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_List.json */ /** * Sample code: List Container App's revisions. @@ -3073,7 +3075,7 @@ public final class ContainerAppsRevisionsListRevisionsSamples { public final class ContainerAppsRevisionsRestartRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Restart.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Restart.json */ /** * Sample code: Restart Container App's revision. @@ -3111,7 +3113,7 @@ import java.util.Arrays; public final class ContainerAppsSessionPoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_CreateOrUpdate. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_CreateOrUpdate. * json */ /** @@ -3156,7 +3158,7 @@ public final class ContainerAppsSessionPoolsCreateOrUpdateSamples { public final class ContainerAppsSessionPoolsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Delete.json */ /** * Sample code: Delete Session Pool. @@ -3178,7 +3180,7 @@ public final class ContainerAppsSessionPoolsDeleteSamples { public final class ContainerAppsSessionPoolsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Get.json */ /** * Sample code: Get Session Pool. @@ -3200,7 +3202,7 @@ public final class ContainerAppsSessionPoolsGetByResourceGroupSamples { */ public final class ContainerAppsSessionPoolsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * SessionPools_ListBySubscription.json */ /** @@ -3223,7 +3225,7 @@ public final class ContainerAppsSessionPoolsListSamples { */ public final class ContainerAppsSessionPoolsListByResourceGroupSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * SessionPools_ListByResourceGroup.json */ /** @@ -3259,7 +3261,7 @@ import java.util.Arrays; public final class ContainerAppsSessionPoolsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Patch.json */ /** * Sample code: Update Session Pool. @@ -3303,7 +3305,7 @@ import java.util.Arrays; */ public final class ContainerAppsSourceControlsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * SourceControls_CreateOrUpdate.json */ /** @@ -3332,6 +3334,7 @@ public final class ContainerAppsSourceControlsCreateOrUpdateSamples { .withBuildEnvironmentVariables( Arrays.asList(new EnvironmentVariable().withName("foo1").withValue("bar1"), new EnvironmentVariable().withName("foo2").withValue("bar2")))) + .withXMsGithubAuxiliary("githubaccesstoken") .create(); } } @@ -3346,7 +3349,7 @@ public final class ContainerAppsSourceControlsCreateOrUpdateSamples { public final class ContainerAppsSourceControlsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Delete.json */ /** * Sample code: Delete Container App SourceControl. @@ -3356,7 +3359,8 @@ public final class ContainerAppsSourceControlsDeleteSamples { public static void deleteContainerAppSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) { manager.containerAppsSourceControls() - .delete("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE); + .delete("workerapps-rg-xj", "testcanadacentral", "current", "githubaccesstoken", false, false, + com.azure.core.util.Context.NONE); } } ``` @@ -3370,7 +3374,7 @@ public final class ContainerAppsSourceControlsDeleteSamples { public final class ContainerAppsSourceControlsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Get.json */ /** * Sample code: Get Container App's SourceControl. @@ -3393,7 +3397,7 @@ public final class ContainerAppsSourceControlsGetSamples { */ public final class ContainerAppsSourceControlsListByContainerAppSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * SourceControls_ListByContainer.json */ /** @@ -3422,7 +3426,7 @@ import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPol */ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json */ /** @@ -3450,7 +3454,7 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicy_CreateOrUpdate_AllOptions.json */ /** @@ -3489,7 +3493,7 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json */ /** @@ -3525,7 +3529,7 @@ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples { */ public final class DaprComponentResiliencyPoliciesDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicies_Delete.json */ /** @@ -3550,7 +3554,7 @@ public final class DaprComponentResiliencyPoliciesDeleteSamples { */ public final class DaprComponentResiliencyPoliciesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicies_Get.json */ /** @@ -3575,7 +3579,7 @@ public final class DaprComponentResiliencyPoliciesGetSamples { */ public final class DaprComponentResiliencyPoliciesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicies_List.json */ /** @@ -3606,7 +3610,7 @@ import java.util.Arrays; */ public final class DaprComponentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponents_CreateOrUpdate_Secrets.json */ /** @@ -3637,7 +3641,7 @@ public final class DaprComponentsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponents_CreateOrUpdate_SecretStoreComponent.json */ /** @@ -3678,7 +3682,7 @@ public final class DaprComponentsCreateOrUpdateSamples { public final class DaprComponentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Delete.json */ /** * Sample code: Delete dapr component. @@ -3700,7 +3704,7 @@ public final class DaprComponentsDeleteSamples { */ public final class DaprComponentsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponents_Get_SecretStoreComponent.json */ /** @@ -3716,7 +3720,7 @@ public final class DaprComponentsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_Get_Secrets. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Get_Secrets. * json */ /** @@ -3741,7 +3745,7 @@ public final class DaprComponentsGetSamples { public final class DaprComponentsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_List.json */ /** * Sample code: List Dapr Components. @@ -3763,7 +3767,7 @@ public final class DaprComponentsListSamples { public final class DaprComponentsListSecretsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_ListSecrets. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_ListSecrets. * json */ /** @@ -3794,7 +3798,7 @@ import java.util.Map; */ public final class DaprSubscriptionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json */ /** @@ -3819,7 +3823,7 @@ public final class DaprSubscriptionsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_CreateOrUpdate_DefaultRoute.json */ /** @@ -3839,7 +3843,7 @@ public final class DaprSubscriptionsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json */ /** @@ -3885,7 +3889,7 @@ public final class DaprSubscriptionsCreateOrUpdateSamples { public final class DaprSubscriptionsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_Delete. * json */ /** @@ -3908,7 +3912,7 @@ public final class DaprSubscriptionsDeleteSamples { */ public final class DaprSubscriptionsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_Get_DefaultRoute.json */ /** @@ -3923,7 +3927,7 @@ public final class DaprSubscriptionsGetSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_Get_BulkSubscribeAndScopes.json */ /** @@ -3938,7 +3942,7 @@ public final class DaprSubscriptionsGetSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_Get_RouteRulesAndMetadata.json */ /** @@ -3963,7 +3967,7 @@ public final class DaprSubscriptionsGetSamples { public final class DaprSubscriptionsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_List.json */ /** * Sample code: List Dapr subscriptions. @@ -3989,7 +3993,7 @@ import java.util.Arrays; */ public final class DotNetComponentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_CreateOrUpdate.json */ /** @@ -4009,7 +4013,7 @@ public final class DotNetComponentsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_CreateOrUpdate_ServiceBind.json */ /** @@ -4042,7 +4046,7 @@ public final class DotNetComponentsCreateOrUpdateSamples { public final class DotNetComponentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Delete.json */ /** * Sample code: Delete .NET Component. @@ -4064,7 +4068,7 @@ public final class DotNetComponentsDeleteSamples { */ public final class DotNetComponentsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_Get_ServiceBind.json */ /** @@ -4080,7 +4084,7 @@ public final class DotNetComponentsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Get.json */ /** * Sample code: Get .NET Component. @@ -4103,7 +4107,7 @@ public final class DotNetComponentsGetSamples { public final class DotNetComponentsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_List.json */ /** * Sample code: List .NET Components. @@ -4115,7 +4119,7 @@ public final class DotNetComponentsListSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_List_ServiceBind.json */ /** @@ -4144,7 +4148,7 @@ import java.util.Arrays; */ public final class DotNetComponentsUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_Patch_ServiceBind.json */ /** @@ -4169,7 +4173,7 @@ public final class DotNetComponentsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Patch.json */ /** * Sample code: Patch .NET Component. @@ -4198,7 +4202,7 @@ public final class DotNetComponentsUpdateSamples { public final class FunctionsExtensionInvokeFunctionsHostSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/FunctionsExtension_Post.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/FunctionsExtension_Post.json */ /** * Sample code: Invoke Functions host using Functions Extension API. @@ -4218,6 +4222,7 @@ public final class FunctionsExtensionInvokeFunctionsHostSamples { ```java import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; +import com.azure.resourcemanager.appcontainers.models.JavaComponentPropertiesScale; import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent; import java.util.Arrays; @@ -4227,7 +4232,7 @@ import java.util.Arrays; */ public final class JavaComponentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_CreateOrUpdate_ServiceBind.json */ /** @@ -4245,6 +4250,7 @@ public final class JavaComponentsCreateOrUpdateSamples { .withValue("true"), new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval") .withValue("10000ms"))) + .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1)) .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat") .withServiceId( "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat")))) @@ -4252,7 +4258,7 @@ public final class JavaComponentsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_CreateOrUpdate.json */ /** @@ -4269,7 +4275,8 @@ public final class JavaComponentsCreateOrUpdateSamples { new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts") .withValue("true"), new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval") - .withValue("10000ms")))) + .withValue("10000ms"))) + .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1))) .create(); } } @@ -4284,7 +4291,7 @@ public final class JavaComponentsCreateOrUpdateSamples { public final class JavaComponentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Delete.json */ /** * Sample code: Delete Java Component. @@ -4307,7 +4314,7 @@ public final class JavaComponentsDeleteSamples { public final class JavaComponentsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Get.json */ /** * Sample code: Get Java Component. @@ -4320,7 +4327,7 @@ public final class JavaComponentsGetSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_Get_ServiceBind.json */ /** @@ -4345,7 +4352,7 @@ public final class JavaComponentsGetSamples { public final class JavaComponentsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_List.json */ /** * Sample code: List Java Components. @@ -4357,7 +4364,7 @@ public final class JavaComponentsListSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_List_ServiceBind.json */ /** @@ -4377,6 +4384,7 @@ public final class JavaComponentsListSamples { ```java import com.azure.resourcemanager.appcontainers.models.JavaComponent; import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; +import com.azure.resourcemanager.appcontainers.models.JavaComponentPropertiesScale; import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent; import java.util.Arrays; @@ -4387,7 +4395,7 @@ import java.util.Arrays; public final class JavaComponentsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Patch.json */ /** * Sample code: Patch Java Component. @@ -4403,12 +4411,13 @@ public final class JavaComponentsUpdateSamples { new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts") .withValue("true"), new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval") - .withValue("10000ms")))) + .withValue("10000ms"))) + .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1))) .apply(); } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_Patch_ServiceBind.json */ /** @@ -4427,6 +4436,7 @@ public final class JavaComponentsUpdateSamples { .withValue("true"), new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval") .withValue("10000ms"))) + .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1)) .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat") .withServiceId( "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat")))) @@ -4472,7 +4482,7 @@ import java.util.Map; */ public final class JobsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Job_CreateorUpdate_ConnectedEnvironment.json */ /** @@ -4518,7 +4528,7 @@ public final class JobsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Job_CreateorUpdate_EventTrigger.json */ /** @@ -4565,7 +4575,7 @@ public final class JobsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_CreateorUpdate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_CreateorUpdate.json */ /** * Sample code: Create or Update Container Apps Job. @@ -4645,7 +4655,7 @@ public final class JobsCreateOrUpdateSamples { public final class JobsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Delete.json */ /** * Sample code: Delete Container Apps Job. @@ -4667,7 +4677,7 @@ public final class JobsDeleteSamples { public final class JobsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Get.json */ /** * Sample code: Get Container Apps Job. @@ -4689,7 +4699,7 @@ public final class JobsGetByResourceGroupSamples { public final class JobsGetDetectorSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_GetDetector.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_GetDetector.json */ /** * Sample code: Get diagnostic data for a Container App Job. @@ -4714,7 +4724,7 @@ public final class JobsGetDetectorSamples { public final class JobsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Jobs_ListBySubscription.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListBySubscription.json */ /** * Sample code: List Container Apps Jobs by subscription. @@ -4737,7 +4747,7 @@ public final class JobsListSamples { public final class JobsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Jobs_ListByResourceGroup. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListByResourceGroup. * json */ /** @@ -4761,7 +4771,7 @@ public final class JobsListByResourceGroupSamples { public final class JobsListDetectorsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ListDetectors.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListDetectors.json */ /** * Sample code: Get the list of available diagnostic data for a Container App Job. @@ -4784,7 +4794,7 @@ public final class JobsListDetectorsSamples { public final class JobsListSecretsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ListSecrets.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListSecrets.json */ /** * Sample code: List Container Apps Job Secrets. @@ -4807,7 +4817,7 @@ public final class JobsListSecretsSamples { public final class JobsProxyGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ProxyGet.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ProxyGet.json */ /** * Sample code: Get Container App Job by name. @@ -4821,6 +4831,28 @@ public final class JobsProxyGetSamples { } ``` +### Jobs_Resume + +```java +/** + * Samples for Jobs Resume. + */ +public final class JobsResumeSamples { + /* + * x-ms-original-file: + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Resume.json + */ + /** + * Sample code: Resume Job. + * + * @param manager Entry point to ContainerAppsApiManager. + */ + public static void resumeJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) { + manager.jobs().resume("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE); + } +} +``` + ### Jobs_Start ```java @@ -4835,7 +4867,7 @@ import java.util.Arrays; public final class JobsStartSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Start.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Start.json */ /** * Sample code: Run a Container Apps Job. @@ -4867,7 +4899,7 @@ public final class JobsStartSamples { public final class JobsStopExecutionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Stop_Execution.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Execution.json */ /** * Sample code: Terminate a Container Apps Job. @@ -4890,7 +4922,7 @@ public final class JobsStopExecutionSamples { public final class JobsStopMultipleExecutionsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Stop_Multiple.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Multiple.json */ /** * Sample code: Terminate Multiple Container Apps Job. @@ -4904,6 +4936,28 @@ public final class JobsStopMultipleExecutionsSamples { } ``` +### Jobs_Suspend + +```java +/** + * Samples for Jobs Suspend. + */ +public final class JobsSuspendSamples { + /* + * x-ms-original-file: + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Suspend.json + */ + /** + * Sample code: Suspend Job. + * + * @param manager Entry point to ContainerAppsApiManager. + */ + public static void suspendJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) { + manager.jobs().suspend("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE); + } +} +``` + ### Jobs_Update ```java @@ -4928,7 +4982,7 @@ import java.util.Arrays; public final class JobsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Patch.json */ /** * Sample code: Patch Container Apps Job. @@ -4978,7 +5032,7 @@ public final class JobsUpdateSamples { public final class JobsExecutionsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Executions_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Executions_Get.json */ /** * Sample code: Get a Container Apps Job Executions. @@ -5005,7 +5059,7 @@ import java.io.IOException; public final class LogicAppsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_Create.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Create.json */ /** * Sample code: Create logic app extension. @@ -5033,7 +5087,7 @@ public final class LogicAppsCreateOrUpdateSamples { public final class LogicAppsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Delete.json */ /** * Sample code: Create logic app extension. @@ -5063,7 +5117,7 @@ import java.util.Arrays; */ public final class LogicAppsDeployWorkflowArtifactsSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * LogicApps_PostDeployWorkflowArtifacts.json */ /** @@ -5087,7 +5141,7 @@ public final class LogicAppsDeployWorkflowArtifactsSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * LogicApps_DeleteDeployWorkflowArtifacts.json */ /** @@ -5114,7 +5168,7 @@ public final class LogicAppsDeployWorkflowArtifactsSamples { public final class LogicAppsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Get.json */ /** * Sample code: Get logic app extension by name. @@ -5138,7 +5192,7 @@ public final class LogicAppsGetSamples { public final class LogicAppsGetWorkflowSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_GetWorkflow.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_GetWorkflow.json */ /** * Sample code: GET a workflow. @@ -5164,7 +5218,7 @@ import com.azure.resourcemanager.appcontainers.models.LogicAppsProxyMethod; public final class LogicAppsInvokeSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_ListCallbackURL. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListCallbackURL. * json */ /** @@ -5191,7 +5245,7 @@ public final class LogicAppsInvokeSamples { public final class LogicAppsListWorkflowsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_ListWorkflows.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListWorkflows.json */ /** * Sample code: List the workflows. @@ -5214,7 +5268,7 @@ public final class LogicAppsListWorkflowsSamples { public final class LogicAppsListWorkflowsConnectionsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_ListConnections. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListConnections. * json */ /** @@ -5242,7 +5296,7 @@ import com.azure.resourcemanager.appcontainers.models.ManagedCertificateProperti */ public final class ManagedCertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedCertificate_CreateOrUpdate.json */ /** @@ -5272,7 +5326,7 @@ public final class ManagedCertificatesCreateOrUpdateSamples { public final class ManagedCertificatesDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificate_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Delete. * json */ /** @@ -5297,7 +5351,7 @@ public final class ManagedCertificatesDeleteSamples { public final class ManagedCertificatesGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificate_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Get.json */ /** * Sample code: Get Certificate. @@ -5320,7 +5374,7 @@ public final class ManagedCertificatesGetSamples { */ public final class ManagedCertificatesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedCertificates_ListByManagedEnvironment.json */ /** @@ -5348,7 +5402,7 @@ import java.util.Map; public final class ManagedCertificatesUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificates_Patch. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificates_Patch. * json */ /** @@ -5387,7 +5441,7 @@ public final class ManagedCertificatesUpdateSamples { */ public final class ManagedEnvironmentDiagnosticsGetDetectorSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentDiagnostics_Get.json */ /** @@ -5412,7 +5466,7 @@ public final class ManagedEnvironmentDiagnosticsGetDetectorSamples { */ public final class ManagedEnvironmentDiagnosticsListDetectorsSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentDiagnostics_List.json */ /** @@ -5440,7 +5494,7 @@ import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnecti */ public final class ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json */ /** @@ -5470,7 +5524,7 @@ public final class ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSam */ public final class ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateEndpointConnections_Delete.json */ /** @@ -5494,7 +5548,7 @@ public final class ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples { */ public final class ManagedEnvironmentPrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateEndpointConnections_Get.json */ /** @@ -5518,7 +5572,7 @@ public final class ManagedEnvironmentPrivateEndpointConnectionsGetSamples { */ public final class ManagedEnvironmentPrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateEndpointConnections_List.json */ /** @@ -5542,7 +5596,7 @@ public final class ManagedEnvironmentPrivateEndpointConnectionsListSamples { */ public final class ManagedEnvironmentPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateLinkResources_List.json */ /** @@ -5566,7 +5620,7 @@ public final class ManagedEnvironmentPrivateLinkResourcesListSamples { */ public final class ManagedEnvironmentUsagesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentUsages_List.json */ /** @@ -5614,7 +5668,7 @@ import java.util.Map; */ public final class ManagedEnvironmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json */ /** @@ -5657,7 +5711,7 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_CreateOrUpdate.json */ /** @@ -5747,7 +5801,7 @@ public final class ManagedEnvironmentsCreateOrUpdateSamples { public final class ManagedEnvironmentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Delete. * json */ /** @@ -5770,7 +5824,7 @@ public final class ManagedEnvironmentsDeleteSamples { */ public final class ManagedEnvironmentsGetAuthTokenSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_GetAuthToken.json */ /** @@ -5794,7 +5848,7 @@ public final class ManagedEnvironmentsGetAuthTokenSamples { public final class ManagedEnvironmentsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json */ /** * Sample code: Get environments by name. @@ -5816,7 +5870,7 @@ public final class ManagedEnvironmentsGetByResourceGroupSamples { */ public final class ManagedEnvironmentsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_ListBySubscription.json */ /** @@ -5839,7 +5893,7 @@ public final class ManagedEnvironmentsListSamples { */ public final class ManagedEnvironmentsListByResourceGroupSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_ListByResourceGroup.json */ /** @@ -5862,7 +5916,7 @@ public final class ManagedEnvironmentsListByResourceGroupSamples { */ public final class ManagedEnvironmentsListWorkloadProfileStatesSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_ListWorkloadProfileStates.json */ /** @@ -5891,7 +5945,7 @@ import java.util.Map; public final class ManagedEnvironmentsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Patch. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Patch. * json */ /** @@ -5930,7 +5984,7 @@ public final class ManagedEnvironmentsUpdateSamples { public final class ManagedEnvironmentsDiagnosticsGetRootSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json */ /** * Sample code: Get environments by name. @@ -5957,7 +6011,7 @@ import com.azure.resourcemanager.appcontainers.models.NfsAzureFileProperties; */ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json */ /** @@ -5978,7 +6032,7 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_CreateOrUpdate.json */ /** @@ -6009,7 +6063,7 @@ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples { */ public final class ManagedEnvironmentsStoragesDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_Delete.json */ /** @@ -6033,7 +6087,7 @@ public final class ManagedEnvironmentsStoragesDeleteSamples { */ public final class ManagedEnvironmentsStoragesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_Get.json */ /** @@ -6048,7 +6102,7 @@ public final class ManagedEnvironmentsStoragesGetSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_Get_NfsAzureFile.json */ /** @@ -6072,7 +6126,7 @@ public final class ManagedEnvironmentsStoragesGetSamples { */ public final class ManagedEnvironmentsStoragesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_List.json */ /** @@ -6098,7 +6152,7 @@ import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReque */ public final class NamespacesCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Certificates_CheckNameAvailability.json */ /** @@ -6116,7 +6170,7 @@ public final class NamespacesCheckNameAvailabilitySamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_CheckNameAvailability.json */ /** @@ -6143,7 +6197,7 @@ public final class NamespacesCheckNameAvailabilitySamples { public final class OperationsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Operations_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Operations_List.json */ /** * Sample code: List all operations. @@ -6164,7 +6218,7 @@ public final class OperationsListSamples { */ public final class ResourceProviderGetCustomDomainVerificationIdSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Subscriptions_GetCustomDomainVerificationId.json */ /** @@ -6187,7 +6241,7 @@ public final class ResourceProviderGetCustomDomainVerificationIdSamples { public final class ResourceProviderJobExecutionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Execution_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Execution_Get.json */ /** * Sample code: Get a single Job Execution. @@ -6210,7 +6264,7 @@ public final class ResourceProviderJobExecutionSamples { public final class UsagesListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Usages_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Usages_List.json */ /** * Sample code: List usages. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml index 5e16e0d21e64..83b3b3e6bab7 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for ContainerAppsApi Management - This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions extension resource. Package tag package-preview-2024-02. + This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Functions is an extension resource to revisions and the api listed is used to proxy the call from Web RP to the function app's host process, this api is not exposed to users and only Web RP is allowed to invoke functions extension resource. Package tag package-preview-2024-08. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java index cb996f743289..8685cca50b40 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/ContainerAppsApiManager.java @@ -151,16 +151,16 @@ public final class ContainerAppsApiManager { private ContainerApps containerApps; - private ContainerAppsRevisions containerAppsRevisions; - - private ContainerAppsRevisionReplicas containerAppsRevisionReplicas; - private ContainerAppsBuildsByContainerApps containerAppsBuildsByContainerApps; private ContainerAppsBuilds containerAppsBuilds; private ContainerAppsPatches containerAppsPatches; + private ContainerAppsRevisions containerAppsRevisions; + + private ContainerAppsRevisionReplicas containerAppsRevisionReplicas; + private ContainerAppsDiagnostics containerAppsDiagnostics; private ManagedEnvironmentDiagnostics managedEnvironmentDiagnostics; @@ -171,6 +171,8 @@ public final class ContainerAppsApiManager { private DotNetComponents dotNetComponents; + private FunctionsExtensions functionsExtensions; + private Operations operations; private JavaComponents javaComponents; @@ -179,6 +181,8 @@ public final class ContainerAppsApiManager { private ResourceProviders resourceProviders; + private LogicApps logicApps; + private ManagedEnvironments managedEnvironments; private Certificates certificates; @@ -199,18 +203,14 @@ public final class ContainerAppsApiManager { private ManagedEnvironmentsStorages managedEnvironmentsStorages; + private ContainerAppsSessionPools containerAppsSessionPools; + private ContainerAppsSourceControls containerAppsSourceControls; private Usages usages; private ManagedEnvironmentUsages managedEnvironmentUsages; - private FunctionsExtensions functionsExtensions; - - private LogicApps logicApps; - - private ContainerAppsSessionPools containerAppsSessionPools; - private final ContainerAppsApiClient clientObject; private ContainerAppsApiManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -375,7 +375,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro .append("-") .append("com.azure.resourcemanager.appcontainers") .append("/") - .append("1.0.0-beta.8"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -583,32 +583,6 @@ public ContainerApps containerApps() { return containerApps; } - /** - * Gets the resource collection API of ContainerAppsRevisions. - * - * @return Resource collection API of ContainerAppsRevisions. - */ - public ContainerAppsRevisions containerAppsRevisions() { - if (this.containerAppsRevisions == null) { - this.containerAppsRevisions - = new ContainerAppsRevisionsImpl(clientObject.getContainerAppsRevisions(), this); - } - return containerAppsRevisions; - } - - /** - * Gets the resource collection API of ContainerAppsRevisionReplicas. - * - * @return Resource collection API of ContainerAppsRevisionReplicas. - */ - public ContainerAppsRevisionReplicas containerAppsRevisionReplicas() { - if (this.containerAppsRevisionReplicas == null) { - this.containerAppsRevisionReplicas - = new ContainerAppsRevisionReplicasImpl(clientObject.getContainerAppsRevisionReplicas(), this); - } - return containerAppsRevisionReplicas; - } - /** * Gets the resource collection API of ContainerAppsBuildsByContainerApps. * @@ -646,6 +620,32 @@ public ContainerAppsPatches containerAppsPatches() { return containerAppsPatches; } + /** + * Gets the resource collection API of ContainerAppsRevisions. + * + * @return Resource collection API of ContainerAppsRevisions. + */ + public ContainerAppsRevisions containerAppsRevisions() { + if (this.containerAppsRevisions == null) { + this.containerAppsRevisions + = new ContainerAppsRevisionsImpl(clientObject.getContainerAppsRevisions(), this); + } + return containerAppsRevisions; + } + + /** + * Gets the resource collection API of ContainerAppsRevisionReplicas. + * + * @return Resource collection API of ContainerAppsRevisionReplicas. + */ + public ContainerAppsRevisionReplicas containerAppsRevisionReplicas() { + if (this.containerAppsRevisionReplicas == null) { + this.containerAppsRevisionReplicas + = new ContainerAppsRevisionReplicasImpl(clientObject.getContainerAppsRevisionReplicas(), this); + } + return containerAppsRevisionReplicas; + } + /** * Gets the resource collection API of ContainerAppsDiagnostics. * @@ -709,6 +709,18 @@ public DotNetComponents dotNetComponents() { return dotNetComponents; } + /** + * Gets the resource collection API of FunctionsExtensions. + * + * @return Resource collection API of FunctionsExtensions. + */ + public FunctionsExtensions functionsExtensions() { + if (this.functionsExtensions == null) { + this.functionsExtensions = new FunctionsExtensionsImpl(clientObject.getFunctionsExtensions(), this); + } + return functionsExtensions; + } + /** * Gets the resource collection API of Operations. * @@ -757,6 +769,18 @@ public ResourceProviders resourceProviders() { return resourceProviders; } + /** + * Gets the resource collection API of LogicApps. It manages LogicApp. + * + * @return Resource collection API of LogicApps. + */ + public LogicApps logicApps() { + if (this.logicApps == null) { + this.logicApps = new LogicAppsImpl(clientObject.getLogicApps(), this); + } + return logicApps; + } + /** * Gets the resource collection API of ManagedEnvironments. It manages ManagedEnvironment. * @@ -882,6 +906,19 @@ public ManagedEnvironmentsStorages managedEnvironmentsStorages() { return managedEnvironmentsStorages; } + /** + * Gets the resource collection API of ContainerAppsSessionPools. It manages SessionPool. + * + * @return Resource collection API of ContainerAppsSessionPools. + */ + public ContainerAppsSessionPools containerAppsSessionPools() { + if (this.containerAppsSessionPools == null) { + this.containerAppsSessionPools + = new ContainerAppsSessionPoolsImpl(clientObject.getContainerAppsSessionPools(), this); + } + return containerAppsSessionPools; + } + /** * Gets the resource collection API of ContainerAppsSourceControls. It manages SourceControl. * @@ -920,43 +957,6 @@ public ManagedEnvironmentUsages managedEnvironmentUsages() { return managedEnvironmentUsages; } - /** - * Gets the resource collection API of FunctionsExtensions. - * - * @return Resource collection API of FunctionsExtensions. - */ - public FunctionsExtensions functionsExtensions() { - if (this.functionsExtensions == null) { - this.functionsExtensions = new FunctionsExtensionsImpl(clientObject.getFunctionsExtensions(), this); - } - return functionsExtensions; - } - - /** - * Gets the resource collection API of LogicApps. It manages LogicApp. - * - * @return Resource collection API of LogicApps. - */ - public LogicApps logicApps() { - if (this.logicApps == null) { - this.logicApps = new LogicAppsImpl(clientObject.getLogicApps(), this); - } - return logicApps; - } - - /** - * Gets the resource collection API of ContainerAppsSessionPools. It manages SessionPool. - * - * @return Resource collection API of ContainerAppsSessionPools. - */ - public ContainerAppsSessionPools containerAppsSessionPools() { - if (this.containerAppsSessionPools == null) { - this.containerAppsSessionPools - = new ContainerAppsSessionPoolsImpl(clientObject.getContainerAppsSessionPools(), this); - } - return containerAppsSessionPools; - } - /** * Gets wrapped service client ContainerAppsApiClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java index dffef6529c70..dafb90840eb0 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsApiClient.java @@ -137,20 +137,6 @@ public interface ContainerAppsApiClient { */ ContainerAppsClient getContainerApps(); - /** - * Gets the ContainerAppsRevisionsClient object to access its operations. - * - * @return the ContainerAppsRevisionsClient object. - */ - ContainerAppsRevisionsClient getContainerAppsRevisions(); - - /** - * Gets the ContainerAppsRevisionReplicasClient object to access its operations. - * - * @return the ContainerAppsRevisionReplicasClient object. - */ - ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas(); - /** * Gets the ContainerAppsBuildsByContainerAppsClient object to access its operations. * @@ -172,6 +158,20 @@ public interface ContainerAppsApiClient { */ ContainerAppsPatchesClient getContainerAppsPatches(); + /** + * Gets the ContainerAppsRevisionsClient object to access its operations. + * + * @return the ContainerAppsRevisionsClient object. + */ + ContainerAppsRevisionsClient getContainerAppsRevisions(); + + /** + * Gets the ContainerAppsRevisionReplicasClient object to access its operations. + * + * @return the ContainerAppsRevisionReplicasClient object. + */ + ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas(); + /** * Gets the ContainerAppsDiagnosticsClient object to access its operations. * @@ -207,6 +207,13 @@ public interface ContainerAppsApiClient { */ DotNetComponentsClient getDotNetComponents(); + /** + * Gets the FunctionsExtensionsClient object to access its operations. + * + * @return the FunctionsExtensionsClient object. + */ + FunctionsExtensionsClient getFunctionsExtensions(); + /** * Gets the OperationsClient object to access its operations. * @@ -235,6 +242,13 @@ public interface ContainerAppsApiClient { */ ResourceProvidersClient getResourceProviders(); + /** + * Gets the LogicAppsClient object to access its operations. + * + * @return the LogicAppsClient object. + */ + LogicAppsClient getLogicApps(); + /** * Gets the ManagedEnvironmentsClient object to access its operations. * @@ -305,6 +319,13 @@ public interface ContainerAppsApiClient { */ ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages(); + /** + * Gets the ContainerAppsSessionPoolsClient object to access its operations. + * + * @return the ContainerAppsSessionPoolsClient object. + */ + ContainerAppsSessionPoolsClient getContainerAppsSessionPools(); + /** * Gets the ContainerAppsSourceControlsClient object to access its operations. * @@ -325,25 +346,4 @@ public interface ContainerAppsApiClient { * @return the ManagedEnvironmentUsagesClient object. */ ManagedEnvironmentUsagesClient getManagedEnvironmentUsages(); - - /** - * Gets the FunctionsExtensionsClient object to access its operations. - * - * @return the FunctionsExtensionsClient object. - */ - FunctionsExtensionsClient getFunctionsExtensions(); - - /** - * Gets the LogicAppsClient object to access its operations. - * - * @return the LogicAppsClient object. - */ - LogicAppsClient getLogicApps(); - - /** - * Gets the ContainerAppsSessionPoolsClient object to access its operations. - * - * @return the ContainerAppsSessionPoolsClient object. - */ - ContainerAppsSessionPoolsClient getContainerAppsSessionPools(); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java index 1d972a062004..000e6d24a6da 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/ContainerAppsSourceControlsClient.java @@ -87,6 +87,7 @@ Response getWithResponse(String resourceGroupName, String co * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -96,7 +97,8 @@ Response getWithResponse(String resourceGroupName, String co */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SourceControlInner> beginCreateOrUpdate(String resourceGroupName, - String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope); + String containerAppName, String sourceControlName, String xMsGithubAuxiliary, + SourceControlInner sourceControlEnvelope); /** * Create or update the SourceControl for a Container App. @@ -104,6 +106,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -114,7 +117,8 @@ SyncPoller, SourceControlInner> beginCreateOrUpda */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, SourceControlInner> beginCreateOrUpdate(String resourceGroupName, - String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope, Context context); + String containerAppName, String sourceControlName, String xMsGithubAuxiliary, + SourceControlInner sourceControlEnvelope, Context context); /** * Create or update the SourceControl for a Container App. @@ -122,6 +126,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -131,7 +136,7 @@ SyncPoller, SourceControlInner> beginCreateOrUpda */ @ServiceMethod(returns = ReturnType.SINGLE) SourceControlInner createOrUpdate(String resourceGroupName, String containerAppName, String sourceControlName, - SourceControlInner sourceControlEnvelope); + String xMsGithubAuxiliary, SourceControlInner sourceControlEnvelope); /** * Create or update the SourceControl for a Container App. @@ -139,6 +144,7 @@ SourceControlInner createOrUpdate(String resourceGroupName, String containerAppN * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -149,7 +155,7 @@ SourceControlInner createOrUpdate(String resourceGroupName, String containerAppN */ @ServiceMethod(returns = ReturnType.SINGLE) SourceControlInner createOrUpdate(String resourceGroupName, String containerAppName, String sourceControlName, - SourceControlInner sourceControlEnvelope, Context context); + String xMsGithubAuxiliary, SourceControlInner sourceControlEnvelope, Context context); /** * Delete a Container App SourceControl. @@ -157,6 +163,7 @@ SourceControlInner createOrUpdate(String resourceGroupName, String containerAppN * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. @@ -165,7 +172,7 @@ SourceControlInner createOrUpdate(String resourceGroupName, String containerAppN */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, - String sourceControlName); + String sourceControlName, String xMsGithubAuxiliary); /** * Delete a Container App SourceControl. @@ -173,6 +180,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -182,7 +192,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, - String sourceControlName, Context context); + String sourceControlName, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, + Boolean deleteWorkflow, Context context); /** * Delete a Container App SourceControl. @@ -190,13 +201,14 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String containerAppName, String sourceControlName); + void delete(String resourceGroupName, String containerAppName, String sourceControlName, String xMsGithubAuxiliary); /** * Delete a Container App SourceControl. @@ -204,6 +216,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request @@ -211,5 +226,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String containerAppName, String sourceControlName, Context context); + void delete(String resourceGroupName, String containerAppName, String sourceControlName, String xMsGithubAuxiliary, + Boolean ignoreWorkflowDeletionFailure, Boolean deleteWorkflow, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java index ea43c27efd1a..996ea06c3d36 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/JobsClient.java @@ -611,4 +611,112 @@ Response listSecretsWithResponse(String resourceGroup */ @ServiceMethod(returns = ReturnType.SINGLE) JobSecretsCollectionInner listSecrets(String resourceGroupName, String jobName); + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link SyncPoller} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, JobInner> beginResume(String resourceGroupName, String jobName); + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link SyncPoller} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, JobInner> beginResume(String resourceGroupName, String jobName, Context context); + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + JobInner resume(String resourceGroupName, String jobName); + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + JobInner resume(String resourceGroupName, String jobName, Context context); + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link SyncPoller} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, JobInner> beginSuspend(String resourceGroupName, String jobName); + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link SyncPoller} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, JobInner> beginSuspend(String resourceGroupName, String jobName, Context context); + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + JobInner suspend(String resourceGroupName, String jobName); + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + JobInner suspend(String resourceGroupName, String jobName, Context context); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java index 2c54bd67db6d..28591e2ce3ff 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppInner.java @@ -246,6 +246,15 @@ public ContainerAppProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } + /** + * Get the deploymentErrors property: Any errors that occurred during deployment. + * + * @return the deploymentErrors value. + */ + public String deploymentErrors() { + return this.innerProperties() == null ? null : this.innerProperties().deploymentErrors(); + } + /** * Get the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment. * diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java index 3276e75041e8..1cf2f5032fc6 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/fluent/models/ContainerAppProperties.java @@ -26,6 +26,11 @@ public final class ContainerAppProperties implements JsonSerializable { */ private JobProvisioningState provisioningState; + /* + * Current running state of the job + */ + private JobRunningState runningState; + /* * Resource ID of environment. */ @@ -70,6 +76,15 @@ public JobProvisioningState provisioningState() { return this.provisioningState; } + /** + * Get the runningState property: Current running state of the job. + * + * @return the runningState value. + */ + public JobRunningState runningState() { + return this.runningState; + } + /** * Get the environmentId property: Resource ID of environment. * @@ -212,6 +227,8 @@ public static JobProperties fromJson(JsonReader jsonReader) throws IOException { if ("provisioningState".equals(fieldName)) { deserializedJobProperties.provisioningState = JobProvisioningState.fromString(reader.getString()); + } else if ("runningState".equals(fieldName)) { + deserializedJobProperties.runningState = JobRunningState.fromString(reader.getString()); } else if ("environmentId".equals(fieldName)) { deserializedJobProperties.environmentId = reader.getString(); } else if ("workloadProfileName".equals(fieldName)) { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java index b3f91ceb38da..ef5e6d5f3bcd 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppImpl.java @@ -78,6 +78,10 @@ public ContainerAppProvisioningState provisioningState() { return this.innerModel().provisioningState(); } + public String deploymentErrors() { + return this.innerModel().deploymentErrors(); + } + public String managedEnvironmentId() { return this.innerModel().managedEnvironmentId(); } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java index 09387f7de2eb..8baaf047e746 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsApiClientImpl.java @@ -347,34 +347,6 @@ public ContainerAppsClient getContainerApps() { return this.containerApps; } - /** - * The ContainerAppsRevisionsClient object to access its operations. - */ - private final ContainerAppsRevisionsClient containerAppsRevisions; - - /** - * Gets the ContainerAppsRevisionsClient object to access its operations. - * - * @return the ContainerAppsRevisionsClient object. - */ - public ContainerAppsRevisionsClient getContainerAppsRevisions() { - return this.containerAppsRevisions; - } - - /** - * The ContainerAppsRevisionReplicasClient object to access its operations. - */ - private final ContainerAppsRevisionReplicasClient containerAppsRevisionReplicas; - - /** - * Gets the ContainerAppsRevisionReplicasClient object to access its operations. - * - * @return the ContainerAppsRevisionReplicasClient object. - */ - public ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas() { - return this.containerAppsRevisionReplicas; - } - /** * The ContainerAppsBuildsByContainerAppsClient object to access its operations. */ @@ -417,6 +389,34 @@ public ContainerAppsPatchesClient getContainerAppsPatches() { return this.containerAppsPatches; } + /** + * The ContainerAppsRevisionsClient object to access its operations. + */ + private final ContainerAppsRevisionsClient containerAppsRevisions; + + /** + * Gets the ContainerAppsRevisionsClient object to access its operations. + * + * @return the ContainerAppsRevisionsClient object. + */ + public ContainerAppsRevisionsClient getContainerAppsRevisions() { + return this.containerAppsRevisions; + } + + /** + * The ContainerAppsRevisionReplicasClient object to access its operations. + */ + private final ContainerAppsRevisionReplicasClient containerAppsRevisionReplicas; + + /** + * Gets the ContainerAppsRevisionReplicasClient object to access its operations. + * + * @return the ContainerAppsRevisionReplicasClient object. + */ + public ContainerAppsRevisionReplicasClient getContainerAppsRevisionReplicas() { + return this.containerAppsRevisionReplicas; + } + /** * The ContainerAppsDiagnosticsClient object to access its operations. */ @@ -487,6 +487,20 @@ public DotNetComponentsClient getDotNetComponents() { return this.dotNetComponents; } + /** + * The FunctionsExtensionsClient object to access its operations. + */ + private final FunctionsExtensionsClient functionsExtensions; + + /** + * Gets the FunctionsExtensionsClient object to access its operations. + * + * @return the FunctionsExtensionsClient object. + */ + public FunctionsExtensionsClient getFunctionsExtensions() { + return this.functionsExtensions; + } + /** * The OperationsClient object to access its operations. */ @@ -543,6 +557,20 @@ public ResourceProvidersClient getResourceProviders() { return this.resourceProviders; } + /** + * The LogicAppsClient object to access its operations. + */ + private final LogicAppsClient logicApps; + + /** + * Gets the LogicAppsClient object to access its operations. + * + * @return the LogicAppsClient object. + */ + public LogicAppsClient getLogicApps() { + return this.logicApps; + } + /** * The ManagedEnvironmentsClient object to access its operations. */ @@ -683,6 +711,20 @@ public ManagedEnvironmentsStoragesClient getManagedEnvironmentsStorages() { return this.managedEnvironmentsStorages; } + /** + * The ContainerAppsSessionPoolsClient object to access its operations. + */ + private final ContainerAppsSessionPoolsClient containerAppsSessionPools; + + /** + * Gets the ContainerAppsSessionPoolsClient object to access its operations. + * + * @return the ContainerAppsSessionPoolsClient object. + */ + public ContainerAppsSessionPoolsClient getContainerAppsSessionPools() { + return this.containerAppsSessionPools; + } + /** * The ContainerAppsSourceControlsClient object to access its operations. */ @@ -725,48 +767,6 @@ public ManagedEnvironmentUsagesClient getManagedEnvironmentUsages() { return this.managedEnvironmentUsages; } - /** - * The FunctionsExtensionsClient object to access its operations. - */ - private final FunctionsExtensionsClient functionsExtensions; - - /** - * Gets the FunctionsExtensionsClient object to access its operations. - * - * @return the FunctionsExtensionsClient object. - */ - public FunctionsExtensionsClient getFunctionsExtensions() { - return this.functionsExtensions; - } - - /** - * The LogicAppsClient object to access its operations. - */ - private final LogicAppsClient logicApps; - - /** - * Gets the LogicAppsClient object to access its operations. - * - * @return the LogicAppsClient object. - */ - public LogicAppsClient getLogicApps() { - return this.logicApps; - } - - /** - * The ContainerAppsSessionPoolsClient object to access its operations. - */ - private final ContainerAppsSessionPoolsClient containerAppsSessionPools; - - /** - * Gets the ContainerAppsSessionPoolsClient object to access its operations. - * - * @return the ContainerAppsSessionPoolsClient object. - */ - public ContainerAppsSessionPoolsClient getContainerAppsSessionPools() { - return this.containerAppsSessionPools; - } - /** * Initializes an instance of ContainerAppsApiClient client. * @@ -784,7 +784,7 @@ public ContainerAppsSessionPoolsClient getContainerAppsSessionPools() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2024-02-02-preview"; + this.apiVersion = "2024-08-02-preview"; this.appResiliencies = new AppResilienciesClientImpl(this); this.containerAppsAuthConfigs = new ContainerAppsAuthConfigsClientImpl(this); this.availableWorkloadProfiles = new AvailableWorkloadProfilesClientImpl(this); @@ -798,20 +798,22 @@ public ContainerAppsSessionPoolsClient getContainerAppsSessionPools() { this.connectedEnvironmentsDaprComponents = new ConnectedEnvironmentsDaprComponentsClientImpl(this); this.connectedEnvironmentsStorages = new ConnectedEnvironmentsStoragesClientImpl(this); this.containerApps = new ContainerAppsClientImpl(this); - this.containerAppsRevisions = new ContainerAppsRevisionsClientImpl(this); - this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasClientImpl(this); this.containerAppsBuildsByContainerApps = new ContainerAppsBuildsByContainerAppsClientImpl(this); this.containerAppsBuilds = new ContainerAppsBuildsClientImpl(this); this.containerAppsPatches = new ContainerAppsPatchesClientImpl(this); + this.containerAppsRevisions = new ContainerAppsRevisionsClientImpl(this); + this.containerAppsRevisionReplicas = new ContainerAppsRevisionReplicasClientImpl(this); this.containerAppsDiagnostics = new ContainerAppsDiagnosticsClientImpl(this); this.managedEnvironmentDiagnostics = new ManagedEnvironmentDiagnosticsClientImpl(this); this.managedEnvironmentsDiagnostics = new ManagedEnvironmentsDiagnosticsClientImpl(this); this.jobs = new JobsClientImpl(this); this.dotNetComponents = new DotNetComponentsClientImpl(this); + this.functionsExtensions = new FunctionsExtensionsClientImpl(this); this.operations = new OperationsClientImpl(this); this.javaComponents = new JavaComponentsClientImpl(this); this.jobsExecutions = new JobsExecutionsClientImpl(this); this.resourceProviders = new ResourceProvidersClientImpl(this); + this.logicApps = new LogicAppsClientImpl(this); this.managedEnvironments = new ManagedEnvironmentsClientImpl(this); this.certificates = new CertificatesClientImpl(this); this.managedCertificates = new ManagedCertificatesClientImpl(this); @@ -823,12 +825,10 @@ public ContainerAppsSessionPoolsClient getContainerAppsSessionPools() { this.daprComponents = new DaprComponentsClientImpl(this); this.daprSubscriptions = new DaprSubscriptionsClientImpl(this); this.managedEnvironmentsStorages = new ManagedEnvironmentsStoragesClientImpl(this); + this.containerAppsSessionPools = new ContainerAppsSessionPoolsClientImpl(this); this.containerAppsSourceControls = new ContainerAppsSourceControlsClientImpl(this); this.usages = new UsagesClientImpl(this); this.managedEnvironmentUsages = new ManagedEnvironmentUsagesClientImpl(this); - this.functionsExtensions = new FunctionsExtensionsClientImpl(this); - this.logicApps = new LogicAppsClientImpl(this); - this.containerAppsSessionPools = new ContainerAppsSessionPoolsClientImpl(this); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java index d3602c2f77aa..d3fb6aca0a76 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsClientImpl.java @@ -99,7 +99,9 @@ Mono>> createOrUpdate(@HostParam("$host") String endpo @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("sourceControlName") String sourceControlName, @QueryParam("api-version") String apiVersion, + @PathParam("sourceControlName") String sourceControlName, + @HeaderParam("x-ms-github-auxiliary") String xMsGithubAuxiliary, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") SourceControlInner sourceControlEnvelope, @HeaderParam("Accept") String accept, Context context); @@ -111,7 +113,10 @@ Mono>> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("containerAppName") String containerAppName, - @PathParam("sourceControlName") String sourceControlName, @QueryParam("api-version") String apiVersion, + @PathParam("sourceControlName") String sourceControlName, + @HeaderParam("x-ms-github-auxiliary") String xMsGithubAuxiliary, + @QueryParam("ignoreWorkflowDeletionFailure") Boolean ignoreWorkflowDeletionFailure, + @QueryParam("deleteWorkflow") Boolean deleteWorkflow, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -411,6 +416,7 @@ public SourceControlInner get(String resourceGroupName, String containerAppName, * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -419,7 +425,8 @@ public SourceControlInner get(String resourceGroupName, String containerAppName, */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope) { + String containerAppName, String sourceControlName, String xMsGithubAuxiliary, + SourceControlInner sourceControlEnvelope) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -440,6 +447,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } + if (xMsGithubAuxiliary == null) { + return Mono + .error(new IllegalArgumentException("Parameter xMsGithubAuxiliary is required and cannot be null.")); + } if (sourceControlEnvelope == null) { return Mono .error(new IllegalArgumentException("Parameter sourceControlEnvelope is required and cannot be null.")); @@ -449,7 +460,7 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, containerAppName, sourceControlName, this.client.getApiVersion(), + resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, this.client.getApiVersion(), sourceControlEnvelope, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -460,6 +471,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -469,7 +481,8 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope, Context context) { + String containerAppName, String sourceControlName, String xMsGithubAuxiliary, + SourceControlInner sourceControlEnvelope, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -490,6 +503,10 @@ private Mono>> createOrUpdateWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } + if (xMsGithubAuxiliary == null) { + return Mono + .error(new IllegalArgumentException("Parameter xMsGithubAuxiliary is required and cannot be null.")); + } if (sourceControlEnvelope == null) { return Mono .error(new IllegalArgumentException("Parameter sourceControlEnvelope is required and cannot be null.")); @@ -499,7 +516,8 @@ private Mono>> createOrUpdateWithResponseAsync(String final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - containerAppName, sourceControlName, this.client.getApiVersion(), sourceControlEnvelope, accept, context); + containerAppName, sourceControlName, xMsGithubAuxiliary, this.client.getApiVersion(), sourceControlEnvelope, + accept, context); } /** @@ -508,6 +526,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -516,10 +535,10 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SourceControlInner> beginCreateOrUpdateAsync( - String resourceGroupName, String containerAppName, String sourceControlName, + String resourceGroupName, String containerAppName, String sourceControlName, String xMsGithubAuxiliary, SourceControlInner sourceControlEnvelope) { Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, - sourceControlName, sourceControlEnvelope); + sourceControlName, xMsGithubAuxiliary, sourceControlEnvelope); return this.client.getLroResult(mono, this.client.getHttpPipeline(), SourceControlInner.class, SourceControlInner.class, this.client.getContext()); } @@ -530,6 +549,7 @@ private PollerFlux, SourceControlInner> beginCrea * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -539,11 +559,11 @@ private PollerFlux, SourceControlInner> beginCrea */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SourceControlInner> beginCreateOrUpdateAsync( - String resourceGroupName, String containerAppName, String sourceControlName, + String resourceGroupName, String containerAppName, String sourceControlName, String xMsGithubAuxiliary, SourceControlInner sourceControlEnvelope, Context context) { context = this.client.mergeContext(context); Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, containerAppName, - sourceControlName, sourceControlEnvelope, context); + sourceControlName, xMsGithubAuxiliary, sourceControlEnvelope, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), SourceControlInner.class, SourceControlInner.class, context); } @@ -554,6 +574,7 @@ private PollerFlux, SourceControlInner> beginCrea * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -562,9 +583,11 @@ private PollerFlux, SourceControlInner> beginCrea */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SourceControlInner> beginCreateOrUpdate(String resourceGroupName, - String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope) { + String containerAppName, String sourceControlName, String xMsGithubAuxiliary, + SourceControlInner sourceControlEnvelope) { return this - .beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope) + .beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + sourceControlEnvelope) .getSyncPoller(); } @@ -574,6 +597,7 @@ public SyncPoller, SourceControlInner> beginCreat * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -583,10 +607,11 @@ public SyncPoller, SourceControlInner> beginCreat */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SourceControlInner> beginCreateOrUpdate(String resourceGroupName, - String containerAppName, String sourceControlName, SourceControlInner sourceControlEnvelope, Context context) { + String containerAppName, String sourceControlName, String xMsGithubAuxiliary, + SourceControlInner sourceControlEnvelope, Context context) { return this - .beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, - context) + .beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + sourceControlEnvelope, context) .getSyncPoller(); } @@ -596,6 +621,7 @@ public SyncPoller, SourceControlInner> beginCreat * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -604,10 +630,9 @@ public SyncPoller, SourceControlInner> beginCreat */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String containerAppName, - String sourceControlName, SourceControlInner sourceControlEnvelope) { - return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope) - .last() - .flatMap(this.client::getLroFinalResultOrError); + String sourceControlName, String xMsGithubAuxiliary, SourceControlInner sourceControlEnvelope) { + return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + sourceControlEnvelope).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -616,6 +641,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, S * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -625,9 +651,10 @@ private Mono createOrUpdateAsync(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String containerAppName, - String sourceControlName, SourceControlInner sourceControlEnvelope, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, - context).last().flatMap(this.client::getLroFinalResultOrError); + String sourceControlName, String xMsGithubAuxiliary, SourceControlInner sourceControlEnvelope, + Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + sourceControlEnvelope, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -636,6 +663,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, S * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -644,9 +672,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.SINGLE) public SourceControlInner createOrUpdate(String resourceGroupName, String containerAppName, - String sourceControlName, SourceControlInner sourceControlEnvelope) { - return createOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope) - .block(); + String sourceControlName, String xMsGithubAuxiliary, SourceControlInner sourceControlEnvelope) { + return createOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + sourceControlEnvelope).block(); } /** @@ -655,6 +683,7 @@ public SourceControlInner createOrUpdate(String resourceGroupName, String contai * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @param sourceControlEnvelope Properties used to create a Container App SourceControl. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -664,9 +693,10 @@ public SourceControlInner createOrUpdate(String resourceGroupName, String contai */ @ServiceMethod(returns = ReturnType.SINGLE) public SourceControlInner createOrUpdate(String resourceGroupName, String containerAppName, - String sourceControlName, SourceControlInner sourceControlEnvelope, Context context) { - return createOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, sourceControlEnvelope, - context).block(); + String sourceControlName, String xMsGithubAuxiliary, SourceControlInner sourceControlEnvelope, + Context context) { + return createOrUpdateAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + sourceControlEnvelope, context).block(); } /** @@ -675,6 +705,9 @@ public SourceControlInner createOrUpdate(String resourceGroupName, String contai * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -682,7 +715,8 @@ public SourceControlInner createOrUpdate(String resourceGroupName, String contai */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String containerAppName, - String sourceControlName) { + String sourceControlName, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, + Boolean deleteWorkflow) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -703,10 +737,15 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } + if (xMsGithubAuxiliary == null) { + return Mono + .error(new IllegalArgumentException("Parameter xMsGithubAuxiliary is required and cannot be null.")); + } final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), - resourceGroupName, containerAppName, sourceControlName, this.client.getApiVersion(), accept, context)) + resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow, this.client.getApiVersion(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -716,6 +755,9 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -724,7 +766,8 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String containerAppName, - String sourceControlName, Context context) { + String sourceControlName, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, + Boolean deleteWorkflow, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -745,10 +788,15 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter sourceControlName is required and cannot be null.")); } + if (xMsGithubAuxiliary == null) { + return Mono + .error(new IllegalArgumentException("Parameter xMsGithubAuxiliary is required and cannot be null.")); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - containerAppName, sourceControlName, this.client.getApiVersion(), accept, context); + containerAppName, sourceControlName, xMsGithubAuxiliary, ignoreWorkflowDeletionFailure, deleteWorkflow, + this.client.getApiVersion(), accept, context); } /** @@ -757,6 +805,9 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -764,9 +815,33 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String containerAppName, - String sourceControlName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, containerAppName, sourceControlName); + String sourceControlName, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, + Boolean deleteWorkflow) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, containerAppName, + sourceControlName, xMsGithubAuxiliary, ignoreWorkflowDeletionFailure, deleteWorkflow); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a Container App SourceControl. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param containerAppName Name of the Container App. + * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String containerAppName, + String sourceControlName, String xMsGithubAuxiliary) { + final Boolean ignoreWorkflowDeletionFailure = null; + final Boolean deleteWorkflow = null; + Mono>> mono = deleteWithResponseAsync(resourceGroupName, containerAppName, + sourceControlName, xMsGithubAuxiliary, ignoreWorkflowDeletionFailure, deleteWorkflow); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -777,6 +852,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -785,10 +863,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String containerAppName, - String sourceControlName, Context context) { + String sourceControlName, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, + Boolean deleteWorkflow, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, containerAppName, sourceControlName, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, containerAppName, + sourceControlName, xMsGithubAuxiliary, ignoreWorkflowDeletionFailure, deleteWorkflow, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -799,6 +878,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -806,8 +886,13 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, - String sourceControlName) { - return this.beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName).getSyncPoller(); + String sourceControlName, String xMsGithubAuxiliary) { + final Boolean ignoreWorkflowDeletionFailure = null; + final Boolean deleteWorkflow = null; + return this + .beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow) + .getSyncPoller(); } /** @@ -816,6 +901,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -824,8 +912,12 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String containerAppName, - String sourceControlName, Context context) { - return this.beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, context).getSyncPoller(); + String sourceControlName, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, + Boolean deleteWorkflow, Context context) { + return this + .beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow, context) + .getSyncPoller(); } /** @@ -834,15 +926,19 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String containerAppName, String sourceControlName) { - return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName).last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String containerAppName, String sourceControlName, + String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, Boolean deleteWorkflow) { + return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -851,6 +947,30 @@ private Mono deleteAsync(String resourceGroupName, String containerAppName * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String containerAppName, String sourceControlName, + String xMsGithubAuxiliary) { + final Boolean ignoreWorkflowDeletionFailure = null; + final Boolean deleteWorkflow = null; + return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a Container App SourceControl. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param containerAppName Name of the Container App. + * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. @@ -859,8 +979,9 @@ private Mono deleteAsync(String resourceGroupName, String containerAppName */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String containerAppName, String sourceControlName, - Context context) { - return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, context).last() + String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, Boolean deleteWorkflow, Context context) { + return beginDeleteAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -870,13 +991,18 @@ private Mono deleteAsync(String resourceGroupName, String containerAppName * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String containerAppName, String sourceControlName) { - deleteAsync(resourceGroupName, containerAppName, sourceControlName).block(); + public void delete(String resourceGroupName, String containerAppName, String sourceControlName, + String xMsGithubAuxiliary) { + final Boolean ignoreWorkflowDeletionFailure = null; + final Boolean deleteWorkflow = null; + deleteAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow).block(); } /** @@ -885,14 +1011,19 @@ public void delete(String resourceGroupName, String containerAppName, String sou * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String containerAppName, String sourceControlName, Context context) { - deleteAsync(resourceGroupName, containerAppName, sourceControlName, context).block(); + public void delete(String resourceGroupName, String containerAppName, String sourceControlName, + String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, Boolean deleteWorkflow, Context context) { + deleteAsync(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow, context).block(); } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsImpl.java index 4f33cd3ab477..fabbafa0245d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/ContainerAppsSourceControlsImpl.java @@ -61,12 +61,16 @@ public SourceControl get(String resourceGroupName, String containerAppName, Stri } } - public void delete(String resourceGroupName, String containerAppName, String sourceControlName) { - this.serviceClient().delete(resourceGroupName, containerAppName, sourceControlName); + public void delete(String resourceGroupName, String containerAppName, String sourceControlName, + String xMsGithubAuxiliary) { + this.serviceClient().delete(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary); } - public void delete(String resourceGroupName, String containerAppName, String sourceControlName, Context context) { - this.serviceClient().delete(resourceGroupName, containerAppName, sourceControlName, context); + public void delete(String resourceGroupName, String containerAppName, String sourceControlName, + String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, Boolean deleteWorkflow, Context context) { + this.serviceClient() + .delete(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow, context); } public SourceControl getById(String id) { @@ -123,10 +127,15 @@ public void deleteById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sourcecontrols'.", id))); } - this.delete(resourceGroupName, containerAppName, sourceControlName, Context.NONE); + String localXMsGithubAuxiliary = null; + Boolean localIgnoreWorkflowDeletionFailure = null; + Boolean localDeleteWorkflow = null; + this.delete(resourceGroupName, containerAppName, sourceControlName, localXMsGithubAuxiliary, + localIgnoreWorkflowDeletionFailure, localDeleteWorkflow, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { + public void deleteByIdWithResponse(String id, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, + Boolean deleteWorkflow, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -142,7 +151,8 @@ public void deleteByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sourcecontrols'.", id))); } - this.delete(resourceGroupName, containerAppName, sourceControlName, context); + this.delete(resourceGroupName, containerAppName, sourceControlName, xMsGithubAuxiliary, + ignoreWorkflowDeletionFailure, deleteWorkflow, context); } private ContainerAppsSourceControlsClient serviceClient() { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobImpl.java index 7cca6a2825b9..014e8ff7f026 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobImpl.java @@ -18,6 +18,7 @@ import com.azure.resourcemanager.appcontainers.models.JobPatchProperties; import com.azure.resourcemanager.appcontainers.models.JobPatchPropertiesProperties; import com.azure.resourcemanager.appcontainers.models.JobProvisioningState; +import com.azure.resourcemanager.appcontainers.models.JobRunningState; import com.azure.resourcemanager.appcontainers.models.JobSecretsCollection; import com.azure.resourcemanager.appcontainers.models.JobTemplate; import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity; @@ -71,6 +72,10 @@ public JobProvisioningState provisioningState() { return this.innerModel().provisioningState(); } + public JobRunningState runningState() { + return this.innerModel().runningState(); + } + public String environmentId() { return this.innerModel().environmentId(); } @@ -216,6 +221,22 @@ public JobSecretsCollection listSecrets() { return serviceManager.jobs().listSecrets(resourceGroupName, jobName); } + public Job resume() { + return serviceManager.jobs().resume(resourceGroupName, jobName); + } + + public Job resume(Context context) { + return serviceManager.jobs().resume(resourceGroupName, jobName, context); + } + + public Job suspend() { + return serviceManager.jobs().suspend(resourceGroupName, jobName); + } + + public Job suspend(Context context) { + return serviceManager.jobs().suspend(resourceGroupName, jobName, context); + } + public JobImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobsClientImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobsClientImpl.java index 5bde6aeadb24..1717b8ba3319 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobsClientImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobsClientImpl.java @@ -27,6 +27,7 @@ import com.azure.core.http.rest.PagedResponseBase; 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.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; @@ -200,6 +201,24 @@ Mono> listSecrets(@HostParam("$host") String @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @PathParam("jobName") String jobName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/resume") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> resume(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @PathParam("jobName") String jobName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/suspend") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> suspend(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @PathParam("jobName") String jobName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -2498,6 +2517,408 @@ public JobSecretsCollectionInner listSecrets(String resourceGroupName, String jo return listSecretsWithResponse(resourceGroupName, jobName, Context.NONE).getValue(); } + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> resumeWithResponseAsync(String resourceGroupName, String jobName) { + 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 (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (jobName == null) { + return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.resume(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, this.client.getApiVersion(), jobName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> resumeWithResponseAsync(String resourceGroupName, String jobName, + 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 (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (jobName == null) { + return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.resume(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + this.client.getApiVersion(), jobName, accept, context); + } + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link PollerFlux} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, JobInner> beginResumeAsync(String resourceGroupName, String jobName) { + Mono>> mono = resumeWithResponseAsync(resourceGroupName, jobName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, + JobInner.class, this.client.getContext()); + } + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link PollerFlux} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, JobInner> beginResumeAsync(String resourceGroupName, String jobName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = resumeWithResponseAsync(resourceGroupName, jobName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, + JobInner.class, context); + } + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link SyncPoller} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, JobInner> beginResume(String resourceGroupName, String jobName) { + return this.beginResumeAsync(resourceGroupName, jobName).getSyncPoller(); + } + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link SyncPoller} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, JobInner> beginResume(String resourceGroupName, String jobName, + Context context) { + return this.beginResumeAsync(resourceGroupName, jobName, context).getSyncPoller(); + } + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono resumeAsync(String resourceGroupName, String jobName) { + return beginResumeAsync(resourceGroupName, jobName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono resumeAsync(String resourceGroupName, String jobName, Context context) { + return beginResumeAsync(resourceGroupName, jobName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public JobInner resume(String resourceGroupName, String jobName) { + return resumeAsync(resourceGroupName, jobName).block(); + } + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public JobInner resume(String resourceGroupName, String jobName, Context context) { + return resumeAsync(resourceGroupName, jobName, context).block(); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> suspendWithResponseAsync(String resourceGroupName, String jobName) { + 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 (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (jobName == null) { + return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.suspend(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, this.client.getApiVersion(), jobName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> suspendWithResponseAsync(String resourceGroupName, String jobName, + 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 (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (jobName == null) { + return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.suspend(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + this.client.getApiVersion(), jobName, accept, context); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link PollerFlux} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, JobInner> beginSuspendAsync(String resourceGroupName, String jobName) { + Mono>> mono = suspendWithResponseAsync(resourceGroupName, jobName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, + JobInner.class, this.client.getContext()); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link PollerFlux} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, JobInner> beginSuspendAsync(String resourceGroupName, String jobName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = suspendWithResponseAsync(resourceGroupName, jobName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), JobInner.class, + JobInner.class, context); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link SyncPoller} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, JobInner> beginSuspend(String resourceGroupName, String jobName) { + return this.beginSuspendAsync(resourceGroupName, jobName).getSyncPoller(); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 {@link SyncPoller} for polling of container App Job. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, JobInner> beginSuspend(String resourceGroupName, String jobName, + Context context) { + return this.beginSuspendAsync(resourceGroupName, jobName, context).getSyncPoller(); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono suspendAsync(String resourceGroupName, String jobName) { + return beginSuspendAsync(resourceGroupName, jobName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono suspendAsync(String resourceGroupName, String jobName, Context context) { + return beginSuspendAsync(resourceGroupName, jobName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public JobInner suspend(String resourceGroupName, String jobName) { + return suspendAsync(resourceGroupName, jobName).block(); + } + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public JobInner suspend(String resourceGroupName, String jobName, Context context) { + return suspendAsync(resourceGroupName, jobName, context).block(); + } + /** * Get the next page of items. * diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobsImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobsImpl.java index f4543f7928e6..0cefdf55e27b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobsImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/JobsImpl.java @@ -201,6 +201,42 @@ public JobSecretsCollection listSecrets(String resourceGroupName, String jobName } } + public Job resume(String resourceGroupName, String jobName) { + JobInner inner = this.serviceClient().resume(resourceGroupName, jobName); + if (inner != null) { + return new JobImpl(inner, this.manager()); + } else { + return null; + } + } + + public Job resume(String resourceGroupName, String jobName, Context context) { + JobInner inner = this.serviceClient().resume(resourceGroupName, jobName, context); + if (inner != null) { + return new JobImpl(inner, this.manager()); + } else { + return null; + } + } + + public Job suspend(String resourceGroupName, String jobName) { + JobInner inner = this.serviceClient().suspend(resourceGroupName, jobName); + if (inner != null) { + return new JobImpl(inner, this.manager()); + } else { + return null; + } + } + + public Job suspend(String resourceGroupName, String jobName, Context context) { + JobInner inner = this.serviceClient().suspend(resourceGroupName, jobName, context); + if (inner != null) { + return new JobImpl(inner, this.manager()); + } else { + return null; + } + } + public Job getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/SourceControlImpl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/SourceControlImpl.java index 49070a189996..876efe01ccaa 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/SourceControlImpl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/implementation/SourceControlImpl.java @@ -66,6 +66,10 @@ private com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager( private String sourceControlName; + private String createXMsGithubAuxiliary; + + private String updateXMsGithubAuxiliary; + public SourceControlImpl withExistingContainerApp(String resourceGroupName, String containerAppName) { this.resourceGroupName = resourceGroupName; this.containerAppName = containerAppName; @@ -75,14 +79,16 @@ public SourceControlImpl withExistingContainerApp(String resourceGroupName, Stri public SourceControl create() { this.innerObject = serviceManager.serviceClient() .getContainerAppsSourceControls() - .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, createXMsGithubAuxiliary, + this.innerModel(), Context.NONE); return this; } public SourceControl create(Context context) { this.innerObject = serviceManager.serviceClient() .getContainerAppsSourceControls() - .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, this.innerModel(), context); + .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, createXMsGithubAuxiliary, + this.innerModel(), context); return this; } @@ -90,23 +96,27 @@ public SourceControl create(Context context) { this.innerObject = new SourceControlInner(); this.serviceManager = serviceManager; this.sourceControlName = name; + this.createXMsGithubAuxiliary = null; } public SourceControlImpl update() { + this.updateXMsGithubAuxiliary = null; return this; } public SourceControl apply() { this.innerObject = serviceManager.serviceClient() .getContainerAppsSourceControls() - .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, this.innerModel(), Context.NONE); + .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, updateXMsGithubAuxiliary, + this.innerModel(), Context.NONE); return this; } public SourceControl apply(Context context) { this.innerObject = serviceManager.serviceClient() .getContainerAppsSourceControls() - .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, this.innerModel(), context); + .createOrUpdate(resourceGroupName, containerAppName, sourceControlName, updateXMsGithubAuxiliary, + this.innerModel(), context); return this; } @@ -149,4 +159,18 @@ public SourceControlImpl withGithubActionConfiguration(GithubActionConfiguration this.innerModel().withGithubActionConfiguration(githubActionConfiguration); return this; } + + public SourceControlImpl withXMsGithubAuxiliary(String xMsGithubAuxiliary) { + if (isInCreateMode()) { + this.createXMsGithubAuxiliary = xMsGithubAuxiliary; + return this; + } else { + this.updateXMsGithubAuxiliary = xMsGithubAuxiliary; + return this; + } + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java index 66b389c0a112..3f86e3387c14 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerApp.java @@ -98,6 +98,13 @@ public interface ContainerApp { */ ContainerAppProvisioningState provisioningState(); + /** + * Gets the deploymentErrors property: Any errors that occurred during deployment. + * + * @return the deploymentErrors value. + */ + String deploymentErrors(); + /** * Gets the managedEnvironmentId property: Deprecated. Resource ID of the Container App's environment. * diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsSourceControls.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsSourceControls.java index 41cc21d952a2..023f25e434f5 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsSourceControls.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ContainerAppsSourceControls.java @@ -77,12 +77,13 @@ Response getWithResponse(String resourceGroupName, String contain * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String containerAppName, String sourceControlName); + void delete(String resourceGroupName, String containerAppName, String sourceControlName, String xMsGithubAuxiliary); /** * Delete a Container App SourceControl. @@ -90,13 +91,17 @@ Response getWithResponse(String resourceGroupName, String contain * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param containerAppName Name of the Container App. * @param sourceControlName Name of the Container App SourceControl. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroupName, String containerAppName, String sourceControlName, Context context); + void delete(String resourceGroupName, String containerAppName, String sourceControlName, String xMsGithubAuxiliary, + Boolean ignoreWorkflowDeletionFailure, Boolean deleteWorkflow, Context context); /** * Get a SourceControl of a Container App. @@ -138,13 +143,17 @@ Response getWithResponse(String resourceGroupName, String contain * Delete a Container App SourceControl. * * @param id the resource ID. + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @param ignoreWorkflowDeletionFailure Ignore Workflow Deletion Failure. + * @param deleteWorkflow Delete workflow. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException thrown if the request * is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteByIdWithResponse(String id, Context context); + void deleteByIdWithResponse(String id, String xMsGithubAuxiliary, Boolean ignoreWorkflowDeletionFailure, + Boolean deleteWorkflow, Context context); /** * Begins definition for a new SourceControl resource. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DefaultErrorResponseError.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DefaultErrorResponseError.java index 5ac8f5104faf..c8a8e0a1b112 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DefaultErrorResponseError.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/DefaultErrorResponseError.java @@ -5,11 +5,13 @@ package com.azure.resourcemanager.appcontainers.models; import com.azure.core.annotation.Immutable; +import com.azure.core.management.exception.AdditionalInfo; import com.azure.core.management.exception.ManagementError; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * App Service error response. @@ -21,6 +23,31 @@ public final class DefaultErrorResponseError extends ManagementError { */ private String innererror; + /* + * The error code parsed from the body of the http error response. + */ + private String code; + + /* + * The error message parsed from the body of the http error response. + */ + private String message; + + /* + * The target of the error. + */ + private String target; + + /* + * Details for the error. + */ + private List details; + + /* + * Additional info for the error. + */ + private List additionalInfo; + /** * Creates an instance of DefaultErrorResponseError class. */ @@ -36,6 +63,56 @@ public String getInnererror() { return this.innererror; } + /** + * Get the code property: The error code parsed from the body of the http error response. + * + * @return the code value. + */ + @Override + public String getCode() { + return this.code; + } + + /** + * Get the message property: The error message parsed from the body of the http error response. + * + * @return the message value. + */ + @Override + public String getMessage() { + return this.message; + } + + /** + * Get the target property: The target of the error. + * + * @return the target value. + */ + @Override + public String getTarget() { + return this.target; + } + + /** + * Get the details property: Details for the error. + * + * @return the details value. + */ + @Override + public List getDetails() { + return this.details; + } + + /** + * Get the additionalInfo property: Additional info for the error. + * + * @return the additionalInfo value. + */ + @Override + public List getAdditionalInfo() { + return this.additionalInfo; + } + /** * Validates the instance. * @@ -62,13 +139,43 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @throws IOException If an error occurs while reading the DefaultErrorResponseError. */ public static DefaultErrorResponseError fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JsonReader bufferedReader = reader.bufferObject(); + bufferedReader.nextToken(); + while (bufferedReader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = bufferedReader.getFieldName(); + bufferedReader.nextToken(); + + if ("error".equals(fieldName)) { + return readManagementError(bufferedReader); + } else { + bufferedReader.skipChildren(); + } + } + return readManagementError(bufferedReader.reset()); + }); + } + + private static DefaultErrorResponseError readManagementError(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { DefaultErrorResponseError deserializedDefaultErrorResponseError = new DefaultErrorResponseError(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); - if ("innererror".equals(fieldName)) { + if ("code".equals(fieldName)) { + deserializedDefaultErrorResponseError.code = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedDefaultErrorResponseError.message = reader.getString(); + } else if ("target".equals(fieldName)) { + deserializedDefaultErrorResponseError.target = reader.getString(); + } else if ("details".equals(fieldName)) { + List details = reader.readArray(reader1 -> ManagementError.fromJson(reader1)); + deserializedDefaultErrorResponseError.details = details; + } else if ("additionalInfo".equals(fieldName)) { + List additionalInfo = reader.readArray(reader1 -> AdditionalInfo.fromJson(reader1)); + deserializedDefaultErrorResponseError.additionalInfo = additionalInfo; + } else if ("innererror".equals(fieldName)) { deserializedDefaultErrorResponseError.innererror = reader.getString(); } else { reader.skipChildren(); diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentProperties.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentProperties.java index 8018f5112916..6de48a551d17 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentProperties.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentProperties.java @@ -32,6 +32,11 @@ public class JavaComponentProperties implements JsonSerializable configurations; + /* + * Java component scaling configurations + */ + private JavaComponentPropertiesScale scale; + /* * List of Java Components that are bound to the Java component */ @@ -92,6 +97,26 @@ public JavaComponentProperties withConfigurations(List e.validate()); } + if (scale() != null) { + scale().validate(); + } if (serviceBinds() != null) { serviceBinds().forEach(e -> e.validate()); } @@ -135,6 +163,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("componentType", this.componentType == null ? null : this.componentType.toString()); jsonWriter.writeArrayField("configurations", this.configurations, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("scale", this.scale); jsonWriter.writeArrayField("serviceBinds", this.serviceBinds, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -163,7 +192,9 @@ public static JavaComponentProperties fromJson(JsonReader jsonReader) throws IOE } } // Use the discriminator value to determine which subtype should be deserialized. - if ("SpringBootAdmin".equals(discriminatorValue)) { + if ("SpringCloudGateway".equals(discriminatorValue)) { + return SpringCloudGatewayComponent.fromJson(readerToUse.reset()); + } else if ("SpringBootAdmin".equals(discriminatorValue)) { return SpringBootAdminComponent.fromJson(readerToUse.reset()); } else if ("Nacos".equals(discriminatorValue)) { return NacosComponent.fromJson(readerToUse.reset()); @@ -195,6 +226,8 @@ static JavaComponentProperties fromJsonKnownDiscriminator(JsonReader jsonReader) List configurations = reader.readArray(reader1 -> JavaComponentConfigurationProperty.fromJson(reader1)); deserializedJavaComponentProperties.configurations = configurations; + } else if ("scale".equals(fieldName)) { + deserializedJavaComponentProperties.scale = JavaComponentPropertiesScale.fromJson(reader); } else if ("serviceBinds".equals(fieldName)) { List serviceBinds = reader.readArray(reader1 -> JavaComponentServiceBind.fromJson(reader1)); diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentPropertiesScale.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentPropertiesScale.java new file mode 100644 index 000000000000..52f374b5767e --- /dev/null +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentPropertiesScale.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appcontainers.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Java component scaling configurations. + */ +@Fluent +public final class JavaComponentPropertiesScale implements JsonSerializable { + /* + * Optional. Minimum number of Java component replicas. Defaults to 1 if not set + */ + private Integer minReplicas; + + /* + * Optional. Maximum number of Java component replicas + */ + private Integer maxReplicas; + + /** + * Creates an instance of JavaComponentPropertiesScale class. + */ + public JavaComponentPropertiesScale() { + } + + /** + * Get the minReplicas property: Optional. Minimum number of Java component replicas. Defaults to 1 if not set. + * + * @return the minReplicas value. + */ + public Integer minReplicas() { + return this.minReplicas; + } + + /** + * Set the minReplicas property: Optional. Minimum number of Java component replicas. Defaults to 1 if not set. + * + * @param minReplicas the minReplicas value to set. + * @return the JavaComponentPropertiesScale object itself. + */ + public JavaComponentPropertiesScale withMinReplicas(Integer minReplicas) { + this.minReplicas = minReplicas; + return this; + } + + /** + * Get the maxReplicas property: Optional. Maximum number of Java component replicas. + * + * @return the maxReplicas value. + */ + public Integer maxReplicas() { + return this.maxReplicas; + } + + /** + * Set the maxReplicas property: Optional. Maximum number of Java component replicas. + * + * @param maxReplicas the maxReplicas value to set. + * @return the JavaComponentPropertiesScale object itself. + */ + public JavaComponentPropertiesScale withMaxReplicas(Integer maxReplicas) { + this.maxReplicas = maxReplicas; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("minReplicas", this.minReplicas); + jsonWriter.writeNumberField("maxReplicas", this.maxReplicas); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JavaComponentPropertiesScale from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JavaComponentPropertiesScale if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the JavaComponentPropertiesScale. + */ + public static JavaComponentPropertiesScale fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JavaComponentPropertiesScale deserializedJavaComponentPropertiesScale = new JavaComponentPropertiesScale(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("minReplicas".equals(fieldName)) { + deserializedJavaComponentPropertiesScale.minReplicas = reader.getNullable(JsonReader::getInt); + } else if ("maxReplicas".equals(fieldName)) { + deserializedJavaComponentPropertiesScale.maxReplicas = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedJavaComponentPropertiesScale; + }); + } +} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentType.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentType.java index 696ebf961633..d53349332fe6 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentType.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/JavaComponentType.java @@ -26,6 +26,11 @@ public final class JavaComponentType extends ExpandableStringEnum { + /** + * Static value Active for JobRunningState. + */ + public static final JobRunningState ACTIVE = fromString("Active"); + + /** + * Static value InProgress for JobRunningState. + */ + public static final JobRunningState IN_PROGRESS = fromString("InProgress"); + + /** + * Static value Suspended for JobRunningState. + */ + public static final JobRunningState SUSPENDED = fromString("Suspended"); + + /** + * Creates a new instance of JobRunningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public JobRunningState() { + } + + /** + * Creates or finds a JobRunningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding JobRunningState. + */ + public static JobRunningState fromString(String name) { + return fromString(name, JobRunningState.class); + } + + /** + * Gets known JobRunningState values. + * + * @return known JobRunningState values. + */ + public static Collection values() { + return values(JobRunningState.class); + } +} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Jobs.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Jobs.java index 6c0a3b9cb862..0a86b1e5afcf 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Jobs.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/Jobs.java @@ -316,6 +316,56 @@ Response getDetectorWithResponse(String resourceGroupName, String j */ JobSecretsCollection listSecrets(String resourceGroupName, String jobName); + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + Job resume(String resourceGroupName, String jobName); + + /** + * Resumes a suspended job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + Job resume(String resourceGroupName, String jobName, Context context); + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + Job suspend(String resourceGroupName, String jobName); + + /** + * Suspends a job. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param jobName Job Name. + * @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 container App Job. + */ + Job suspend(String resourceGroupName, String jobName, Context context); + /** * Get the properties of a Container Apps Job. * diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/NacosComponent.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/NacosComponent.java index 8e43bdcc3a7b..0e97fc3358a2 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/NacosComponent.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/NacosComponent.java @@ -86,6 +86,15 @@ public NacosComponent withConfigurations(List writer.writeJson(element)); + jsonWriter.writeJsonField("scale", scale()); jsonWriter.writeArrayField("serviceBinds", serviceBinds(), (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("componentType", this.componentType == null ? null : this.componentType.toString()); jsonWriter.writeJsonField("ingress", this.ingress); @@ -143,6 +153,8 @@ public static NacosComponent fromJson(JsonReader jsonReader) throws IOException List configurations = reader.readArray(reader1 -> JavaComponentConfigurationProperty.fromJson(reader1)); deserializedNacosComponent.withConfigurations(configurations); + } else if ("scale".equals(fieldName)) { + deserializedNacosComponent.withScale(JavaComponentPropertiesScale.fromJson(reader)); } else if ("serviceBinds".equals(fieldName)) { List serviceBinds = reader.readArray(reader1 -> JavaComponentServiceBind.fromJson(reader1)); diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ReplicaContainer.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ReplicaContainer.java index 7e6a12306caa..28823652940e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ReplicaContainer.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/ReplicaContainer.java @@ -61,6 +61,11 @@ public final class ReplicaContainer implements JsonSerializable { + /* + * Id of the route + */ + private String id; + + /* + * Uri of the route + */ + private String uri; + + /* + * Predicates of the route + */ + private List predicates; + + /* + * Filters of the route + */ + private List filters; + + /* + * Order of the route + */ + private Long order; + + /** + * Creates an instance of ScgRoute class. + */ + public ScgRoute() { + } + + /** + * Get the id property: Id of the route. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Id of the route. + * + * @param id the id value to set. + * @return the ScgRoute object itself. + */ + public ScgRoute withId(String id) { + this.id = id; + return this; + } + + /** + * Get the uri property: Uri of the route. + * + * @return the uri value. + */ + public String uri() { + return this.uri; + } + + /** + * Set the uri property: Uri of the route. + * + * @param uri the uri value to set. + * @return the ScgRoute object itself. + */ + public ScgRoute withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get the predicates property: Predicates of the route. + * + * @return the predicates value. + */ + public List predicates() { + return this.predicates; + } + + /** + * Set the predicates property: Predicates of the route. + * + * @param predicates the predicates value to set. + * @return the ScgRoute object itself. + */ + public ScgRoute withPredicates(List predicates) { + this.predicates = predicates; + return this; + } + + /** + * Get the filters property: Filters of the route. + * + * @return the filters value. + */ + public List filters() { + return this.filters; + } + + /** + * Set the filters property: Filters of the route. + * + * @param filters the filters value to set. + * @return the ScgRoute object itself. + */ + public ScgRoute withFilters(List filters) { + this.filters = filters; + return this; + } + + /** + * Get the order property: Order of the route. + * + * @return the order value. + */ + public Long order() { + return this.order; + } + + /** + * Set the order property: Order of the route. + * + * @param order the order value to set. + * @return the ScgRoute object itself. + */ + public ScgRoute withOrder(Long order) { + this.order = order; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (id() == null) { + throw LOGGER.atError().log(new IllegalArgumentException("Missing required property id in model ScgRoute")); + } + if (uri() == null) { + throw LOGGER.atError().log(new IllegalArgumentException("Missing required property uri in model ScgRoute")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ScgRoute.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + jsonWriter.writeStringField("uri", this.uri); + jsonWriter.writeArrayField("predicates", this.predicates, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("filters", this.filters, (writer, element) -> writer.writeString(element)); + jsonWriter.writeNumberField("order", this.order); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ScgRoute from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ScgRoute if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ScgRoute. + */ + public static ScgRoute fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ScgRoute deserializedScgRoute = new ScgRoute(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedScgRoute.id = reader.getString(); + } else if ("uri".equals(fieldName)) { + deserializedScgRoute.uri = reader.getString(); + } else if ("predicates".equals(fieldName)) { + List predicates = reader.readArray(reader1 -> reader1.getString()); + deserializedScgRoute.predicates = predicates; + } else if ("filters".equals(fieldName)) { + List filters = reader.readArray(reader1 -> reader1.getString()); + deserializedScgRoute.filters = filters; + } else if ("order".equals(fieldName)) { + deserializedScgRoute.order = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedScgRoute; + }); + } +} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SourceControl.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SourceControl.java index 14349f87c7ce..bb8d64ff2fbf 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SourceControl.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SourceControl.java @@ -120,7 +120,7 @@ interface WithParentResource { * to be created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithRepoUrl, DefinitionStages.WithBranch, - DefinitionStages.WithGithubActionConfiguration { + DefinitionStages.WithGithubActionConfiguration, DefinitionStages.WithXMsGithubAuxiliary { /** * Executes the create request. * @@ -180,6 +180,19 @@ interface WithGithubActionConfiguration { */ WithCreate withGithubActionConfiguration(GithubActionConfiguration githubActionConfiguration); } + + /** + * The stage of the SourceControl definition allowing to specify xMsGithubAuxiliary. + */ + interface WithXMsGithubAuxiliary { + /** + * Specifies the xMsGithubAuxiliary property: Github personal access token used for SourceControl.. + * + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @return the next definition stage. + */ + WithCreate withXMsGithubAuxiliary(String xMsGithubAuxiliary); + } } /** @@ -192,8 +205,8 @@ interface WithGithubActionConfiguration { /** * The template for SourceControl update. */ - interface Update - extends UpdateStages.WithRepoUrl, UpdateStages.WithBranch, UpdateStages.WithGithubActionConfiguration { + interface Update extends UpdateStages.WithRepoUrl, UpdateStages.WithBranch, + UpdateStages.WithGithubActionConfiguration, UpdateStages.WithXMsGithubAuxiliary { /** * Executes the update request. * @@ -257,6 +270,19 @@ interface WithGithubActionConfiguration { */ Update withGithubActionConfiguration(GithubActionConfiguration githubActionConfiguration); } + + /** + * The stage of the SourceControl update allowing to specify xMsGithubAuxiliary. + */ + interface WithXMsGithubAuxiliary { + /** + * Specifies the xMsGithubAuxiliary property: Github personal access token used for SourceControl.. + * + * @param xMsGithubAuxiliary Github personal access token used for SourceControl. + * @return the next definition stage. + */ + Update withXMsGithubAuxiliary(String xMsGithubAuxiliary); + } } /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringBootAdminComponent.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringBootAdminComponent.java index 4318656a3904..26bed488fe8b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringBootAdminComponent.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringBootAdminComponent.java @@ -86,6 +86,15 @@ public SpringBootAdminComponent withConfigurations(List writer.writeJson(element)); + jsonWriter.writeJsonField("scale", scale()); jsonWriter.writeArrayField("serviceBinds", serviceBinds(), (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("componentType", this.componentType == null ? null : this.componentType.toString()); jsonWriter.writeJsonField("ingress", this.ingress); @@ -143,6 +153,8 @@ public static SpringBootAdminComponent fromJson(JsonReader jsonReader) throws IO List configurations = reader.readArray(reader1 -> JavaComponentConfigurationProperty.fromJson(reader1)); deserializedSpringBootAdminComponent.withConfigurations(configurations); + } else if ("scale".equals(fieldName)) { + deserializedSpringBootAdminComponent.withScale(JavaComponentPropertiesScale.fromJson(reader)); } else if ("serviceBinds".equals(fieldName)) { List serviceBinds = reader.readArray(reader1 -> JavaComponentServiceBind.fromJson(reader1)); diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudConfigComponent.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudConfigComponent.java index 20712411314a..31ba29e95a09 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudConfigComponent.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudConfigComponent.java @@ -61,6 +61,15 @@ public SpringCloudConfigComponent withConfigurations(List writer.writeJson(element)); + jsonWriter.writeJsonField("scale", scale()); jsonWriter.writeArrayField("serviceBinds", serviceBinds(), (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("componentType", this.componentType == null ? null : this.componentType.toString()); return jsonWriter.writeEndObject(); @@ -114,6 +124,8 @@ public static SpringCloudConfigComponent fromJson(JsonReader jsonReader) throws List configurations = reader.readArray(reader1 -> JavaComponentConfigurationProperty.fromJson(reader1)); deserializedSpringCloudConfigComponent.withConfigurations(configurations); + } else if ("scale".equals(fieldName)) { + deserializedSpringCloudConfigComponent.withScale(JavaComponentPropertiesScale.fromJson(reader)); } else if ("serviceBinds".equals(fieldName)) { List serviceBinds = reader.readArray(reader1 -> JavaComponentServiceBind.fromJson(reader1)); diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudEurekaComponent.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudEurekaComponent.java index 8ec5e46d1dee..d96296b06755 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudEurekaComponent.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudEurekaComponent.java @@ -86,6 +86,15 @@ public SpringCloudEurekaComponent withConfigurations(List writer.writeJson(element)); + jsonWriter.writeJsonField("scale", scale()); jsonWriter.writeArrayField("serviceBinds", serviceBinds(), (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("componentType", this.componentType == null ? null : this.componentType.toString()); jsonWriter.writeJsonField("ingress", this.ingress); @@ -143,6 +153,8 @@ public static SpringCloudEurekaComponent fromJson(JsonReader jsonReader) throws List configurations = reader.readArray(reader1 -> JavaComponentConfigurationProperty.fromJson(reader1)); deserializedSpringCloudEurekaComponent.withConfigurations(configurations); + } else if ("scale".equals(fieldName)) { + deserializedSpringCloudEurekaComponent.withScale(JavaComponentPropertiesScale.fromJson(reader)); } else if ("serviceBinds".equals(fieldName)) { List serviceBinds = reader.readArray(reader1 -> JavaComponentServiceBind.fromJson(reader1)); diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudGatewayComponent.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudGatewayComponent.java new file mode 100644 index 000000000000..0015f0392e20 --- /dev/null +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/java/com/azure/resourcemanager/appcontainers/models/SpringCloudGatewayComponent.java @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appcontainers.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Spring Cloud Gateway properties. + */ +@Fluent +public final class SpringCloudGatewayComponent extends JavaComponentProperties { + /* + * Type of the Java Component. + */ + private JavaComponentType componentType = JavaComponentType.SPRING_CLOUD_GATEWAY; + + /* + * Java Component Ingress configurations. + */ + private JavaComponentIngress ingress; + + /* + * Gateway route definition + */ + private List springCloudGatewayRoutes; + + /* + * Provisioning state of the Java Component. + */ + private JavaComponentProvisioningState provisioningState; + + /** + * Creates an instance of SpringCloudGatewayComponent class. + */ + public SpringCloudGatewayComponent() { + } + + /** + * Get the componentType property: Type of the Java Component. + * + * @return the componentType value. + */ + @Override + public JavaComponentType componentType() { + return this.componentType; + } + + /** + * Get the ingress property: Java Component Ingress configurations. + * + * @return the ingress value. + */ + public JavaComponentIngress ingress() { + return this.ingress; + } + + /** + * Set the ingress property: Java Component Ingress configurations. + * + * @param ingress the ingress value to set. + * @return the SpringCloudGatewayComponent object itself. + */ + public SpringCloudGatewayComponent withIngress(JavaComponentIngress ingress) { + this.ingress = ingress; + return this; + } + + /** + * Get the springCloudGatewayRoutes property: Gateway route definition. + * + * @return the springCloudGatewayRoutes value. + */ + public List springCloudGatewayRoutes() { + return this.springCloudGatewayRoutes; + } + + /** + * Set the springCloudGatewayRoutes property: Gateway route definition. + * + * @param springCloudGatewayRoutes the springCloudGatewayRoutes value to set. + * @return the SpringCloudGatewayComponent object itself. + */ + public SpringCloudGatewayComponent withSpringCloudGatewayRoutes(List springCloudGatewayRoutes) { + this.springCloudGatewayRoutes = springCloudGatewayRoutes; + return this; + } + + /** + * Get the provisioningState property: Provisioning state of the Java Component. + * + * @return the provisioningState value. + */ + @Override + public JavaComponentProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public SpringCloudGatewayComponent withConfigurations(List configurations) { + super.withConfigurations(configurations); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public SpringCloudGatewayComponent withScale(JavaComponentPropertiesScale scale) { + super.withScale(scale); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public SpringCloudGatewayComponent withServiceBinds(List serviceBinds) { + super.withServiceBinds(serviceBinds); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (ingress() != null) { + ingress().validate(); + } + if (springCloudGatewayRoutes() != null) { + springCloudGatewayRoutes().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("configurations", configurations(), (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("scale", scale()); + jsonWriter.writeArrayField("serviceBinds", serviceBinds(), (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("componentType", this.componentType == null ? null : this.componentType.toString()); + jsonWriter.writeJsonField("ingress", this.ingress); + jsonWriter.writeArrayField("springCloudGatewayRoutes", this.springCloudGatewayRoutes, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SpringCloudGatewayComponent from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SpringCloudGatewayComponent if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SpringCloudGatewayComponent. + */ + public static SpringCloudGatewayComponent fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SpringCloudGatewayComponent deserializedSpringCloudGatewayComponent = new SpringCloudGatewayComponent(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedSpringCloudGatewayComponent.provisioningState + = JavaComponentProvisioningState.fromString(reader.getString()); + } else if ("configurations".equals(fieldName)) { + List configurations + = reader.readArray(reader1 -> JavaComponentConfigurationProperty.fromJson(reader1)); + deserializedSpringCloudGatewayComponent.withConfigurations(configurations); + } else if ("scale".equals(fieldName)) { + deserializedSpringCloudGatewayComponent.withScale(JavaComponentPropertiesScale.fromJson(reader)); + } else if ("serviceBinds".equals(fieldName)) { + List serviceBinds + = reader.readArray(reader1 -> JavaComponentServiceBind.fromJson(reader1)); + deserializedSpringCloudGatewayComponent.withServiceBinds(serviceBinds); + } else if ("componentType".equals(fieldName)) { + deserializedSpringCloudGatewayComponent.componentType + = JavaComponentType.fromString(reader.getString()); + } else if ("ingress".equals(fieldName)) { + deserializedSpringCloudGatewayComponent.ingress = JavaComponentIngress.fromJson(reader); + } else if ("springCloudGatewayRoutes".equals(fieldName)) { + List springCloudGatewayRoutes = reader.readArray(reader1 -> ScgRoute.fromJson(reader1)); + deserializedSpringCloudGatewayComponent.springCloudGatewayRoutes = springCloudGatewayRoutes; + } else { + reader.skipChildren(); + } + } + + return deserializedSpringCloudGatewayComponent; + }); + } +} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcontainers/proxy-config.json b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcontainers/proxy-config.json index 7811597dd1c0..6f609874b907 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcontainers/proxy-config.json +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcontainers/proxy-config.json @@ -1 +1 @@ -[ [ "com.azure.resourcemanager.appcontainers.implementation.AppResilienciesClientImpl$AppResilienciesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.AvailableWorkloadProfilesClientImpl$AvailableWorkloadProfilesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.BillingMetersClientImpl$BillingMetersService" ], [ "com.azure.resourcemanager.appcontainers.implementation.BuildAuthTokensClientImpl$BuildAuthTokensService" ], [ "com.azure.resourcemanager.appcontainers.implementation.BuildersClientImpl$BuildersService" ], [ "com.azure.resourcemanager.appcontainers.implementation.BuildsByBuilderResourcesClientImpl$BuildsByBuilderResourcesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.BuildsClientImpl$BuildsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.CertificatesClientImpl$CertificatesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsCertificatesClientImpl$ConnectedEnvironmentsCertificatesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsClientImpl$ConnectedEnvironmentsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsDaprComponentsClientImpl$ConnectedEnvironmentsDaprComponentsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsStoragesClientImpl$ConnectedEnvironmentsStoragesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsAuthConfigsClientImpl$ContainerAppsAuthConfigsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsByContainerAppsClientImpl$ContainerAppsBuildsByContainerAppsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsClientImpl$ContainerAppsBuildsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsClientImpl$ContainerAppsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsDiagnosticsClientImpl$ContainerAppsDiagnosticsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsPatchesClientImpl$ContainerAppsPatchesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionReplicasClientImpl$ContainerAppsRevisionReplicasService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionsClientImpl$ContainerAppsRevisionsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSessionPoolsClientImpl$ContainerAppsSessionPoolsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSourceControlsClientImpl$ContainerAppsSourceControlsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.DaprComponentResiliencyPoliciesClientImpl$DaprComponentResiliencyPoliciesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.DaprComponentsClientImpl$DaprComponentsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.DaprSubscriptionsClientImpl$DaprSubscriptionsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.DotNetComponentsClientImpl$DotNetComponentsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.FunctionsExtensionsClientImpl$FunctionsExtensionsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.JavaComponentsClientImpl$JavaComponentsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.JobsClientImpl$JobsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.JobsExecutionsClientImpl$JobsExecutionsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.LogicAppsClientImpl$LogicAppsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ManagedCertificatesClientImpl$ManagedCertificatesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentDiagnosticsClientImpl$ManagedEnvironmentDiagnosticsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentPrivateEndpointConnectionsClientImpl$ManagedEnvironmentPrivateEndpointConnectionsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentPrivateLinkResourcesClientImpl$ManagedEnvironmentPrivateLinkResourcesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentUsagesClientImpl$ManagedEnvironmentUsagesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsClientImpl$ManagedEnvironmentsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsDiagnosticsClientImpl$ManagedEnvironmentsDiagnosticsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsStoragesClientImpl$ManagedEnvironmentsStoragesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.NamespacesClientImpl$NamespacesService" ], [ "com.azure.resourcemanager.appcontainers.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.appcontainers.implementation.ResourceProvidersClientImpl$ResourceProvidersService" ], [ "com.azure.resourcemanager.appcontainers.implementation.UsagesClientImpl$UsagesService" ] ] \ No newline at end of file +[["com.azure.resourcemanager.appcontainers.implementation.AppResilienciesClientImpl$AppResilienciesService"],["com.azure.resourcemanager.appcontainers.implementation.AvailableWorkloadProfilesClientImpl$AvailableWorkloadProfilesService"],["com.azure.resourcemanager.appcontainers.implementation.BillingMetersClientImpl$BillingMetersService"],["com.azure.resourcemanager.appcontainers.implementation.BuildAuthTokensClientImpl$BuildAuthTokensService"],["com.azure.resourcemanager.appcontainers.implementation.BuildersClientImpl$BuildersService"],["com.azure.resourcemanager.appcontainers.implementation.BuildsByBuilderResourcesClientImpl$BuildsByBuilderResourcesService"],["com.azure.resourcemanager.appcontainers.implementation.BuildsClientImpl$BuildsService"],["com.azure.resourcemanager.appcontainers.implementation.CertificatesClientImpl$CertificatesService"],["com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsCertificatesClientImpl$ConnectedEnvironmentsCertificatesService"],["com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsClientImpl$ConnectedEnvironmentsService"],["com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsDaprComponentsClientImpl$ConnectedEnvironmentsDaprComponentsService"],["com.azure.resourcemanager.appcontainers.implementation.ConnectedEnvironmentsStoragesClientImpl$ConnectedEnvironmentsStoragesService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsAuthConfigsClientImpl$ContainerAppsAuthConfigsService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsByContainerAppsClientImpl$ContainerAppsBuildsByContainerAppsService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsBuildsClientImpl$ContainerAppsBuildsService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsClientImpl$ContainerAppsService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsDiagnosticsClientImpl$ContainerAppsDiagnosticsService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsPatchesClientImpl$ContainerAppsPatchesService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionReplicasClientImpl$ContainerAppsRevisionReplicasService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsRevisionsClientImpl$ContainerAppsRevisionsService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSessionPoolsClientImpl$ContainerAppsSessionPoolsService"],["com.azure.resourcemanager.appcontainers.implementation.ContainerAppsSourceControlsClientImpl$ContainerAppsSourceControlsService"],["com.azure.resourcemanager.appcontainers.implementation.DaprComponentResiliencyPoliciesClientImpl$DaprComponentResiliencyPoliciesService"],["com.azure.resourcemanager.appcontainers.implementation.DaprComponentsClientImpl$DaprComponentsService"],["com.azure.resourcemanager.appcontainers.implementation.DaprSubscriptionsClientImpl$DaprSubscriptionsService"],["com.azure.resourcemanager.appcontainers.implementation.DotNetComponentsClientImpl$DotNetComponentsService"],["com.azure.resourcemanager.appcontainers.implementation.FunctionsExtensionsClientImpl$FunctionsExtensionsService"],["com.azure.resourcemanager.appcontainers.implementation.JavaComponentsClientImpl$JavaComponentsService"],["com.azure.resourcemanager.appcontainers.implementation.JobsClientImpl$JobsService"],["com.azure.resourcemanager.appcontainers.implementation.JobsExecutionsClientImpl$JobsExecutionsService"],["com.azure.resourcemanager.appcontainers.implementation.LogicAppsClientImpl$LogicAppsService"],["com.azure.resourcemanager.appcontainers.implementation.ManagedCertificatesClientImpl$ManagedCertificatesService"],["com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentDiagnosticsClientImpl$ManagedEnvironmentDiagnosticsService"],["com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentPrivateEndpointConnectionsClientImpl$ManagedEnvironmentPrivateEndpointConnectionsService"],["com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentPrivateLinkResourcesClientImpl$ManagedEnvironmentPrivateLinkResourcesService"],["com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentUsagesClientImpl$ManagedEnvironmentUsagesService"],["com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsClientImpl$ManagedEnvironmentsService"],["com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsDiagnosticsClientImpl$ManagedEnvironmentsDiagnosticsService"],["com.azure.resourcemanager.appcontainers.implementation.ManagedEnvironmentsStoragesClientImpl$ManagedEnvironmentsStoragesService"],["com.azure.resourcemanager.appcontainers.implementation.NamespacesClientImpl$NamespacesService"],["com.azure.resourcemanager.appcontainers.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.appcontainers.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.appcontainers.implementation.UsagesClientImpl$UsagesService"]] \ No newline at end of file diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcontainers/reflect-config.json b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcontainers/reflect-config.json index 2380cf8ef258..66577129d69a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcontainers/reflect-config.json +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appcontainers/reflect-config.json @@ -1,11 +1 @@ -[ { - "name" : "com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseError", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -}, { - "name" : "com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException", - "allDeclaredConstructors" : true, - "allDeclaredFields" : true, - "allDeclaredMethods" : true -} ] \ No newline at end of file +[{"name":"com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseError","allDeclaredConstructors":true,"allDeclaredFields":true,"allDeclaredMethods":true},{"name":"com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseErrorException","allDeclaredConstructors":true,"allDeclaredFields":true,"allDeclaredMethods":true}] \ No newline at end of file diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyCreateOrUpdateSamples.java index dc6b79b044a9..a655e3e64ef7 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ public final class AppResiliencyCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_CreateOrUpdate + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_CreateOrUpdate * .json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyDeleteSamples.java index e9e062b26277..5f243cf60b93 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyDeleteSamples.java @@ -10,7 +10,7 @@ public final class AppResiliencyDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Delete.json */ /** * Sample code: Delete App Resiliency. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyGetSamples.java index 852b514bcac8..670ab6692386 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyGetSamples.java @@ -10,7 +10,7 @@ public final class AppResiliencyGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Get.json */ /** * Sample code: Get App Resiliency. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyListSamples.java index 3c54e4b22bb0..022fbc84dd4b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyListSamples.java @@ -10,7 +10,7 @@ public final class AppResiliencyListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_List.json */ /** * Sample code: List App Resiliency. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyUpdateSamples.java index 44a49d80582b..8c2670f7cc53 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AppResiliencyUpdateSamples.java @@ -13,7 +13,7 @@ public final class AppResiliencyUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AppResiliency_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AppResiliency_Patch.json */ /** * Sample code: Update App Resiliency. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetSamples.java index c36bfc958c02..a12d7a7123a3 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetSamples.java @@ -9,7 +9,7 @@ */ public final class AvailableWorkloadProfilesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * AvailableWorkloadProfiles_Get.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetSamples.java index a16e5dc0011f..1e5e9c0983c0 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetSamples.java @@ -10,7 +10,7 @@ public final class BillingMetersGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/BillingMeters_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/BillingMeters_Get.json */ /** * Sample code: BillingMeters_Get. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildAuthTokenListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildAuthTokenListSamples.java index bda7b21c35ae..45d362c81aa8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildAuthTokenListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildAuthTokenListSamples.java @@ -10,7 +10,7 @@ public final class BuildAuthTokenListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_ListAuthToken.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListAuthToken.json */ /** * Sample code: Get Build Auth Token. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateSamples.java index 20711c374823..e9e8a6ba2f2e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateSamples.java @@ -18,7 +18,7 @@ public final class BuildersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_CreateOrUpdate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_CreateOrUpdate.json */ /** * Sample code: Builders_CreateOrUpdate_0. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersDeleteSamples.java index cebc42f463e9..607a1d8c3eb0 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersDeleteSamples.java @@ -10,7 +10,7 @@ public final class BuildersDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Delete.json */ /** * Sample code: Builders_Delete_0. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupSamples.java index 155344fdce08..8d647b3858e6 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class BuildersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Get.json */ /** * Sample code: Builders_Get_0. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupSamples.java index 0d1b5a048c25..0364f5cb3260 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class BuildersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_ListByResourceGroup + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListByResourceGroup * .json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListSamples.java index cb33157e5d10..e9c08445ff52 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersListSamples.java @@ -10,7 +10,7 @@ public final class BuildersListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_ListBySubscription. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_ListBySubscription. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersUpdateSamples.java index 6757032c68ec..c1058b7caa3d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildersUpdateSamples.java @@ -14,7 +14,7 @@ public final class BuildersUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builders_Update.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builders_Update.json */ /** * Sample code: Builders_Update_0. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsByBuilderResourceListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsByBuilderResourceListSamples.java index d910e0ef6a90..47c677bbd637 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsByBuilderResourceListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsByBuilderResourceListSamples.java @@ -10,7 +10,7 @@ public final class BuildsByBuilderResourceListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_ListByBuilderResource + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_ListByBuilderResource * .json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsCreateOrUpdateSamples.java index 169b826c6e75..888b6b413aff 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ public final class BuildsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_CreateOrUpdate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_CreateOrUpdate.json */ /** * Sample code: Builds_CreateOrUpdate_WithConfig. @@ -51,7 +51,7 @@ public final class BuildsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Builds_CreateOrUpdate_NoConfig.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsDeleteSamples.java index 5cecebbd7498..389843972d58 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsDeleteSamples.java @@ -10,7 +10,7 @@ public final class BuildsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Delete.json */ /** * Sample code: Builds_Delete_0. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsGetSamples.java index a6e9edaa8f30..790eea4af08d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/BuildsGetSamples.java @@ -10,7 +10,7 @@ public final class BuildsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Builds_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Builds_Get.json */ /** * Sample code: Builds_Get_0. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java index 0d3ce93c206e..d48c5b3b5427 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class CertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Certificate_CreateOrUpdate_FromKeyVault.json */ /** @@ -37,7 +37,7 @@ public static void createOrUpdateCertificateUsingManagedIdentity( /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_CreateOrUpdate. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_CreateOrUpdate. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java index 66cdc127c984..08afcdbf2e23 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteSamples.java @@ -10,7 +10,7 @@ public final class CertificatesDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Delete.json */ /** * Sample code: Delete Certificate. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java index 1c955e818e47..47a47515f36a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesGetSamples.java @@ -10,7 +10,7 @@ public final class CertificatesGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificate_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificate_Get.json */ /** * Sample code: Get Certificate. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java index 20193ded522d..8662b17bb6cb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesListSamples.java @@ -9,7 +9,7 @@ */ public final class CertificatesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Certificates_ListByManagedEnvironment.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java index 87f2e8bfd03e..15102202b7c3 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/CertificatesUpdateSamples.java @@ -14,7 +14,7 @@ public final class CertificatesUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Certificates_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Certificates_Patch.json */ /** * Sample code: Patch Certificate. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesCreateOrUpdateSamples.java index ad20208b5198..0d9f1a91a497 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class ConnectedEnvironmentsCertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificate_CreateOrUpdate.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteSamples.java index b203e04ba545..6306306c35d9 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsCertificatesDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificate_Delete.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesGetSamples.java index 50981a12ce5e..8cdb91ea0feb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsCertificatesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificate_Get.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesListSamples.java index 6dbd46c816c1..71bf1736d13b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesListSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsCertificatesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesUpdateSamples.java index 1e0517c0ac78..94a92b8ee117 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ConnectedEnvironmentsCertificatesUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificates_Patch.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilitySamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilitySamples.java index 59bdbb542922..08100a185f5e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilitySamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class ConnectedEnvironmentsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsCertificates_CheckNameAvailability.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateSamples.java index 35feb0629da2..b86fb0b7cbb2 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class ConnectedEnvironmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironments_CreateOrUpdate.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples.java index 76f788395736..40144d4aa6a0 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class ConnectedEnvironmentsDaprComponentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteSamples.java index c92d64768eb5..e70ee6e10a3f 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsDaprComponentsDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_Delete.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsGetSamples.java index 5468f29047dc..dad57a35024c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsDaprComponentsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_Get.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSamples.java index bbda64a32593..6b9cc0f5ae4a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsDaprComponentsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_List.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsSamples.java index 409d8085d482..2cd3cc0fb7d9 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsDaprComponentsListSecretsSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsDaprComponents_ListSecrets.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteSamples.java index 66683fb3cab1..dbd6a8ef2db2 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ConnectedEnvironmentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Delete + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Delete * .json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsGetByResourceGroupSamples.java index 631847ee80dd..4a1513f9a4a7 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsGetByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ConnectedEnvironmentsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Get. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Get. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupSamples.java index 5b73ee3002b1..d8eb3c1f3aef 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsListByResourceGroupSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironments_ListByResourceGroup.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListSamples.java index efbbbb3269fc..3f75a3e3bbbb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsListSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironments_ListBySubscription.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesCreateOrUpdateSamples.java index 0df5190b7b58..6d4af124e1a8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ConnectedEnvironmentsStoragesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsStorages_CreateOrUpdate.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteSamples.java index 197f42da07c2..e1a810979bac 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsStoragesDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsStorages_Delete.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesGetSamples.java index a72a928260cd..190191c171c5 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsStoragesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsStorages_Get.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListSamples.java index 6734d4c93e58..6e70076ff301 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesListSamples.java @@ -9,7 +9,7 @@ */ public final class ConnectedEnvironmentsStoragesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ConnectedEnvironmentsStorages_List.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsUpdateSamples.java index a82fe9610eb2..6122dc7fdd37 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsUpdateSamples.java @@ -10,7 +10,7 @@ public final class ConnectedEnvironmentsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ConnectedEnvironments_Patch. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ConnectedEnvironments_Patch. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java index 2e3fbd2f841f..143d66b9a81c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsCreateOrUpdateSamples.java @@ -18,7 +18,7 @@ public final class ContainerAppsAuthConfigsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_CreateOrUpdate. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_CreateOrUpdate. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java index a2f9dc517e96..a49b07fbfbff 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsAuthConfigsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Delete.json */ /** * Sample code: Delete Container App AuthConfig. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java index cd4af96dcb34..9417356a6833 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsGetSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsAuthConfigsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_Get.json */ /** * Sample code: Get Container App's AuthConfig. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java index 1c603273c8e2..143b77f84828 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsListByContainerAppSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsAuthConfigsListByContainerAppSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/AuthConfigs_ListByContainer. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/AuthConfigs_ListByContainer. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsByContainerAppListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsByContainerAppListSamples.java index 5fde9493962b..6686bd6a506e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsByContainerAppListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsByContainerAppListSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsBuildsByContainerAppListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerAppsBuilds_ListByContainerApp.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsDeleteSamples.java index f1b392ce5e15..d794bce2bd4a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsBuildsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsBuilds_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Delete. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsGetSamples.java index c7ba97441185..02938b7801e7 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsGetSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsBuildsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsBuilds_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsBuilds_Get.json */ /** * Sample code: ContainerAppsBuilds_Get_0. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java index be10a427cff8..1c9d835db8eb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsCreateOrUpdateSamples.java @@ -67,7 +67,7 @@ */ public final class ContainerAppsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_SourceToCloudApp_CreateOrUpdate.json */ /** @@ -185,7 +185,7 @@ public final class ContainerAppsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_CreateOrUpdate_ConnectedEnvironment.json */ /** @@ -287,7 +287,7 @@ public static void createOrUpdateAppOnAConnectedEnvironment( /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_CreateOrUpdate + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_CreateOrUpdate * .json */ /** @@ -431,7 +431,7 @@ public static void createOrUpdateAppOnAConnectedEnvironment( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_TcpApp_CreateOrUpdate.json */ /** @@ -468,7 +468,7 @@ public static void createOrUpdateTcpApp(com.azure.resourcemanager.appcontainers. } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_Kind_CreateOrUpdate.json */ /** @@ -497,7 +497,7 @@ public static void createOrUpdateAppKind(com.azure.resourcemanager.appcontainers } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_ManagedBy_CreateOrUpdate.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java index 7e39013ac3d9..5f50dd46a323 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Delete.json */ /** * Sample code: Delete Container App. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorSamples.java index 40b643669ef1..fc000bd6d75a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsDiagnosticsGetDetectorSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsDiagnostics_Get + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsDiagnostics_Get * .json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRevisionSamples.java index 14b345245ea4..ffd1f44ea7c2 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRevisionSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRevisionSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsDiagnosticsGetRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Get.json */ /** * Sample code: Get Container App's revision. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRootSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRootSamples.java index a3e487436092..342aa2656f01 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRootSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetRootSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsDiagnosticsGetRootSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Get.json */ /** * Sample code: Get Container App. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsSamples.java index c08d1e7a8070..21aada039a25 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsDiagnosticsListDetectorsSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerAppsDiagnostics_List.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListRevisionsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListRevisionsSamples.java index a31a2cebf225..aa49ec68ee76 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListRevisionsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListRevisionsSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsDiagnosticsListRevisionsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_List.json */ /** * Sample code: List Container App's revisions. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetAuthTokenSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetAuthTokenSamples.java index 90dfacb4c9d1..d94b7d783319 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetAuthTokenSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetAuthTokenSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsGetAuthTokenSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_GetAuthToken. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_GetAuthToken. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java index 50a8e2463c82..6fb147906e9f 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Get.json */ /** * Sample code: Get Container App. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java index 47549ac241be..7a69c21389d2 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsListByResourceGroupSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_ListByResourceGroup.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java index 9bd6d48ebec5..b47fb8cf7ebe 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListCustomHostnameAnalysisSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsListCustomHostnameAnalysisSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_ListCustomHostNameAnalysis.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java index 4ebb60d86d04..30c03a3b94d8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_ListBySubscription.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java index 489af3ae4e75..7808b22c206f 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsListSecretsSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsListSecretsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_ListSecrets. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_ListSecrets. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesApplySamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesApplySamples.java index 4d2607482b63..37a65cb09de8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesApplySamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesApplySamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsPatchesApplySamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Apply. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Apply. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesDeleteSamples.java index 1cc9f7b88edc..23aaaa9b0663 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesDeleteSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsPatchesDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Delete. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesGetSamples.java index e9f9b4ac09cd..f0bf66130555 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesGetSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsPatchesGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerAppsPatches_Get. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerAppsPatches_Get. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesListByContainerAppSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesListByContainerAppSamples.java index 0537533b6ee7..89b38226f431 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesListByContainerAppSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesListByContainerAppSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsPatchesListByContainerAppSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerAppsPatches_ListByContainerApp.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesSkipConfigureSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesSkipConfigureSamples.java index 82f1169be7a8..2ea4c1b7b00b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesSkipConfigureSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesSkipConfigureSamples.java @@ -11,7 +11,7 @@ */ public final class ContainerAppsPatchesSkipConfigureSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerAppsPatches_Skip_Configure.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java index f3f435de3bcc..be0a59dc733c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionReplicasGetReplicaSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Replicas_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_Get.json */ /** * Sample code: Get Container App's revision replica. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java index b1c784a8c7d4..32236a3fd144 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionReplicasListReplicasSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Replicas_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Replicas_List.json */ /** * Sample code: List Container App's replicas. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java index d3ae6aa59e09..fa1b1328e52e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionsActivateRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Activate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Activate.json */ /** * Sample code: Activate Container App's revision. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java index 5b947acc460f..18268907227c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionsDeactivateRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Deactivate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Deactivate.json */ /** * Sample code: Deactivate Container App's revision. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java index ab6490718e44..66a0df2e7322 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsGetRevisionSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionsGetRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Get.json */ /** * Sample code: Get Container App's revision. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java index 094941f4a71d..86254c2f2c3b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsListRevisionsSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionsListRevisionsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_List.json */ /** * Sample code: List Container App's revisions. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java index bea56b346b04..4ccaba04c1cd 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionsRestartRevisionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Revisions_Restart.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Revisions_Restart.json */ /** * Sample code: Restart Container App's revision. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsCreateOrUpdateSamples.java index 150c698fd282..af9314a90520 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsCreateOrUpdateSamples.java @@ -23,7 +23,7 @@ public final class ContainerAppsSessionPoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_CreateOrUpdate. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_CreateOrUpdate. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsDeleteSamples.java index 775042b90a1f..7b9bd5de12ea 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsSessionPoolsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Delete.json */ /** * Sample code: Delete Session Pool. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsGetByResourceGroupSamples.java index e6eecdbcb5a9..c136e056fa44 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsGetByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsSessionPoolsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Get.json */ /** * Sample code: Get Session Pool. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsListByResourceGroupSamples.java index 436bec073d2b..1677fc7d7798 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsListByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsSessionPoolsListByResourceGroupSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * SessionPools_ListByResourceGroup.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsListSamples.java index 29a8adc78313..37ddb684416e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsListSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsSessionPoolsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * SessionPools_ListBySubscription.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsUpdateSamples.java index c2c011189039..0fabb3c3e25b 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSessionPoolsUpdateSamples.java @@ -22,7 +22,7 @@ public final class ContainerAppsSessionPoolsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SessionPools_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SessionPools_Patch.json */ /** * Sample code: Update Session Pool. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java index 6d874731b95c..88b34facfed8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class ContainerAppsSourceControlsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * SourceControls_CreateOrUpdate.json */ /** @@ -44,6 +44,7 @@ public static void createOrUpdateContainerAppSourceControl( .withBuildEnvironmentVariables( Arrays.asList(new EnvironmentVariable().withName("foo1").withValue("bar1"), new EnvironmentVariable().withName("foo2").withValue("bar2")))) + .withXMsGithubAuxiliary("githubaccesstoken") .create(); } } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java index e5b44d0f3489..9f430abc6070 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsSourceControlsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Delete.json */ /** * Sample code: Delete Container App SourceControl. @@ -20,6 +20,7 @@ public final class ContainerAppsSourceControlsDeleteSamples { public static void deleteContainerAppSourceControl(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) { manager.containerAppsSourceControls() - .delete("workerapps-rg-xj", "testcanadacentral", "current", com.azure.core.util.Context.NONE); + .delete("workerapps-rg-xj", "testcanadacentral", "current", "githubaccesstoken", false, false, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java index 4f29724de9f0..c64fd5555ada 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsGetSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsSourceControlsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/SourceControls_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/SourceControls_Get.json */ /** * Sample code: Get Container App's SourceControl. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java index e9d9abccf26b..d83a9a11534f 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsListByContainerAppSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsSourceControlsListByContainerAppSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * SourceControls_ListByContainer.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsStartSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsStartSamples.java index e44bc17702c5..86025c253520 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsStartSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsStartSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsStartSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Start.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Start.json */ /** * Sample code: Start Container App. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsStopSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsStopSamples.java index 9d6b7102215c..48f53c7c4906 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsStopSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsStopSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsStopSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Stop.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Stop.json */ /** * Sample code: Stop Container App. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java index f80acb8a3238..70e3fa94f245 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsUpdateSamples.java @@ -47,7 +47,7 @@ public final class ContainerAppsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ContainerApps_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ContainerApps_Patch.json */ /** * Sample code: Patch Container App. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCreateOrUpdateSamples.java index b149ae6bf244..d4b9a794ffc7 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class DaprComponentResiliencyPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json */ /** @@ -43,7 +43,7 @@ public static void createOrUpdateDaprComponentResiliencyPolicyWithOutboundPolicy } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicy_CreateOrUpdate_AllOptions.json */ /** @@ -82,7 +82,7 @@ public static void createOrUpdateDaprComponentResiliencyPolicyWithAllOptions( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesDeleteSamples.java index c661fe87e483..c3c9cc5c5868 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class DaprComponentResiliencyPoliciesDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicies_Delete.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesGetSamples.java index a7c0bc63e9a0..f45ee6c3a9eb 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class DaprComponentResiliencyPoliciesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicies_Get.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesListSamples.java index 2f92d6c0b4df..550d0ccdd315 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class DaprComponentResiliencyPoliciesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponentResiliencyPolicies_List.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java index 17bb63bb6260..362037bead0a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class DaprComponentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponents_CreateOrUpdate_Secrets.json */ /** @@ -47,7 +47,7 @@ public static void createOrUpdateDaprComponentWithSecrets( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponents_CreateOrUpdate_SecretStoreComponent.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java index c1baa4e9c929..6a0bd40611f5 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class DaprComponentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Delete.json */ /** * Sample code: Delete dapr component. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java index 826ed01724cf..e1931e12e683 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DaprComponentsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprComponents_Get_SecretStoreComponent.json */ /** @@ -25,7 +25,7 @@ public static void getDaprComponentWithSecretStoreComponent( /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_Get_Secrets. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_Get_Secrets. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java index 411a3af7a8a1..ce2805bc3cd4 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSamples.java @@ -10,7 +10,7 @@ public final class DaprComponentsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_List.json */ /** * Sample code: List Dapr Components. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java index 4daa4da1f6d2..747f433036c5 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsSamples.java @@ -10,7 +10,7 @@ public final class DaprComponentsListSecretsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprComponents_ListSecrets. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprComponents_ListSecrets. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCreateOrUpdateSamples.java index 78e6a4517441..e9752162c894 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class DaprSubscriptionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json */ /** @@ -41,7 +41,7 @@ public static void createOrUpdateDaprSubscriptionWithRouteRulesAndMetadata( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_CreateOrUpdate_DefaultRoute.json */ /** @@ -61,7 +61,7 @@ public static void createOrUpdateDaprSubscriptionWithDefaultRouteOnly( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsDeleteSamples.java index bc7f7b3950b9..b02f4a6eeb4a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsDeleteSamples.java @@ -10,7 +10,7 @@ public final class DaprSubscriptionsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_Delete. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsGetSamples.java index 591553231967..f1a79e7b214e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DaprSubscriptionsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_Get_DefaultRoute.json */ /** @@ -24,7 +24,7 @@ public static void getDaprSubscriptionWithBulkSubscribeConfigurationAndScopes( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_Get_BulkSubscribeAndScopes.json */ /** @@ -39,7 +39,7 @@ public static void getDaprSubscriptionWithDefaultRouteOnly( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DaprSubscriptions_Get_RouteRulesAndMetadata.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsListSamples.java index ef535f82329e..faa20c8c5279 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsListSamples.java @@ -10,7 +10,7 @@ public final class DaprSubscriptionsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DaprSubscriptions_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DaprSubscriptions_List.json */ /** * Sample code: List Dapr subscriptions. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCreateOrUpdateSamples.java index d86c3991449e..7095a1aa2bc5 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class DotNetComponentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_CreateOrUpdate.json */ /** @@ -34,7 +34,7 @@ public final class DotNetComponentsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_CreateOrUpdate_ServiceBind.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsDeleteSamples.java index 935f76edd5dd..72fecd980925 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class DotNetComponentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Delete.json */ /** * Sample code: Delete .NET Component. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsGetSamples.java index 9178a24e6eba..3d3fe0a9f2e4 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DotNetComponentsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_Get_ServiceBind.json */ /** @@ -25,7 +25,7 @@ public final class DotNetComponentsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Get.json */ /** * Sample code: Get .NET Component. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsListSamples.java index d5995ea5ec32..9e2ec3d64fb1 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsListSamples.java @@ -10,7 +10,7 @@ public final class DotNetComponentsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_List.json */ /** * Sample code: List .NET Components. @@ -22,7 +22,7 @@ public static void listNETComponents(com.azure.resourcemanager.appcontainers.Con } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_List_ServiceBind.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsUpdateSamples.java index f54adca4c888..7a8a7b986190 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class DotNetComponentsUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * DotNetComponents_Patch_ServiceBind.json */ /** @@ -40,7 +40,7 @@ public final class DotNetComponentsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/DotNetComponents_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/DotNetComponents_Patch.json */ /** * Sample code: Patch .NET Component. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/FunctionsExtensionInvokeFunctionsHostSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/FunctionsExtensionInvokeFunctionsHostSamples.java index df80a5b9c7d2..d2d152bd8429 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/FunctionsExtensionInvokeFunctionsHostSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/FunctionsExtensionInvokeFunctionsHostSamples.java @@ -10,7 +10,7 @@ public final class FunctionsExtensionInvokeFunctionsHostSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/FunctionsExtension_Post.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/FunctionsExtension_Post.json */ /** * Sample code: Invoke Functions host using Functions Extension API. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCreateOrUpdateSamples.java index 73c4e98f131a..db9afd651540 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCreateOrUpdateSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.appcontainers.generated; import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; +import com.azure.resourcemanager.appcontainers.models.JavaComponentPropertiesScale; import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent; import java.util.Arrays; @@ -14,7 +15,7 @@ */ public final class JavaComponentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_CreateOrUpdate_ServiceBind.json */ /** @@ -32,6 +33,7 @@ public static void createOrUpdateJavaComponentWithServiceBinds( .withValue("true"), new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval") .withValue("10000ms"))) + .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1)) .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat") .withServiceId( "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat")))) @@ -39,7 +41,7 @@ public static void createOrUpdateJavaComponentWithServiceBinds( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_CreateOrUpdate.json */ /** @@ -56,7 +58,8 @@ public static void createOrUpdateJavaComponentWithServiceBinds( new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts") .withValue("true"), new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval") - .withValue("10000ms")))) + .withValue("10000ms"))) + .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1))) .create(); } } diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsDeleteSamples.java index e40b5aaaa31e..9f58ca027577 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class JavaComponentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Delete.json */ /** * Sample code: Delete Java Component. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsGetSamples.java index f606cf1c8349..9b84692a24aa 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsGetSamples.java @@ -10,7 +10,7 @@ public final class JavaComponentsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Get.json */ /** * Sample code: Get Java Component. @@ -23,7 +23,7 @@ public static void getJavaComponent(com.azure.resourcemanager.appcontainers.Cont } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_Get_ServiceBind.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsListSamples.java index 37ee9f807aab..c44efbdb793f 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsListSamples.java @@ -10,7 +10,7 @@ public final class JavaComponentsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_List.json */ /** * Sample code: List Java Components. @@ -22,7 +22,7 @@ public static void listJavaComponents(com.azure.resourcemanager.appcontainers.Co } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_List_ServiceBind.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsUpdateSamples.java index 88001ccc06dd..6150658c966d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsUpdateSamples.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.appcontainers.models.JavaComponent; import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; +import com.azure.resourcemanager.appcontainers.models.JavaComponentPropertiesScale; import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent; import java.util.Arrays; @@ -16,7 +17,7 @@ public final class JavaComponentsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/JavaComponents_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/JavaComponents_Patch.json */ /** * Sample code: Patch Java Component. @@ -32,12 +33,13 @@ public static void patchJavaComponent(com.azure.resourcemanager.appcontainers.Co new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.ui.enable-toasts") .withValue("true"), new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval") - .withValue("10000ms")))) + .withValue("10000ms"))) + .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1))) .apply(); } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * JavaComponents_Patch_ServiceBind.json */ /** @@ -56,6 +58,7 @@ public static void patchJavaComponent(com.azure.resourcemanager.appcontainers.Co .withValue("true"), new JavaComponentConfigurationProperty().withPropertyName("spring.boot.admin.monitor.status-interval") .withValue("10000ms"))) + .withScale(new JavaComponentPropertiesScale().withMinReplicas(1).withMaxReplicas(1)) .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("yellowcat") .withServiceId( "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/javaComponents/yellowcat")))) diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsCreateOrUpdateSamples.java index 704d4bdc6c4c..973b63251022 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsCreateOrUpdateSamples.java @@ -38,7 +38,7 @@ */ public final class JobsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Job_CreateorUpdate_ConnectedEnvironment.json */ /** @@ -84,7 +84,7 @@ public static void createOrUpdateContainerAppsJobOnAConnectedEnvironment( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Job_CreateorUpdate_EventTrigger.json */ /** @@ -131,7 +131,7 @@ public static void createOrUpdateContainerAppsJobWithEventDrivenTrigger( /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_CreateorUpdate.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_CreateorUpdate.json */ /** * Sample code: Create or Update Container Apps Job. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteSamples.java index adbc35d15d39..b76e44883372 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteSamples.java @@ -10,7 +10,7 @@ public final class JobsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Delete.json */ /** * Sample code: Delete Container Apps Job. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListSamples.java index d608b6272ac6..94a4e76b7044 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListSamples.java @@ -10,7 +10,7 @@ public final class JobsExecutionsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Executions_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Executions_Get.json */ /** * Sample code: Get a Container Apps Job Executions. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetByResourceGroupSamples.java index 88d2cd99f834..a309e5dde176 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class JobsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Get.json */ /** * Sample code: Get Container Apps Job. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetDetectorSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetDetectorSamples.java index 59bdecfb27fe..cca0b1cf282a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetDetectorSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsGetDetectorSamples.java @@ -10,7 +10,7 @@ public final class JobsGetDetectorSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_GetDetector.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_GetDetector.json */ /** * Sample code: Get diagnostic data for a Container App Job. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListByResourceGroupSamples.java index f3acaca0fca4..117f74e5aa9c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class JobsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Jobs_ListByResourceGroup. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListByResourceGroup. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListDetectorsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListDetectorsSamples.java index 7566caf83fb5..c68aecf2608c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListDetectorsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListDetectorsSamples.java @@ -10,7 +10,7 @@ public final class JobsListDetectorsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ListDetectors.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListDetectors.json */ /** * Sample code: Get the list of available diagnostic data for a Container App Job. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSamples.java index 38f404904c35..67d518d641ac 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSamples.java @@ -10,7 +10,7 @@ public final class JobsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Jobs_ListBySubscription.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_ListBySubscription.json */ /** * Sample code: List Container Apps Jobs by subscription. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSecretsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSecretsSamples.java index eb374d2565e7..f19d121d71fa 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSecretsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsListSecretsSamples.java @@ -10,7 +10,7 @@ public final class JobsListSecretsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ListSecrets.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ListSecrets.json */ /** * Sample code: List Container Apps Job Secrets. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsProxyGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsProxyGetSamples.java index 7689e17cb912..45938210e83a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsProxyGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsProxyGetSamples.java @@ -10,7 +10,7 @@ public final class JobsProxyGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_ProxyGet.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_ProxyGet.json */ /** * Sample code: Get Container App Job by name. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsResumeSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsResumeSamples.java new file mode 100644 index 000000000000..a0d1a9a3d2b7 --- /dev/null +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsResumeSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appcontainers.generated; + +/** + * Samples for Jobs Resume. + */ +public final class JobsResumeSamples { + /* + * x-ms-original-file: + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Resume.json + */ + /** + * Sample code: Resume Job. + * + * @param manager Entry point to ContainerAppsApiManager. + */ + public static void resumeJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) { + manager.jobs().resume("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStartSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStartSamples.java index dde90ce83115..93c5a0146c92 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStartSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStartSamples.java @@ -15,7 +15,7 @@ public final class JobsStartSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Start.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Start.json */ /** * Sample code: Run a Container Apps Job. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionSamples.java index 6e30a009efb6..415fe63c3051 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionSamples.java @@ -10,7 +10,7 @@ public final class JobsStopExecutionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Stop_Execution.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Execution.json */ /** * Sample code: Terminate a Container Apps Job. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsSamples.java index c5f1536f64b7..276f8a8ab0b4 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsSamples.java @@ -10,7 +10,7 @@ public final class JobsStopMultipleExecutionsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Stop_Multiple.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Stop_Multiple.json */ /** * Sample code: Terminate Multiple Container Apps Job. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsSuspendSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsSuspendSamples.java new file mode 100644 index 000000000000..ade74a6c222b --- /dev/null +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsSuspendSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appcontainers.generated; + +/** + * Samples for Jobs Suspend. + */ +public final class JobsSuspendSamples { + /* + * x-ms-original-file: + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Jobs_Suspend.json + */ + /** + * Sample code: Suspend Job. + * + * @param manager Entry point to ContainerAppsApiManager. + */ + public static void suspendJob(com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) { + manager.jobs().suspend("rg", "testcontainerAppsJob0", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsUpdateSamples.java index fd121e8d1c08..ee301ddb73d9 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/JobsUpdateSamples.java @@ -25,7 +25,7 @@ public final class JobsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Patch.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Patch.json */ /** * Sample code: Patch Container Apps Job. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsCreateOrUpdateSamples.java index 2b447fe20507..7059bea17e9d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ public final class LogicAppsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_Create.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Create.json */ /** * Sample code: Create logic app extension. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeleteSamples.java index eccf609b3d81..8a6c4e072c79 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeleteSamples.java @@ -10,7 +10,7 @@ public final class LogicAppsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_Delete.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Delete.json */ /** * Sample code: Create logic app extension. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeployWorkflowArtifactsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeployWorkflowArtifactsSamples.java index b9c99c81c2d0..db0a080601c7 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeployWorkflowArtifactsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeployWorkflowArtifactsSamples.java @@ -15,7 +15,7 @@ */ public final class LogicAppsDeployWorkflowArtifactsSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * LogicApps_PostDeployWorkflowArtifacts.json */ /** @@ -39,7 +39,7 @@ public static void deploysWorkflowArtifacts(com.azure.resourcemanager.appcontain } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * LogicApps_DeleteDeployWorkflowArtifacts.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetSamples.java index 1e4f4cbc938d..a15c4877b3b8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetSamples.java @@ -10,7 +10,7 @@ public final class LogicAppsGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_Get.json */ /** * Sample code: Get logic app extension by name. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetWorkflowSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetWorkflowSamples.java index a8746278322d..b00e986a4870 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetWorkflowSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetWorkflowSamples.java @@ -10,7 +10,7 @@ public final class LogicAppsGetWorkflowSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_GetWorkflow.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_GetWorkflow.json */ /** * Sample code: GET a workflow. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsInvokeSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsInvokeSamples.java index 70a0dac5361b..21d6cbf7adbc 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsInvokeSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsInvokeSamples.java @@ -12,7 +12,7 @@ public final class LogicAppsInvokeSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_ListCallbackURL. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListCallbackURL. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsListWorkflowsConnectionsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsListWorkflowsConnectionsSamples.java index 6695249d6c3b..966165fb33cc 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsListWorkflowsConnectionsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsListWorkflowsConnectionsSamples.java @@ -10,7 +10,7 @@ public final class LogicAppsListWorkflowsConnectionsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_ListConnections. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListConnections. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsListWorkflowsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsListWorkflowsSamples.java index a257f8d25fd8..e89f741ad8f1 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsListWorkflowsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsListWorkflowsSamples.java @@ -10,7 +10,7 @@ public final class LogicAppsListWorkflowsSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/LogicApps_ListWorkflows.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/LogicApps_ListWorkflows.json */ /** * Sample code: List the workflows. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesCreateOrUpdateSamples.java index 1907f8b21bcb..48aa7b073730 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class ManagedCertificatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedCertificate_CreateOrUpdate.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteSamples.java index 9ee7353b0765..41fbb11fe73a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteSamples.java @@ -10,7 +10,7 @@ public final class ManagedCertificatesDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificate_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Delete. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesGetSamples.java index 1ef697be0bf5..f7f72aed6b2d 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesGetSamples.java @@ -10,7 +10,7 @@ public final class ManagedCertificatesGetSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificate_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificate_Get.json */ /** * Sample code: Get Certificate. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesListSamples.java index 023edcf36856..31bcebb6e29c 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedCertificatesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedCertificates_ListByManagedEnvironment.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesUpdateSamples.java index 1be605be3b01..895c3e3e8511 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesUpdateSamples.java @@ -14,7 +14,7 @@ public final class ManagedCertificatesUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedCertificates_Patch. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedCertificates_Patch. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorSamples.java index 75bd7c4da764..a0c94afac2b8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentDiagnosticsGetDetectorSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentDiagnostics_Get.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsSamples.java index d125feb1fe68..c9a294291bc9 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentDiagnosticsListDetectorsSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentDiagnostics_List.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSamples.java index a49a0617f5aa..87843e4e62a1 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples.java index 2097f6e01d97..b5d38a2e8e0a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentPrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateEndpointConnections_Delete.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsGetSamples.java index 979cd11427e8..721ed9d779f3 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentPrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateEndpointConnections_Get.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsListSamples.java index d3e703a4e7ec..a3aae49c0f53 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentPrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateEndpointConnections_List.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateLinkResourcesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateLinkResourcesListSamples.java index c817751876b4..3ff930306954 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateLinkResourcesListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateLinkResourcesListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentPrivateLinkResources_List.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentUsagesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentUsagesListSamples.java index 2ea15dbc55ef..85e1ddcd9fb8 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentUsagesListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentUsagesListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentUsagesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentUsages_List.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java index a4edb8a14327..c51ed07b47b9 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsCreateOrUpdateSamples.java @@ -34,7 +34,7 @@ */ public final class ManagedEnvironmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json */ /** @@ -77,7 +77,7 @@ public static void createEnvironmentWithCustomInfrastructureResourceGroup( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_CreateOrUpdate.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java index 792fcd02ba1b..29090f9ae420 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ManagedEnvironmentsDeleteSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Delete. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Delete. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDiagnosticsGetRootSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDiagnosticsGetRootSamples.java index 4688a24ff288..8e2a2d466ebc 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDiagnosticsGetRootSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDiagnosticsGetRootSamples.java @@ -10,7 +10,7 @@ public final class ManagedEnvironmentsDiagnosticsGetRootSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json */ /** * Sample code: Get environments by name. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetAuthTokenSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetAuthTokenSamples.java index 926cc10aa15a..da417c5c2e48 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetAuthTokenSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetAuthTokenSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentsGetAuthTokenSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_GetAuthToken.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java index d1b5b3441628..58263b19bcf3 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ManagedEnvironmentsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Get.json */ /** * Sample code: Get environments by name. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java index 636c6994929b..bd2c8466caa9 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentsListByResourceGroupSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_ListByResourceGroup.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java index 7f5bbc059a51..24c471f99554 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentsListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_ListBySubscription.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesSamples.java index ae87ffb3ee3a..dc3b8052e876 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentsListWorkloadProfileStatesSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironments_ListWorkloadProfileStates.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java index b861b3743ed8..57c64dc2e168 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class ManagedEnvironmentsStoragesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json */ /** @@ -35,7 +35,7 @@ public static void createOrUpdateEnvironmentsStorageForNFSAzureFile( } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_CreateOrUpdate.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java index 8e99aed4a488..96aa482aec40 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentsStoragesDeleteSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_Delete.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java index 504dbc84f068..514d0805333e 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentsStoragesGetSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_Get.json */ /** @@ -24,7 +24,7 @@ public final class ManagedEnvironmentsStoragesGetSamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_Get_NfsAzureFile.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java index d3096bdd783f..bbe5f49947de 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedEnvironmentsStoragesListSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ManagedEnvironmentsStorages_List.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java index e9a594ae0cde..562aefc9b79a 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsUpdateSamples.java @@ -14,7 +14,7 @@ public final class ManagedEnvironmentsUpdateSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ManagedEnvironments_Patch. + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ManagedEnvironments_Patch. * json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java index c845eb4ad164..7d2e2239211f 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class NamespacesCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Certificates_CheckNameAvailability.json */ /** @@ -29,7 +29,7 @@ public final class NamespacesCheckNameAvailabilitySamples { } /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * ContainerApps_CheckNameAvailability.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java index 39f9f093e58c..8ad710ecba76 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/OperationsListSamples.java @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Operations_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Operations_List.json */ /** * Sample code: List all operations. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ResourceProviderGetCustomDomainVerificationIdSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ResourceProviderGetCustomDomainVerificationIdSamples.java index 9eb28ff02b83..5f2c8a16dacc 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ResourceProviderGetCustomDomainVerificationIdSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ResourceProviderGetCustomDomainVerificationIdSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceProviderGetCustomDomainVerificationIdSamples { /* - * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/ + * x-ms-original-file: specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/ * Subscriptions_GetCustomDomainVerificationId.json */ /** diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ResourceProviderJobExecutionSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ResourceProviderJobExecutionSamples.java index df178e3ca7a8..179edce84f52 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ResourceProviderJobExecutionSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/ResourceProviderJobExecutionSamples.java @@ -10,7 +10,7 @@ public final class ResourceProviderJobExecutionSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Job_Execution_Get.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Job_Execution_Get.json */ /** * Sample code: Get a single Job Execution. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/UsagesListSamples.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/UsagesListSamples.java index 0d9044862a1b..69264fa45fa2 100644 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/UsagesListSamples.java +++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/samples/java/com/azure/resourcemanager/appcontainers/generated/UsagesListSamples.java @@ -10,7 +10,7 @@ public final class UsagesListSamples { /* * x-ms-original-file: - * specification/app/resource-manager/Microsoft.App/preview/2024-02-02-preview/examples/Usages_List.json + * specification/app/resource-manager/Microsoft.App/preview/2024-08-02-preview/examples/Usages_List.json */ /** * Sample code: List usages. diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedAudiencesValidationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedAudiencesValidationTests.java deleted file mode 100644 index 4a32859e2cf6..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedAudiencesValidationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AllowedAudiencesValidation; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AllowedAudiencesValidationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AllowedAudiencesValidation model - = BinaryData.fromString("{\"allowedAudiences\":[\"igdtopbob\",\"og\",\"m\",\"w\"]}") - .toObject(AllowedAudiencesValidation.class); - Assertions.assertEquals("igdtopbob", model.allowedAudiences().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AllowedAudiencesValidation model - = new AllowedAudiencesValidation().withAllowedAudiences(Arrays.asList("igdtopbob", "og", "m", "w")); - model = BinaryData.fromObject(model).toObject(AllowedAudiencesValidation.class); - Assertions.assertEquals("igdtopbob", model.allowedAudiences().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedPrincipalsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedPrincipalsTests.java deleted file mode 100644 index 89f4d08ea369..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AllowedPrincipalsTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AllowedPrincipals; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AllowedPrincipalsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AllowedPrincipals model = BinaryData.fromString( - "{\"groups\":[\"ajionpimexgstxg\",\"po\",\"gmaajrm\"],\"identities\":[\"wzrlovmclwhij\",\"oejctbzaqsqsy\"]}") - .toObject(AllowedPrincipals.class); - Assertions.assertEquals("ajionpimexgstxg", model.groups().get(0)); - Assertions.assertEquals("wzrlovmclwhij", model.identities().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AllowedPrincipals model = new AllowedPrincipals().withGroups(Arrays.asList("ajionpimexgstxg", "po", "gmaajrm")) - .withIdentities(Arrays.asList("wzrlovmclwhij", "oejctbzaqsqsy")); - model = BinaryData.fromObject(model).toObject(AllowedPrincipals.class); - Assertions.assertEquals("ajionpimexgstxg", model.groups().get(0)); - Assertions.assertEquals("wzrlovmclwhij", model.identities().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppInsightsConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppInsightsConfigurationTests.java deleted file mode 100644 index d90b2830e517..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppInsightsConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AppInsightsConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class AppInsightsConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AppInsightsConfiguration model = BinaryData.fromString("{\"connectionString\":\"ulontacnpqwteht\"}") - .toObject(AppInsightsConfiguration.class); - Assertions.assertEquals("ulontacnpqwteht", model.connectionString()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AppInsightsConfiguration model = new AppInsightsConfiguration().withConnectionString("ulontacnpqwteht"); - model = BinaryData.fromObject(model).toObject(AppInsightsConfiguration.class); - Assertions.assertEquals("ulontacnpqwteht", model.connectionString()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppResilienciesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppResilienciesDeleteWithResponseMockTests.java deleted file mode 100644 index 997815115147..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AppResilienciesDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AppResilienciesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.appResiliencies() - .deleteWithResponse("uyvpirf", "jpnqnoowsbeden", "exkxbhx", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthPlatformTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthPlatformTests.java deleted file mode 100644 index 7a96afa744ab..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AuthPlatformTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AuthPlatform; -import org.junit.jupiter.api.Assertions; - -public final class AuthPlatformTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AuthPlatform model - = BinaryData.fromString("{\"enabled\":true,\"runtimeVersion\":\"jaoyfhrtx\"}").toObject(AuthPlatform.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals("jaoyfhrtx", model.runtimeVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AuthPlatform model = new AuthPlatform().withEnabled(true).withRuntimeVersion("jaoyfhrtx"); - model = BinaryData.fromObject(model).toObject(AuthPlatform.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals("jaoyfhrtx", model.runtimeVersion()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableOperationsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableOperationsTests.java deleted file mode 100644 index 68f0099fe916..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableOperationsTests.java +++ /dev/null @@ -1,50 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.OperationDetailInner; -import com.azure.resourcemanager.appcontainers.models.AvailableOperations; -import com.azure.resourcemanager.appcontainers.models.OperationDisplay; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AvailableOperationsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailableOperations model = BinaryData.fromString( - "{\"value\":[{\"name\":\"gfsxzec\",\"isDataAction\":false,\"display\":{\"provider\":\"ufykhvuhxepmru\",\"resource\":\"nabaobnslujd\",\"operation\":\"tymkmvguihywart\",\"description\":\"phkixkykxdssjpe\"},\"origin\":\"ucfx\"}],\"nextLink\":\"kkflrmymyincqlhr\"}") - .toObject(AvailableOperations.class); - Assertions.assertEquals("gfsxzec", model.value().get(0).name()); - Assertions.assertEquals(false, model.value().get(0).isDataAction()); - Assertions.assertEquals("ufykhvuhxepmru", model.value().get(0).display().provider()); - Assertions.assertEquals("nabaobnslujd", model.value().get(0).display().resource()); - Assertions.assertEquals("tymkmvguihywart", model.value().get(0).display().operation()); - Assertions.assertEquals("phkixkykxdssjpe", model.value().get(0).display().description()); - Assertions.assertEquals("ucfx", model.value().get(0).origin()); - Assertions.assertEquals("kkflrmymyincqlhr", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailableOperations model - = new AvailableOperations().withValue(Arrays.asList(new OperationDetailInner().withName("gfsxzec") - .withIsDataAction(false) - .withDisplay(new OperationDisplay().withProvider("ufykhvuhxepmru") - .withResource("nabaobnslujd") - .withOperation("tymkmvguihywart") - .withDescription("phkixkykxdssjpe")) - .withOrigin("ucfx"))).withNextLink("kkflrmymyincqlhr"); - model = BinaryData.fromObject(model).toObject(AvailableOperations.class); - Assertions.assertEquals("gfsxzec", model.value().get(0).name()); - Assertions.assertEquals(false, model.value().get(0).isDataAction()); - Assertions.assertEquals("ufykhvuhxepmru", model.value().get(0).display().provider()); - Assertions.assertEquals("nabaobnslujd", model.value().get(0).display().resource()); - Assertions.assertEquals("tymkmvguihywart", model.value().get(0).display().operation()); - Assertions.assertEquals("phkixkykxdssjpe", model.value().get(0).display().description()); - Assertions.assertEquals("ucfx", model.value().get(0).origin()); - Assertions.assertEquals("kkflrmymyincqlhr", model.nextLink()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfileInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfileInnerTests.java deleted file mode 100644 index 94e66492a53e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfileInnerTests.java +++ /dev/null @@ -1,46 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.AvailableWorkloadProfileInner; -import com.azure.resourcemanager.appcontainers.models.Applicability; -import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties; -import org.junit.jupiter.api.Assertions; - -public final class AvailableWorkloadProfileInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailableWorkloadProfileInner model = BinaryData.fromString( - "{\"location\":\"yocf\",\"properties\":{\"category\":\"s\",\"applicability\":\"Custom\",\"cores\":376493890,\"memoryGiB\":666664165,\"gpus\":30564685,\"displayName\":\"uxh\"},\"id\":\"udxorrqn\",\"name\":\"poczvyifqrvkdvjs\",\"type\":\"lrmv\"}") - .toObject(AvailableWorkloadProfileInner.class); - Assertions.assertEquals("yocf", model.location()); - Assertions.assertEquals("s", model.properties().category()); - Assertions.assertEquals(Applicability.CUSTOM, model.properties().applicability()); - Assertions.assertEquals(376493890, model.properties().cores()); - Assertions.assertEquals(666664165, model.properties().memoryGiB()); - Assertions.assertEquals(30564685, model.properties().gpus()); - Assertions.assertEquals("uxh", model.properties().displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailableWorkloadProfileInner model = new AvailableWorkloadProfileInner().withLocation("yocf") - .withProperties(new AvailableWorkloadProfileProperties().withCategory("s") - .withApplicability(Applicability.CUSTOM) - .withCores(376493890) - .withMemoryGiB(666664165) - .withGpus(30564685) - .withDisplayName("uxh")); - model = BinaryData.fromObject(model).toObject(AvailableWorkloadProfileInner.class); - Assertions.assertEquals("yocf", model.location()); - Assertions.assertEquals("s", model.properties().category()); - Assertions.assertEquals(Applicability.CUSTOM, model.properties().applicability()); - Assertions.assertEquals(376493890, model.properties().cores()); - Assertions.assertEquals(666664165, model.properties().memoryGiB()); - Assertions.assertEquals(30564685, model.properties().gpus()); - Assertions.assertEquals("uxh", model.properties().displayName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilePropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilePropertiesTests.java deleted file mode 100644 index d73bb8865e68..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilePropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Applicability; -import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties; -import org.junit.jupiter.api.Assertions; - -public final class AvailableWorkloadProfilePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailableWorkloadProfileProperties model = BinaryData.fromString( - "{\"category\":\"f\",\"applicability\":\"LocationDefault\",\"cores\":1825333220,\"memoryGiB\":500448783,\"gpus\":608072417,\"displayName\":\"xxbczwtr\"}") - .toObject(AvailableWorkloadProfileProperties.class); - Assertions.assertEquals("f", model.category()); - Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.applicability()); - Assertions.assertEquals(1825333220, model.cores()); - Assertions.assertEquals(500448783, model.memoryGiB()); - Assertions.assertEquals(608072417, model.gpus()); - Assertions.assertEquals("xxbczwtr", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailableWorkloadProfileProperties model = new AvailableWorkloadProfileProperties().withCategory("f") - .withApplicability(Applicability.LOCATION_DEFAULT) - .withCores(1825333220) - .withMemoryGiB(500448783) - .withGpus(608072417) - .withDisplayName("xxbczwtr"); - model = BinaryData.fromObject(model).toObject(AvailableWorkloadProfileProperties.class); - Assertions.assertEquals("f", model.category()); - Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.applicability()); - Assertions.assertEquals(1825333220, model.cores()); - Assertions.assertEquals(500448783, model.memoryGiB()); - Assertions.assertEquals(608072417, model.gpus()); - Assertions.assertEquals("xxbczwtr", model.displayName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesCollectionTests.java deleted file mode 100644 index 1c552b73a5f7..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesCollectionTests.java +++ /dev/null @@ -1,63 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.AvailableWorkloadProfileInner; -import com.azure.resourcemanager.appcontainers.models.Applicability; -import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties; -import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfilesCollection; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AvailableWorkloadProfilesCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailableWorkloadProfilesCollection model = BinaryData.fromString( - "{\"value\":[{\"location\":\"dmoh\",\"properties\":{\"category\":\"qvudwxdndnvowgu\",\"applicability\":\"LocationDefault\",\"cores\":247911704,\"memoryGiB\":175400299,\"gpus\":2105007169,\"displayName\":\"hslazjdyggdtj\"},\"id\":\"hbkuofqwey\",\"name\":\"hmenevfyexfwhybc\",\"type\":\"bvyvdcsity\"},{\"location\":\"aamdect\",\"properties\":{\"category\":\"iqscjeypv\",\"applicability\":\"Custom\",\"cores\":902064602,\"memoryGiB\":177141497,\"gpus\":61185346,\"displayName\":\"refovgmkqsleyyvx\"},\"id\":\"jpkcattpng\",\"name\":\"cr\",\"type\":\"czsqpjhvm\"},{\"location\":\"jvnysounqe\",\"properties\":{\"category\":\"oaeupfhyhltrpmo\",\"applicability\":\"Custom\",\"cores\":1490971149,\"memoryGiB\":557848148,\"gpus\":860799201,\"displayName\":\"thfuiuaodsfcpkvx\"},\"id\":\"puozmyzydag\",\"name\":\"uaxbezyiuokkt\",\"type\":\"hrdxwzywqsmbs\"}],\"nextLink\":\"exim\"}") - .toObject(AvailableWorkloadProfilesCollection.class); - Assertions.assertEquals("dmoh", model.value().get(0).location()); - Assertions.assertEquals("qvudwxdndnvowgu", model.value().get(0).properties().category()); - Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.value().get(0).properties().applicability()); - Assertions.assertEquals(247911704, model.value().get(0).properties().cores()); - Assertions.assertEquals(175400299, model.value().get(0).properties().memoryGiB()); - Assertions.assertEquals(2105007169, model.value().get(0).properties().gpus()); - Assertions.assertEquals("hslazjdyggdtj", model.value().get(0).properties().displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailableWorkloadProfilesCollection model = new AvailableWorkloadProfilesCollection().withValue(Arrays.asList( - new AvailableWorkloadProfileInner().withLocation("dmoh") - .withProperties(new AvailableWorkloadProfileProperties().withCategory("qvudwxdndnvowgu") - .withApplicability(Applicability.LOCATION_DEFAULT) - .withCores(247911704) - .withMemoryGiB(175400299) - .withGpus(2105007169) - .withDisplayName("hslazjdyggdtj")), - new AvailableWorkloadProfileInner().withLocation("aamdect") - .withProperties(new AvailableWorkloadProfileProperties().withCategory("iqscjeypv") - .withApplicability(Applicability.CUSTOM) - .withCores(902064602) - .withMemoryGiB(177141497) - .withGpus(61185346) - .withDisplayName("refovgmkqsleyyvx")), - new AvailableWorkloadProfileInner().withLocation("jvnysounqe") - .withProperties(new AvailableWorkloadProfileProperties().withCategory("oaeupfhyhltrpmo") - .withApplicability(Applicability.CUSTOM) - .withCores(1490971149) - .withMemoryGiB(557848148) - .withGpus(860799201) - .withDisplayName("thfuiuaodsfcpkvx")))); - model = BinaryData.fromObject(model).toObject(AvailableWorkloadProfilesCollection.class); - Assertions.assertEquals("dmoh", model.value().get(0).location()); - Assertions.assertEquals("qvudwxdndnvowgu", model.value().get(0).properties().category()); - Assertions.assertEquals(Applicability.LOCATION_DEFAULT, model.value().get(0).properties().applicability()); - Assertions.assertEquals(247911704, model.value().get(0).properties().cores()); - Assertions.assertEquals(175400299, model.value().get(0).properties().memoryGiB()); - Assertions.assertEquals(2105007169, model.value().get(0).properties().gpus()); - Assertions.assertEquals("hslazjdyggdtj", model.value().get(0).properties().displayName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetMockTests.java deleted file mode 100644 index 613d2691394a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AvailableWorkloadProfilesGetMockTests.java +++ /dev/null @@ -1,47 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.Applicability; -import com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfile; -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 AvailableWorkloadProfilesGetMockTests { - @Test - public void testGet() throws Exception { - String responseStr - = "{\"value\":[{\"location\":\"rmukmyjmkxett\",\"properties\":{\"category\":\"ojfkq\",\"applicability\":\"LocationDefault\",\"cores\":1380093813,\"memoryGiB\":1972496452,\"gpus\":1164062166,\"displayName\":\"qxcsqhtkbtnqlrn\"},\"id\":\"dmbi\",\"name\":\"psnaww\",\"type\":\"qkzn\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.availableWorkloadProfiles().get("a", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("rmukmyjmkxett", response.iterator().next().location()); - Assertions.assertEquals("ojfkq", response.iterator().next().properties().category()); - Assertions.assertEquals(Applicability.LOCATION_DEFAULT, - response.iterator().next().properties().applicability()); - Assertions.assertEquals(1380093813, response.iterator().next().properties().cores()); - Assertions.assertEquals(1972496452, response.iterator().next().properties().memoryGiB()); - Assertions.assertEquals(1164062166, response.iterator().next().properties().gpus()); - Assertions.assertEquals("qxcsqhtkbtnqlrn", response.iterator().next().properties().displayName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryLoginTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryLoginTests.java deleted file mode 100644 index de4a1323330b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureActiveDirectoryLoginTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AzureActiveDirectoryLogin; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureActiveDirectoryLoginTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureActiveDirectoryLogin model = BinaryData - .fromString("{\"loginParameters\":[\"isdkfthwxmnteiw\",\"opvkmijcm\"],\"disableWWWAuthenticate\":false}") - .toObject(AzureActiveDirectoryLogin.class); - Assertions.assertEquals("isdkfthwxmnteiw", model.loginParameters().get(0)); - Assertions.assertEquals(false, model.disableWwwAuthenticate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureActiveDirectoryLogin model - = new AzureActiveDirectoryLogin().withLoginParameters(Arrays.asList("isdkfthwxmnteiw", "opvkmijcm")) - .withDisableWwwAuthenticate(false); - model = BinaryData.fromObject(model).toObject(AzureActiveDirectoryLogin.class); - Assertions.assertEquals("isdkfthwxmnteiw", model.loginParameters().get(0)); - Assertions.assertEquals(false, model.disableWwwAuthenticate()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsRegistrationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsRegistrationTests.java deleted file mode 100644 index 070a4441d95d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsRegistrationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AzureStaticWebAppsRegistration; -import org.junit.jupiter.api.Assertions; - -public final class AzureStaticWebAppsRegistrationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureStaticWebAppsRegistration model - = BinaryData.fromString("{\"clientId\":\"wgndrvynhzgpp\"}").toObject(AzureStaticWebAppsRegistration.class); - Assertions.assertEquals("wgndrvynhzgpp", model.clientId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureStaticWebAppsRegistration model = new AzureStaticWebAppsRegistration().withClientId("wgndrvynhzgpp"); - model = BinaryData.fromObject(model).toObject(AzureStaticWebAppsRegistration.class); - Assertions.assertEquals("wgndrvynhzgpp", model.clientId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsTests.java deleted file mode 100644 index 796a36ccea52..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/AzureStaticWebAppsTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AzureStaticWebApps; -import com.azure.resourcemanager.appcontainers.models.AzureStaticWebAppsRegistration; -import org.junit.jupiter.api.Assertions; - -public final class AzureStaticWebAppsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureStaticWebApps model - = BinaryData.fromString("{\"enabled\":true,\"registration\":{\"clientId\":\"ktzlcuiywg\"}}") - .toObject(AzureStaticWebApps.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals("ktzlcuiywg", model.registration().clientId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureStaticWebApps model = new AzureStaticWebApps().withEnabled(true) - .withRegistration(new AzureStaticWebAppsRegistration().withClientId("ktzlcuiywg")); - model = BinaryData.fromObject(model).toObject(AzureStaticWebApps.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals("ktzlcuiywg", model.registration().clientId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterCollectionInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterCollectionInnerTests.java deleted file mode 100644 index 1336fab01fcc..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterCollectionInnerTests.java +++ /dev/null @@ -1,51 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.BillingMeterCollectionInner; -import com.azure.resourcemanager.appcontainers.models.BillingMeter; -import com.azure.resourcemanager.appcontainers.models.BillingMeterProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BillingMeterCollectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BillingMeterCollectionInner model = BinaryData.fromString( - "{\"value\":[{\"id\":\"qzbqjvsov\",\"name\":\"okacspk\",\"type\":\"hzdobpxjmflbvvnc\",\"location\":\"kcciwwzjuqkhr\",\"properties\":{\"category\":\"iwkuofos\",\"meterType\":\"hsauuimjmvxied\",\"displayName\":\"gidyjrrf\"}},{\"id\":\"aos\",\"name\":\"xc\",\"type\":\"npc\",\"location\":\"ocohslkevleg\",\"properties\":{\"category\":\"buhfmvfaxkffeiit\",\"meterType\":\"vmezy\",\"displayName\":\"hxmzsbbzoggig\"}},{\"id\":\"wburvjxxjnspydpt\",\"name\":\"enkouknvudw\",\"type\":\"ukbldngkpo\",\"location\":\"pazyxoegukg\",\"properties\":{\"category\":\"iucgygevqzn\",\"meterType\":\"pmr\",\"displayName\":\"izcdrqjsd\"}},{\"id\":\"dnfyhxdeoejzicwi\",\"name\":\"jttgzf\",\"type\":\"shcbkhajdeyeamdp\",\"location\":\"g\",\"properties\":{\"category\":\"buxwgip\",\"meterType\":\"onowk\",\"displayName\":\"hwankixzbinjepu\"}}]}") - .toObject(BillingMeterCollectionInner.class); - Assertions.assertEquals("kcciwwzjuqkhr", model.value().get(0).location()); - Assertions.assertEquals("iwkuofos", model.value().get(0).properties().category()); - Assertions.assertEquals("hsauuimjmvxied", model.value().get(0).properties().meterType()); - Assertions.assertEquals("gidyjrrf", model.value().get(0).properties().displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BillingMeterCollectionInner model = new BillingMeterCollectionInner().withValue(Arrays.asList( - new BillingMeter().withLocation("kcciwwzjuqkhr") - .withProperties(new BillingMeterProperties().withCategory("iwkuofos") - .withMeterType("hsauuimjmvxied") - .withDisplayName("gidyjrrf")), - new BillingMeter().withLocation("ocohslkevleg") - .withProperties(new BillingMeterProperties().withCategory("buhfmvfaxkffeiit") - .withMeterType("vmezy") - .withDisplayName("hxmzsbbzoggig")), - new BillingMeter().withLocation("pazyxoegukg") - .withProperties(new BillingMeterProperties().withCategory("iucgygevqzn") - .withMeterType("pmr") - .withDisplayName("izcdrqjsd")), - new BillingMeter().withLocation("g") - .withProperties(new BillingMeterProperties().withCategory("buxwgip") - .withMeterType("onowk") - .withDisplayName("hwankixzbinjepu")))); - model = BinaryData.fromObject(model).toObject(BillingMeterCollectionInner.class); - Assertions.assertEquals("kcciwwzjuqkhr", model.value().get(0).location()); - Assertions.assertEquals("iwkuofos", model.value().get(0).properties().category()); - Assertions.assertEquals("hsauuimjmvxied", model.value().get(0).properties().meterType()); - Assertions.assertEquals("gidyjrrf", model.value().get(0).properties().displayName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterPropertiesTests.java deleted file mode 100644 index bd47194a629b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterPropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.BillingMeterProperties; -import org.junit.jupiter.api.Assertions; - -public final class BillingMeterPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BillingMeterProperties model = BinaryData - .fromString("{\"category\":\"fkbey\",\"meterType\":\"wrmjmwvvjektc\",\"displayName\":\"enhwlrs\"}") - .toObject(BillingMeterProperties.class); - Assertions.assertEquals("fkbey", model.category()); - Assertions.assertEquals("wrmjmwvvjektc", model.meterType()); - Assertions.assertEquals("enhwlrs", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BillingMeterProperties model = new BillingMeterProperties().withCategory("fkbey") - .withMeterType("wrmjmwvvjektc") - .withDisplayName("enhwlrs"); - model = BinaryData.fromObject(model).toObject(BillingMeterProperties.class); - Assertions.assertEquals("fkbey", model.category()); - Assertions.assertEquals("wrmjmwvvjektc", model.meterType()); - Assertions.assertEquals("enhwlrs", model.displayName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterTests.java deleted file mode 100644 index 024e22279579..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMeterTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.BillingMeter; -import com.azure.resourcemanager.appcontainers.models.BillingMeterProperties; -import org.junit.jupiter.api.Assertions; - -public final class BillingMeterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BillingMeter model = BinaryData.fromString( - "{\"id\":\"mryw\",\"name\":\"zoqftiyqzrnkcqvy\",\"type\":\"whzlsicohoq\",\"location\":\"wvl\",\"properties\":{\"category\":\"vwhheunmmqhgyx\",\"meterType\":\"onocukok\",\"displayName\":\"axuconuq\"}}") - .toObject(BillingMeter.class); - Assertions.assertEquals("wvl", model.location()); - Assertions.assertEquals("vwhheunmmqhgyx", model.properties().category()); - Assertions.assertEquals("onocukok", model.properties().meterType()); - Assertions.assertEquals("axuconuq", model.properties().displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BillingMeter model = new BillingMeter().withLocation("wvl") - .withProperties(new BillingMeterProperties().withCategory("vwhheunmmqhgyx") - .withMeterType("onocukok") - .withDisplayName("axuconuq")); - model = BinaryData.fromObject(model).toObject(BillingMeter.class); - Assertions.assertEquals("wvl", model.location()); - Assertions.assertEquals("vwhheunmmqhgyx", model.properties().category()); - Assertions.assertEquals("onocukok", model.properties().meterType()); - Assertions.assertEquals("axuconuq", model.properties().displayName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetWithResponseMockTests.java deleted file mode 100644 index dd8844bf0b2b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BillingMetersGetWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.BillingMeterCollection; -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 BillingMetersGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"id\":\"icctkw\",\"name\":\"qqoajxeiyglesrw\",\"type\":\"exh\",\"location\":\"trceqnkbrupob\",\"properties\":{\"category\":\"mljzacv\",\"meterType\":\"epj\",\"displayName\":\"ibnzp\"}},{\"id\":\"epifexleqirccjc\",\"name\":\"kcgxvrpjlvc\",\"type\":\"odacpunettepdjxq\",\"location\":\"koynuiylpckae\",\"properties\":{\"category\":\"dveskwxegq\",\"meterType\":\"rgfnz\",\"displayName\":\"tmjtsghp\"}},{\"id\":\"bcpzarpzeqacdldt\",\"name\":\"pypefcpczshnuq\",\"type\":\"aizu\",\"location\":\"kh\",\"properties\":{\"category\":\"uszxh\",\"meterType\":\"vtvegwqiukvzw\",\"displayName\":\"wtthaokgksk\"}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - BillingMeterCollection response - = manager.billingMeters().getWithResponse("hhl", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("trceqnkbrupob", response.value().get(0).location()); - Assertions.assertEquals("mljzacv", response.value().get(0).properties().category()); - Assertions.assertEquals("epj", response.value().get(0).properties().meterType()); - Assertions.assertEquals("ibnzp", response.value().get(0).properties().displayName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BlobStorageTokenStoreTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BlobStorageTokenStoreTests.java deleted file mode 100644 index 4ba0dc297ed0..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BlobStorageTokenStoreTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.BlobStorageTokenStore; -import org.junit.jupiter.api.Assertions; - -public final class BlobStorageTokenStoreTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobStorageTokenStore model - = BinaryData.fromString("{\"sasUrlSettingName\":\"keyyi\"}").toObject(BlobStorageTokenStore.class); - Assertions.assertEquals("keyyi", model.sasUrlSettingName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobStorageTokenStore model = new BlobStorageTokenStore().withSasUrlSettingName("keyyi"); - model = BinaryData.fromObject(model).toObject(BlobStorageTokenStore.class); - Assertions.assertEquals("keyyi", model.sasUrlSettingName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildConfigurationTests.java deleted file mode 100644 index 9ba8ce2657e2..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildConfigurationTests.java +++ /dev/null @@ -1,74 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.BuildConfiguration; -import com.azure.resourcemanager.appcontainers.models.EnvironmentVariable; -import com.azure.resourcemanager.appcontainers.models.HttpGet; -import com.azure.resourcemanager.appcontainers.models.PreBuildStep; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BuildConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BuildConfiguration model = BinaryData.fromString( - "{\"baseOs\":\"qtkoievs\",\"platform\":\"tgqr\",\"platformVersion\":\"tmuwlauwzi\",\"environmentVariables\":[{\"name\":\"mpgcjefuzmuvpbt\",\"value\":\"d\"}],\"preBuildSteps\":[{\"description\":\"p\",\"scripts\":[\"bmnzbtbhjpgl\",\"fgohdneuelfphs\",\"yhtozfikdowwqu\",\"v\"],\"httpGet\":{\"url\":\"xclvit\",\"fileName\":\"qzonosggbhcohf\",\"headers\":[\"jnkaljutiiswacff\",\"dkzzewkfvhqcrail\"]}},{\"description\":\"n\",\"scripts\":[\"uflrwd\",\"hdlxyjrxsagafcn\",\"hgw\"],\"httpGet\":{\"url\":\"pnedgf\",\"fileName\":\"vkcvqvpkeqd\",\"headers\":[\"rhvoods\",\"tbobz\",\"opcjwvnhd\"]}},{\"description\":\"wmgxcxrsl\",\"scripts\":[\"twuoegrpkhjwni\"],\"httpGet\":{\"url\":\"sluicpdggkzz\",\"fileName\":\"mbmpaxmodfvuefy\",\"headers\":[\"pfvmwyhrfou\",\"ft\"]}},{\"description\":\"kcpwiy\",\"scripts\":[\"tmnubexkpzksmon\",\"jmquxvypomgk\",\"pkwhojvpa\"],\"httpGet\":{\"url\":\"gxysmocmbqfqvm\",\"fileName\":\"xozap\",\"headers\":[\"lxprglyatddckcbc\",\"ejrjxgciqibrho\",\"xsdqrhzoymibmrqy\",\"bahwfl\"]}}]}") - .toObject(BuildConfiguration.class); - Assertions.assertEquals("qtkoievs", model.baseOs()); - Assertions.assertEquals("tgqr", model.platform()); - Assertions.assertEquals("tmuwlauwzi", model.platformVersion()); - Assertions.assertEquals("mpgcjefuzmuvpbt", model.environmentVariables().get(0).name()); - Assertions.assertEquals("d", model.environmentVariables().get(0).value()); - Assertions.assertEquals("p", model.preBuildSteps().get(0).description()); - Assertions.assertEquals("bmnzbtbhjpgl", model.preBuildSteps().get(0).scripts().get(0)); - Assertions.assertEquals("xclvit", model.preBuildSteps().get(0).httpGet().url()); - Assertions.assertEquals("qzonosggbhcohf", model.preBuildSteps().get(0).httpGet().fileName()); - Assertions.assertEquals("jnkaljutiiswacff", model.preBuildSteps().get(0).httpGet().headers().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BuildConfiguration model = new BuildConfiguration().withBaseOs("qtkoievs") - .withPlatform("tgqr") - .withPlatformVersion("tmuwlauwzi") - .withEnvironmentVariables( - Arrays.asList(new EnvironmentVariable().withName("mpgcjefuzmuvpbt").withValue("d"))) - .withPreBuildSteps(Arrays.asList( - new PreBuildStep().withDescription("p") - .withScripts(Arrays.asList("bmnzbtbhjpgl", "fgohdneuelfphs", "yhtozfikdowwqu", "v")) - .withHttpGet(new HttpGet().withUrl("xclvit") - .withFileName("qzonosggbhcohf") - .withHeaders(Arrays.asList("jnkaljutiiswacff", "dkzzewkfvhqcrail"))), - new PreBuildStep().withDescription("n") - .withScripts(Arrays.asList("uflrwd", "hdlxyjrxsagafcn", "hgw")) - .withHttpGet(new HttpGet().withUrl("pnedgf") - .withFileName("vkcvqvpkeqd") - .withHeaders(Arrays.asList("rhvoods", "tbobz", "opcjwvnhd"))), - new PreBuildStep().withDescription("wmgxcxrsl") - .withScripts(Arrays.asList("twuoegrpkhjwni")) - .withHttpGet(new HttpGet().withUrl("sluicpdggkzz") - .withFileName("mbmpaxmodfvuefy") - .withHeaders(Arrays.asList("pfvmwyhrfou", "ft"))), - new PreBuildStep().withDescription("kcpwiy") - .withScripts(Arrays.asList("tmnubexkpzksmon", "jmquxvypomgk", "pkwhojvpa")) - .withHttpGet(new HttpGet().withUrl("gxysmocmbqfqvm") - .withFileName("xozap") - .withHeaders( - Arrays.asList("lxprglyatddckcbc", "ejrjxgciqibrho", "xsdqrhzoymibmrqy", "bahwfl"))))); - model = BinaryData.fromObject(model).toObject(BuildConfiguration.class); - Assertions.assertEquals("qtkoievs", model.baseOs()); - Assertions.assertEquals("tgqr", model.platform()); - Assertions.assertEquals("tmuwlauwzi", model.platformVersion()); - Assertions.assertEquals("mpgcjefuzmuvpbt", model.environmentVariables().get(0).name()); - Assertions.assertEquals("d", model.environmentVariables().get(0).value()); - Assertions.assertEquals("p", model.preBuildSteps().get(0).description()); - Assertions.assertEquals("bmnzbtbhjpgl", model.preBuildSteps().get(0).scripts().get(0)); - Assertions.assertEquals("xclvit", model.preBuildSteps().get(0).httpGet().url()); - Assertions.assertEquals("qzonosggbhcohf", model.preBuildSteps().get(0).httpGet().fileName()); - Assertions.assertEquals("jnkaljutiiswacff", model.preBuildSteps().get(0).httpGet().headers().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderCollectionTests.java deleted file mode 100644 index cb5500531600..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderCollectionTests.java +++ /dev/null @@ -1,108 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner; -import com.azure.resourcemanager.appcontainers.models.BuilderCollection; -import com.azure.resourcemanager.appcontainers.models.ContainerRegistry; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BuilderCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BuilderCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"environmentId\":\"wvlqdqgb\",\"containerRegistries\":[{\"containerRegistryServer\":\"lihkaetcktvfc\",\"identityResourceId\":\"vf\"},{\"containerRegistryServer\":\"nkymuctqhjfbebrj\",\"identityResourceId\":\"xerf\"},{\"containerRegistryServer\":\"wutttxfvjrbi\",\"identityResourceId\":\"phxepcyvahf\"}]},\"identity\":{\"principalId\":\"6116c058-eba5-4061-b3ae-7455b5556991\",\"tenantId\":\"c2af2442-ae1e-4167-9d39-74e1a14da5ab\",\"type\":\"None\",\"userAssignedIdentities\":{\"uujqgidokgjljyo\":{\"principalId\":\"a757718b-710f-466f-a30f-34b2659a9f95\",\"clientId\":\"463419ed-90f1-430b-94e7-baabff4ae2be\"},\"cltbgsncghkjesz\":{\"principalId\":\"f17519cf-2614-42f6-9fba-d0243096e68c\",\"clientId\":\"c157b6a4-a13c-4a3e-b350-8b92761d5039\"},\"ijhtxf\":{\"principalId\":\"f35079d3-e5c8-4f08-9b6d-50bc235723b1\",\"clientId\":\"38672513-c5c0-4fc4-bcb6-4096d70df526\"},\"bfs\":{\"principalId\":\"7c6feed8-2369-4cdb-a641-9501acb7369e\",\"clientId\":\"4c8e71e2-1dec-41d8-9471-9e49cc5633ca\"}}},\"location\":\"nehmpvecx\",\"tags\":{\"ukgri\":\"ebfqkkrbm\",\"fbxzpuzycisp\":\"flz\",\"y\":\"qzahmgkbrp\",\"rgvtqag\":\"hibnuqqkpika\"},\"id\":\"buynhijggm\",\"name\":\"bfs\",\"type\":\"arbu\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"environmentId\":\"pnazzm\",\"containerRegistries\":[{\"containerRegistryServer\":\"unmpxttd\",\"identityResourceId\":\"hrbnlankxmyskpbh\"},{\"containerRegistryServer\":\"nbtkcxywnytnr\",\"identityResourceId\":\"yn\"}]},\"identity\":{\"principalId\":\"8c4f8cad-95be-43fc-9af1-3891f19eed5f\",\"tenantId\":\"f300bc32-5687-40c4-a6db-9a281e441b8f\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"zfcl\":{\"principalId\":\"a6c038a9-68b3-4ad5-ab1b-28fb2a913980\",\"clientId\":\"3835975b-60f8-426c-baa1-12f6aeaa8e77\"},\"xdbabphlwr\":{\"principalId\":\"a163ac13-9b44-4267-9c02-e4b0f39578a6\",\"clientId\":\"ac02da76-d879-4da8-8f06-fbac643020fa\"}}},\"location\":\"fkts\",\"tags\":{\"nyyazttbtwwrqpue\":\"ucoc\",\"xibxujwbhqwalm\":\"ckzywbiexzfeyue\",\"ux\":\"zyoxaepdkzjan\",\"zt\":\"hdwbavxbniwdjs\"},\"id\":\"dbpgnxytxhp\",\"name\":\"xbzpfzab\",\"type\":\"lcuhxwtctyqiklb\"},{\"properties\":{\"provisioningState\":\"Creating\",\"environmentId\":\"lwzbhvgyugu\",\"containerRegistries\":[{\"containerRegistryServer\":\"mkfssxqukkfplgm\",\"identityResourceId\":\"sxnkjzkdeslpvlo\"},{\"containerRegistryServer\":\"wiyighxpkdw\",\"identityResourceId\":\"baiuebbaumny\"},{\"containerRegistryServer\":\"upedeojnabckhs\",\"identityResourceId\":\"txp\"}]},\"identity\":{\"principalId\":\"ff2c8f4c-6e73-442a-bf3f-ecf542250681\",\"tenantId\":\"a0772b03-a106-40b8-a71c-7aa7cefafea6\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"esap\":{\"principalId\":\"82ef2278-0f8f-41a1-bf62-298f329aeec9\",\"clientId\":\"811e26e6-b5ac-4853-b68b-e43b570864e8\"},\"dqmh\":{\"principalId\":\"9a44ee5d-214d-4fe7-89f7-f4dc411e09ff\",\"clientId\":\"715c181e-35aa-4cb1-ba06-2aa063a2a5b0\"},\"htldwk\":{\"principalId\":\"a7295eb3-b065-4af9-8956-d3ad80ed4300\",\"clientId\":\"e22adda0-5402-4e0a-b092-6271f0e44450\"},\"uutkncw\":{\"principalId\":\"58dfdcfd-ea8b-46a4-a7aa-fb5115d79b67\",\"clientId\":\"b5a3c6eb-d44a-44c4-a301-a7e23ea5dd67\"}}},\"location\":\"wsvlxotogtwrupqs\",\"tags\":{\"notyfjfcnjbkcn\":\"micykvceoveilo\"},\"id\":\"dhbt\",\"name\":\"kphywpnvjto\",\"type\":\"nermcl\"}],\"nextLink\":\"lphox\"}") - .toObject(BuilderCollection.class); - Assertions.assertEquals("nehmpvecx", model.value().get(0).location()); - Assertions.assertEquals("ebfqkkrbm", model.value().get(0).tags().get("ukgri")); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("wvlqdqgb", model.value().get(0).environmentId()); - Assertions.assertEquals("lihkaetcktvfc", - model.value().get(0).containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("vf", model.value().get(0).containerRegistries().get(0).identityResourceId()); - Assertions.assertEquals("lphox", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BuilderCollection model - = new BuilderCollection() - .withValue( - Arrays.asList( - new BuilderResourceInner().withLocation("nehmpvecx") - .withTags(mapOf("ukgri", "ebfqkkrbm", "fbxzpuzycisp", "flz", "y", "qzahmgkbrp", "rgvtqag", - "hibnuqqkpika")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) - .withUserAssignedIdentities(mapOf("uujqgidokgjljyo", new UserAssignedIdentity(), - "cltbgsncghkjesz", new UserAssignedIdentity(), "ijhtxf", new UserAssignedIdentity(), - "bfs", new UserAssignedIdentity()))) - .withEnvironmentId("wvlqdqgb") - .withContainerRegistries(Arrays.asList( - new ContainerRegistry().withContainerRegistryServer("lihkaetcktvfc") - .withIdentityResourceId("vf"), - new ContainerRegistry().withContainerRegistryServer("nkymuctqhjfbebrj") - .withIdentityResourceId("xerf"), - new ContainerRegistry().withContainerRegistryServer("wutttxfvjrbi") - .withIdentityResourceId("phxepcyvahf"))), - new BuilderResourceInner().withLocation("fkts") - .withTags(mapOf("nyyazttbtwwrqpue", "ucoc", "xibxujwbhqwalm", "ckzywbiexzfeyue", "ux", - "zyoxaepdkzjan", "zt", "hdwbavxbniwdjs")) - .withIdentity( - new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("zfcl", new UserAssignedIdentity(), "xdbabphlwr", - new UserAssignedIdentity()))) - .withEnvironmentId("pnazzm") - .withContainerRegistries(Arrays.asList( - new ContainerRegistry().withContainerRegistryServer("unmpxttd") - .withIdentityResourceId("hrbnlankxmyskpbh"), - new ContainerRegistry().withContainerRegistryServer("nbtkcxywnytnr") - .withIdentityResourceId("yn"))), - new BuilderResourceInner().withLocation("wsvlxotogtwrupqs") - .withTags(mapOf("notyfjfcnjbkcn", "micykvceoveilo")) - .withIdentity( - new ManagedServiceIdentity() - .withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("esap", new UserAssignedIdentity(), "dqmh", - new UserAssignedIdentity(), "htldwk", new UserAssignedIdentity(), "uutkncw", - new UserAssignedIdentity()))) - .withEnvironmentId("lwzbhvgyugu") - .withContainerRegistries(Arrays.asList( - new ContainerRegistry().withContainerRegistryServer("mkfssxqukkfplgm") - .withIdentityResourceId("sxnkjzkdeslpvlo"), - new ContainerRegistry().withContainerRegistryServer("wiyighxpkdw") - .withIdentityResourceId("baiuebbaumny"), - new ContainerRegistry().withContainerRegistryServer("upedeojnabckhs") - .withIdentityResourceId("txp"))))) - .withNextLink("lphox"); - model = BinaryData.fromObject(model).toObject(BuilderCollection.class); - Assertions.assertEquals("nehmpvecx", model.value().get(0).location()); - Assertions.assertEquals("ebfqkkrbm", model.value().get(0).tags().get("ukgri")); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("wvlqdqgb", model.value().get(0).environmentId()); - Assertions.assertEquals("lihkaetcktvfc", - model.value().get(0).containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("vf", model.value().get(0).containerRegistries().get(0).identityResourceId()); - Assertions.assertEquals("lphox", model.nextLink()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderPropertiesTests.java deleted file mode 100644 index 20f4116f62eb..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderPropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.BuilderProperties; -import com.azure.resourcemanager.appcontainers.models.ContainerRegistry; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BuilderPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BuilderProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Deleting\",\"environmentId\":\"b\",\"containerRegistries\":[{\"containerRegistryServer\":\"dawkzbali\",\"identityResourceId\":\"urqhaka\"},{\"containerRegistryServer\":\"hashsfwxosow\",\"identityResourceId\":\"xcug\"},{\"containerRegistryServer\":\"cjooxdjebwpucwwf\",\"identityResourceId\":\"ovbvmeueciv\"},{\"containerRegistryServer\":\"hzceuojgjrwjue\",\"identityResourceId\":\"otwmcdyt\"}]}") - .toObject(BuilderProperties.class); - Assertions.assertEquals("b", model.environmentId()); - Assertions.assertEquals("dawkzbali", model.containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("urqhaka", model.containerRegistries().get(0).identityResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BuilderProperties model = new BuilderProperties().withEnvironmentId("b") - .withContainerRegistries(Arrays.asList( - new ContainerRegistry().withContainerRegistryServer("dawkzbali").withIdentityResourceId("urqhaka"), - new ContainerRegistry().withContainerRegistryServer("hashsfwxosow").withIdentityResourceId("xcug"), - new ContainerRegistry().withContainerRegistryServer("cjooxdjebwpucwwf") - .withIdentityResourceId("ovbvmeueciv"), - new ContainerRegistry().withContainerRegistryServer("hzceuojgjrwjue") - .withIdentityResourceId("otwmcdyt"))); - model = BinaryData.fromObject(model).toObject(BuilderProperties.class); - Assertions.assertEquals("b", model.environmentId()); - Assertions.assertEquals("dawkzbali", model.containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("urqhaka", model.containerRegistries().get(0).identityResourceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderResourceInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderResourceInnerTests.java deleted file mode 100644 index 475c4022a3b9..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderResourceInnerTests.java +++ /dev/null @@ -1,67 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceInner; -import com.azure.resourcemanager.appcontainers.models.ContainerRegistry; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BuilderResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BuilderResourceInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Canceled\",\"environmentId\":\"pabgyeps\",\"containerRegistries\":[{\"containerRegistryServer\":\"azqugxywpmueefj\",\"identityResourceId\":\"wfqkquj\"},{\"containerRegistryServer\":\"dsuyonobgla\",\"identityResourceId\":\"cq\"},{\"containerRegistryServer\":\"tcc\",\"identityResourceId\":\"g\"},{\"containerRegistryServer\":\"udxytlmoyrx\",\"identityResourceId\":\"wfudwpzntxhdzhl\"}]},\"identity\":{\"principalId\":\"bd41f6f4-8b7d-4714-9b62-b69e27ce3d83\",\"tenantId\":\"2e5bc8e1-ade5-4925-ab3f-24c3223febff\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"lhrxsbkyvpyc\":{\"principalId\":\"e6aeffea-192a-4432-8f6c-bedb93b4b924\",\"clientId\":\"fd05ece6-e853-4664-a454-56b6b0da432c\"},\"z\":{\"principalId\":\"52994e43-356a-465c-961d-a09b4abe67b7\",\"clientId\":\"46f68667-a06b-41ed-b50d-dad559c5f181\"},\"kafkuwbcrnwbm\":{\"principalId\":\"a4a025eb-a119-40e0-82c1-1806f0ba7530\",\"clientId\":\"d9ce622b-3ec9-48f1-a456-af90ad8397d0\"}}},\"location\":\"hseyvju\",\"tags\":{\"kdeemaofmxagkvtm\":\"slhs\",\"ahaquh\":\"lmqkrhahvlj\",\"aex\":\"dhmdua\"},\"id\":\"pvfadmwsrcr\",\"name\":\"vxpvgomz\",\"type\":\"fmisg\"}") - .toObject(BuilderResourceInner.class); - Assertions.assertEquals("hseyvju", model.location()); - Assertions.assertEquals("slhs", model.tags().get("kdeemaofmxagkvtm")); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("pabgyeps", model.environmentId()); - Assertions.assertEquals("azqugxywpmueefj", model.containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("wfqkquj", model.containerRegistries().get(0).identityResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BuilderResourceInner model = new BuilderResourceInner().withLocation("hseyvju") - .withTags(mapOf("kdeemaofmxagkvtm", "slhs", "ahaquh", "lmqkrhahvlj", "aex", "dhmdua")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("lhrxsbkyvpyc", new UserAssignedIdentity(), "z", - new UserAssignedIdentity(), "kafkuwbcrnwbm", new UserAssignedIdentity()))) - .withEnvironmentId("pabgyeps") - .withContainerRegistries(Arrays.asList( - new ContainerRegistry().withContainerRegistryServer("azqugxywpmueefj") - .withIdentityResourceId("wfqkquj"), - new ContainerRegistry().withContainerRegistryServer("dsuyonobgla").withIdentityResourceId("cq"), - new ContainerRegistry().withContainerRegistryServer("tcc").withIdentityResourceId("g"), - new ContainerRegistry().withContainerRegistryServer("udxytlmoyrx") - .withIdentityResourceId("wfudwpzntxhdzhl"))); - model = BinaryData.fromObject(model).toObject(BuilderResourceInner.class); - Assertions.assertEquals("hseyvju", model.location()); - Assertions.assertEquals("slhs", model.tags().get("kdeemaofmxagkvtm")); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("pabgyeps", model.environmentId()); - Assertions.assertEquals("azqugxywpmueefj", model.containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("wfqkquj", model.containerRegistries().get(0).identityResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderResourceUpdatePropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderResourceUpdatePropertiesTests.java deleted file mode 100644 index cca471d917c8..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderResourceUpdatePropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.BuilderResourceUpdateProperties; -import org.junit.jupiter.api.Assertions; - -public final class BuilderResourceUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BuilderResourceUpdateProperties model - = BinaryData.fromString("{\"environmentId\":\"zjuzgwyz\"}").toObject(BuilderResourceUpdateProperties.class); - Assertions.assertEquals("zjuzgwyz", model.environmentId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BuilderResourceUpdateProperties model = new BuilderResourceUpdateProperties().withEnvironmentId("zjuzgwyz"); - model = BinaryData.fromObject(model).toObject(BuilderResourceUpdateProperties.class); - Assertions.assertEquals("zjuzgwyz", model.environmentId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderResourceUpdateTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderResourceUpdateTests.java deleted file mode 100644 index 58e8432b6646..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuilderResourceUpdateTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.BuilderResourceUpdate; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BuilderResourceUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BuilderResourceUpdate model = BinaryData.fromString( - "{\"identity\":{\"principalId\":\"baa6b7aa-8830-4ad0-83d6-45771d48fada\",\"tenantId\":\"c2e8c2db-5cbc-4d37-93c9-1c49cf60444a\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"dnhjdauwhvylw\":{\"principalId\":\"54b9d44a-d711-407f-a940-763ff5a70747\",\"clientId\":\"40731f01-c1bd-48bc-903d-98715273678f\"}}},\"tags\":{\"uwprzql\":\"dhxujznbmpo\",\"obbc\":\"eualupjmkhf\",\"tghfgblcgwxzvl\":\"wsrtjriplrbpbe\",\"egibtnmxiebww\":\"qhjk\"},\"properties\":{\"environmentId\":\"ayqcgw\"}}") - .toObject(BuilderResourceUpdate.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals("dhxujznbmpo", model.tags().get("uwprzql")); - Assertions.assertEquals("ayqcgw", model.environmentId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BuilderResourceUpdate model = new BuilderResourceUpdate() - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("dnhjdauwhvylw", new UserAssignedIdentity()))) - .withTags(mapOf("uwprzql", "dhxujznbmpo", "obbc", "eualupjmkhf", "tghfgblcgwxzvl", "wsrtjriplrbpbe", - "egibtnmxiebww", "qhjk")) - .withEnvironmentId("ayqcgw"); - model = BinaryData.fromObject(model).toObject(BuilderResourceUpdate.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals("dhxujznbmpo", model.tags().get("uwprzql")); - Assertions.assertEquals("ayqcgw", model.environmentId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateMockTests.java deleted file mode 100644 index 34c64e9c17c4..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersCreateOrUpdateMockTests.java +++ /dev/null @@ -1,74 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.BuilderResource; -import com.azure.resourcemanager.appcontainers.models.ContainerRegistry; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BuildersCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"environmentId\":\"jti\",\"containerRegistries\":[{\"containerRegistryServer\":\"zqgxx\",\"identityResourceId\":\"fbbmtlp\"},{\"containerRegistryServer\":\"agynoi\",\"identityResourceId\":\"rnzcalinc\"},{\"containerRegistryServer\":\"yqxzxaqzibmqim\",\"identityResourceId\":\"ymqruqguhfupet\"},{\"containerRegistryServer\":\"svvoqsbpkflanfk\",\"identityResourceId\":\"xsyaowuzowpuoh\"}]},\"identity\":{\"principalId\":\"f1ad45e1-b4d5-4c90-95ae-d80a039ad8c9\",\"tenantId\":\"e8394795-d16e-4ef3-bc76-b25f82f2fb6e\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"rztiochlutixmqr\":{\"principalId\":\"93e35cfa-e054-4fa9-ba42-33cd367fd0a8\",\"clientId\":\"a5f7173c-253a-489c-af05-1e030dc11c04\"},\"izcbfzmcrunfhiuc\":{\"principalId\":\"9789ce82-9526-45b6-b4b8-3cb6c7e601bd\",\"clientId\":\"c791ce71-c592-4f3a-b8bd-203c431e4985\"}}},\"location\":\"fbcpaqktkrumzu\",\"tags\":{\"uxqggvqrnhyhl\":\"yzbfvxovqkx\",\"rkijpeuqlsdxeqz\":\"cjsqggjhffbxr\",\"en\":\"vxwmwwmjs\",\"ecleqioulndhzyo\":\"wwa\"},\"id\":\"ojhtollhs\",\"name\":\"idmytzln\",\"type\":\"lxpnovyoanf\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - BuilderResource response = manager.builders() - .define("wnsnlaimouxwks") - .withRegion("xvjabjq") - .withExistingResourceGroup("imwbzxpdcldpk") - .withTags(mapOf("ndoabhjxwxqweuip", "uyvymcnu", "sqxtltclkrdpq", "pvksmit")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) - .withUserAssignedIdentities(mapOf("osrnawnvzmlnkoy", new UserAssignedIdentity()))) - .withEnvironmentId("mfcoibic") - .withContainerRegistries(Arrays.asList( - new ContainerRegistry().withContainerRegistryServer("swswjrkbq").withIdentityResourceId("jhbtqq"), - new ContainerRegistry().withContainerRegistryServer("yfscyrfwbivqvo").withIdentityResourceId("fuy"), - new ContainerRegistry().withContainerRegistryServer("wvbhlimbyq").withIdentityResourceId("crood"), - new ContainerRegistry().withContainerRegistryServer("ikcdrdaasax").withIdentityResourceId("obsmf"))) - .create(); - - Assertions.assertEquals("fbcpaqktkrumzu", response.location()); - Assertions.assertEquals("yzbfvxovqkx", response.tags().get("uxqggvqrnhyhl")); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals("jti", response.environmentId()); - Assertions.assertEquals("zqgxx", response.containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("fbbmtlp", response.containerRegistries().get(0).identityResourceId()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index a9c85303f101..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersGetByResourceGroupWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.BuilderResource; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType; -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 BuildersGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"environmentId\":\"mmdqgmihzpimc\",\"containerRegistries\":[{\"containerRegistryServer\":\"nxtminklog\",\"identityResourceId\":\"svtzarhzv\"},{\"containerRegistryServer\":\"nsqktc\",\"identityResourceId\":\"bjwzzos\"}]},\"identity\":{\"principalId\":\"ecbafe51-5827-42fa-803e-a2a601daca48\",\"tenantId\":\"2385d766-3557-4f60-ab1d-2a310e25758f\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"kzpgaj\":{\"principalId\":\"7bf2593e-4857-4036-9980-3d3e1610b95b\",\"clientId\":\"898a5c3c-9b19-4c0f-b9c2-1ace3214e886\"},\"cemqbmfuvqarwz\":{\"principalId\":\"60849fea-dfe8-444c-9689-6c84785be827\",\"clientId\":\"6de53dcc-2ec1-4498-b925-1f410b0ac3e0\"},\"rebluimmbwxsf\":{\"principalId\":\"0efebb13-9413-433a-8f55-506bf6ec83ef\",\"clientId\":\"e8f467ae-401d-4f07-851b-fa138c836fcf\"}}},\"location\":\"dmbvxekraok\",\"tags\":{\"twaokb\":\"ud\",\"sm\":\"vlyttaaknwfrke\"},\"id\":\"p\",\"name\":\"ujd\",\"type\":\"gatolekscbctnan\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - BuilderResource response = manager.builders() - .getByResourceGroupWithResponse("rlhgenuze", "gvkvebaqszll", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("dmbvxekraok", response.location()); - Assertions.assertEquals("ud", response.tags().get("twaokb")); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals("mmdqgmihzpimc", response.environmentId()); - Assertions.assertEquals("nxtminklog", response.containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("svtzarhzv", response.containerRegistries().get(0).identityResourceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupMockTests.java deleted file mode 100644 index 79cc8979e445..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersListByResourceGroupMockTests.java +++ /dev/null @@ -1,46 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.BuilderResource; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType; -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 BuildersListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"environmentId\":\"kfmkmfdjxyxgbk\",\"containerRegistries\":[{\"containerRegistryServer\":\"jcteoedlrsl\",\"identityResourceId\":\"kk\"},{\"containerRegistryServer\":\"pxvjnzd\",\"identityResourceId\":\"vocoj\"},{\"containerRegistryServer\":\"pcnab\",\"identityResourceId\":\"zf\"},{\"containerRegistryServer\":\"nggy\",\"identityResourceId\":\"e\"}]},\"identity\":{\"principalId\":\"971284fc-6ae1-4bcf-a1af-72a8a47af317\",\"tenantId\":\"c09db8af-3d50-4408-9261-44aeb42b75e0\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"zkwwwn\":{\"principalId\":\"85d66840-4211-43ef-8d72-599253891acb\",\"clientId\":\"a1867540-18ae-44f2-bbd0-f3cf5df94336\"},\"rzd\":{\"principalId\":\"9cf06dd5-f156-41cc-a38e-e17da3121f9d\",\"clientId\":\"3a860d37-807e-4a82-b1de-17750928526c\"}}},\"location\":\"lskzptjxul\",\"tags\":{\"gcj\":\"cyrthxqlehm\",\"oka\":\"inue\"},\"id\":\"vfejvqnttmbqda\",\"name\":\"zfivfokpysthhzag\",\"type\":\"fwy\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.builders().listByResourceGroup("thzodubtlmjtgbl", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lskzptjxul", response.iterator().next().location()); - Assertions.assertEquals("cyrthxqlehm", response.iterator().next().tags().get("gcj")); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); - Assertions.assertEquals("kfmkmfdjxyxgbk", response.iterator().next().environmentId()); - Assertions.assertEquals("jcteoedlrsl", - response.iterator().next().containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("kk", response.iterator().next().containerRegistries().get(0).identityResourceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersListMockTests.java deleted file mode 100644 index 1c7607e09d14..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/BuildersListMockTests.java +++ /dev/null @@ -1,46 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.BuilderResource; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType; -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 BuildersListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"environmentId\":\"sshajqfukpee\",\"containerRegistries\":[{\"containerRegistryServer\":\"eumilhw\",\"identityResourceId\":\"itrdexy\"},{\"containerRegistryServer\":\"onofninbdbzsxcw\",\"identityResourceId\":\"qrs\"}]},\"identity\":{\"principalId\":\"244fdd97-10d1-40e0-a8db-f7dea1b0d6ff\",\"tenantId\":\"af2e92cf-b098-46fd-aec5-0dba33728908\",\"type\":\"None\",\"userAssignedIdentities\":{\"gavbzbcyk\":{\"principalId\":\"b96bd741-6b0c-4346-97fd-79023a9758bf\",\"clientId\":\"80446455-f725-418c-a9b3-6858206a6a07\"},\"mf\":{\"principalId\":\"473d9add-ad83-43a7-97fb-282d9fdebaa2\",\"clientId\":\"fb009f27-f7d5-404e-aa66-f885c69897d0\"},\"rt\":{\"principalId\":\"ec374841-f68e-4147-af8b-08b13315eca6\",\"clientId\":\"f8a58d2e-8dac-453d-b84a-de3971a3a55b\"},\"mkrftsjcwjjxsgm\":{\"principalId\":\"5fb3cc1e-665d-4881-8cc1-c0b673f01a40\",\"clientId\":\"2de5db66-d1fd-46bf-93c9-47815a74f1bb\"}}},\"location\":\"wvif\",\"tags\":{\"hocjxwkloozrv\":\"eci\",\"xvi\":\"xvcmufunlcp\",\"g\":\"yeyng\",\"ygg\":\"rquv\"},\"id\":\"pmcrdcuelj\",\"name\":\"iahxmfqryarvs\",\"type\":\"zqbglcjkays\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.builders().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wvif", response.iterator().next().location()); - Assertions.assertEquals("eci", response.iterator().next().tags().get("hocjxwkloozrv")); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, response.iterator().next().identity().type()); - Assertions.assertEquals("sshajqfukpee", response.iterator().next().environmentId()); - Assertions.assertEquals("eumilhw", - response.iterator().next().containerRegistries().get(0).containerRegistryServer()); - Assertions.assertEquals("itrdexy", - response.iterator().next().containerRegistries().get(0).identityResourceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatePatchTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatePatchTests.java deleted file mode 100644 index 52739b2c49ca..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatePatchTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.CertificatePatch; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CertificatePatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CertificatePatch model - = BinaryData.fromString("{\"tags\":{\"ekkezzikhlyfjh\":\"kfcktqum\"}}").toObject(CertificatePatch.class); - Assertions.assertEquals("kfcktqum", model.tags().get("ekkezzikhlyfjh")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CertificatePatch model = new CertificatePatch().withTags(mapOf("ekkezzikhlyfjh", "kfcktqum")); - model = BinaryData.fromObject(model).toObject(CertificatePatch.class); - Assertions.assertEquals("kfcktqum", model.tags().get("ekkezzikhlyfjh")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteWithResponseMockTests.java deleted file mode 100644 index c203f5c43723..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CertificatesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,33 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CertificatesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.certificates().deleteWithResponse("utzcttbqgdirda", "m", "zjgcfjfx", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityRequestTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityRequestTests.java deleted file mode 100644 index 54fee892b5da..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityRequestTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameAvailabilityRequest model = BinaryData.fromString("{\"name\":\"i\",\"type\":\"blxgwimf\"}") - .toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("i", model.name()); - Assertions.assertEquals("blxgwimf", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("i").withType("blxgwimf"); - model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("i", model.name()); - Assertions.assertEquals("blxgwimf", model.type()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityResponseInnerTests.java deleted file mode 100644 index e81d2c81adbf..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CheckNameAvailabilityResponseInnerTests.java +++ /dev/null @@ -1,33 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.CheckNameAvailabilityResponseInner; -import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReason; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameAvailabilityResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameAvailabilityResponseInner model - = BinaryData.fromString("{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"wmszkk\"}") - .toObject(CheckNameAvailabilityResponseInner.class); - Assertions.assertEquals(false, model.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason()); - Assertions.assertEquals("wmszkk", model.message()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameAvailabilityResponseInner model = new CheckNameAvailabilityResponseInner().withNameAvailable(false) - .withReason(CheckNameAvailabilityReason.INVALID) - .withMessage("wmszkk"); - model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityResponseInner.class); - Assertions.assertEquals(false, model.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, model.reason()); - Assertions.assertEquals("wmszkk", model.message()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CircuitBreakerPolicyTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CircuitBreakerPolicyTests.java deleted file mode 100644 index bc782075a14c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CircuitBreakerPolicyTests.java +++ /dev/null @@ -1,33 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.CircuitBreakerPolicy; -import org.junit.jupiter.api.Assertions; - -public final class CircuitBreakerPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CircuitBreakerPolicy model = BinaryData - .fromString( - "{\"consecutiveErrors\":1722437661,\"intervalInSeconds\":1946289710,\"maxEjectionPercent\":158340850}") - .toObject(CircuitBreakerPolicy.class); - Assertions.assertEquals(1722437661, model.consecutiveErrors()); - Assertions.assertEquals(1946289710, model.intervalInSeconds()); - Assertions.assertEquals(158340850, model.maxEjectionPercent()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CircuitBreakerPolicy model = new CircuitBreakerPolicy().withConsecutiveErrors(1722437661) - .withIntervalInSeconds(1946289710) - .withMaxEjectionPercent(158340850); - model = BinaryData.fromObject(model).toObject(CircuitBreakerPolicy.class); - Assertions.assertEquals(1722437661, model.consecutiveErrors()); - Assertions.assertEquals(1946289710, model.intervalInSeconds()); - Assertions.assertEquals(158340850, model.maxEjectionPercent()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteWithResponseMockTests.java deleted file mode 100644 index 5b6df25aff14..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCertificatesDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ConnectedEnvironmentsCertificatesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.connectedEnvironmentsCertificates() - .deleteWithResponse("ue", "ijyzcqypzqzufgsy", "ej", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilityWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index 890a776f15c2..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsCheckNameAvailabilityWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReason; -import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest; -import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityResponse; -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 ConnectedEnvironmentsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":false,\"reason\":\"Invalid\",\"message\":\"pclbiedfs\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameAvailabilityResponse response = manager.connectedEnvironments() - .checkNameAvailabilityWithResponse("imsqywwwmhk", "uwaedrympmlqoi", - new CheckNameAvailabilityRequest().withName("zduewihapfjii").withType("jdiq"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.INVALID, response.reason()); - Assertions.assertEquals("pclbiedfs", response.message()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteWithResponseMockTests.java deleted file mode 100644 index 83f4c4aeb7cb..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ConnectedEnvironmentsDaprComponentsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.connectedEnvironmentsDaprComponents() - .deleteWithResponse("kfvvdshxcde", "suenyg", "xcgjtf", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsWithResponseMockTests.java deleted file mode 100644 index 5bb6574bbc6f..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDaprComponentsListSecretsWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ConnectedEnvironmentsDaprComponentsListSecretsWithResponseMockTests { - @Test - public void testListSecretsWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"rrdreyzjwhset\",\"value\":\"jwzzqseuzu\"},{\"name\":\"y\",\"value\":\"yqhyqqzzdcykey\"},{\"name\":\"ewfopazdazg\",\"value\":\"qgpewqcfutmdpvoz\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DaprSecretsCollection response = manager.connectedEnvironmentsDaprComponents() - .listSecretsWithResponse("nquktrfnslnlrxs", "ylt", "wntfmtbgwjdxwna", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteMockTests.java deleted file mode 100644 index d9ffbd94b0fb..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsDeleteMockTests.java +++ /dev/null @@ -1,33 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ConnectedEnvironmentsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.connectedEnvironments().delete("ib", "dyjdussp", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteWithResponseMockTests.java deleted file mode 100644 index 864f10e5605c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ConnectedEnvironmentsStoragesDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ConnectedEnvironmentsStoragesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.connectedEnvironmentsStorages() - .deleteWithResponse("zzwjcayerzrran", "ybylpol", "zrghsrleink", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppJobExecutionsInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppJobExecutionsInnerTests.java deleted file mode 100644 index caa9819adc3c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppJobExecutionsInnerTests.java +++ /dev/null @@ -1,85 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppJobExecutionsInner; -import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionInner; -import com.azure.resourcemanager.appcontainers.models.ExecutionStatus; -import com.azure.resourcemanager.appcontainers.models.JobExecutionContainer; -import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate; -import com.azure.resourcemanager.appcontainers.models.ReplicaExecutionStatus; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ContainerAppJobExecutionsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppJobExecutionsInner model = BinaryData.fromString( - "{\"value\":[{\"name\":\"lrtywikdmhlakuf\",\"id\":\"bhgau\",\"type\":\"dixmxufrsryjq\",\"properties\":{\"status\":\"Processing\",\"startTime\":\"2021-08-26T02:50:05Z\",\"endTime\":\"2021-07-21T11:36:33Z\",\"template\":{\"containers\":[{}],\"initContainers\":[{},{},{}]},\"detailedStatus\":{\"replicas\":[{},{},{},{}]}}},{\"name\":\"f\",\"id\":\"bmq\",\"type\":\"hntasfaymx\",\"properties\":{\"status\":\"Stopped\",\"startTime\":\"2021-02-25T11:08:17Z\",\"endTime\":\"2021-09-29T15:05:08Z\",\"template\":{\"containers\":[{},{},{}],\"initContainers\":[{},{},{},{}]},\"detailedStatus\":{\"replicas\":[{}]}}},{\"name\":\"vf\",\"id\":\"btsuahxs\",\"type\":\"jcmmzrrscub\",\"properties\":{\"status\":\"Degraded\",\"startTime\":\"2021-05-28T09:40:49Z\",\"endTime\":\"2021-09-07T00:49:31Z\",\"template\":{\"containers\":[{},{},{},{}],\"initContainers\":[{},{},{}]},\"detailedStatus\":{\"replicas\":[{},{},{},{}]}}},{\"name\":\"cjrmmua\",\"id\":\"ibvjogjonmcy\",\"type\":\"oyzbamwineofvf\",\"properties\":{\"status\":\"Unknown\",\"startTime\":\"2021-07-04T11:17:02Z\",\"endTime\":\"2021-08-04T17:27:35Z\",\"template\":{\"containers\":[{},{},{}],\"initContainers\":[{},{}]},\"detailedStatus\":{\"replicas\":[{},{},{}]}}}],\"nextLink\":\"zjknyuxg\"}") - .toObject(ContainerAppJobExecutionsInner.class); - Assertions.assertEquals("lrtywikdmhlakuf", model.value().get(0).name()); - Assertions.assertEquals("bhgau", model.value().get(0).id()); - Assertions.assertEquals("dixmxufrsryjq", model.value().get(0).type()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-26T02:50:05Z"), model.value().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-21T11:36:33Z"), model.value().get(0).endTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppJobExecutionsInner model = new ContainerAppJobExecutionsInner().withValue(Arrays.asList( - new JobExecutionInner().withName("lrtywikdmhlakuf") - .withId("bhgau") - .withType("dixmxufrsryjq") - .withStartTime(OffsetDateTime.parse("2021-08-26T02:50:05Z")) - .withEndTime(OffsetDateTime.parse("2021-07-21T11:36:33Z")) - .withTemplate(new JobExecutionTemplate().withContainers(Arrays.asList(new JobExecutionContainer())) - .withInitContainers(Arrays.asList(new JobExecutionContainer(), new JobExecutionContainer(), - new JobExecutionContainer()))) - .withDetailedStatus(new ExecutionStatus().withReplicas(Arrays.asList(new ReplicaExecutionStatus(), - new ReplicaExecutionStatus(), new ReplicaExecutionStatus(), new ReplicaExecutionStatus()))), - new JobExecutionInner().withName("f") - .withId("bmq") - .withType("hntasfaymx") - .withStartTime(OffsetDateTime.parse("2021-02-25T11:08:17Z")) - .withEndTime(OffsetDateTime.parse("2021-09-29T15:05:08Z")) - .withTemplate(new JobExecutionTemplate() - .withContainers(Arrays.asList(new JobExecutionContainer(), new JobExecutionContainer(), - new JobExecutionContainer())) - .withInitContainers(Arrays.asList(new JobExecutionContainer(), new JobExecutionContainer(), - new JobExecutionContainer(), new JobExecutionContainer()))) - .withDetailedStatus(new ExecutionStatus().withReplicas(Arrays.asList(new ReplicaExecutionStatus()))), - new JobExecutionInner().withName("vf") - .withId("btsuahxs") - .withType("jcmmzrrscub") - .withStartTime(OffsetDateTime.parse("2021-05-28T09:40:49Z")) - .withEndTime(OffsetDateTime.parse("2021-09-07T00:49:31Z")) - .withTemplate(new JobExecutionTemplate() - .withContainers(Arrays.asList(new JobExecutionContainer(), new JobExecutionContainer(), - new JobExecutionContainer(), new JobExecutionContainer())) - .withInitContainers(Arrays.asList(new JobExecutionContainer(), new JobExecutionContainer(), - new JobExecutionContainer()))) - .withDetailedStatus(new ExecutionStatus().withReplicas(Arrays.asList(new ReplicaExecutionStatus(), - new ReplicaExecutionStatus(), new ReplicaExecutionStatus(), new ReplicaExecutionStatus()))), - new JobExecutionInner().withName("cjrmmua") - .withId("ibvjogjonmcy") - .withType("oyzbamwineofvf") - .withStartTime(OffsetDateTime.parse("2021-07-04T11:17:02Z")) - .withEndTime(OffsetDateTime.parse("2021-08-04T17:27:35Z")) - .withTemplate(new JobExecutionTemplate() - .withContainers(Arrays.asList(new JobExecutionContainer(), new JobExecutionContainer(), - new JobExecutionContainer())) - .withInitContainers(Arrays.asList(new JobExecutionContainer(), new JobExecutionContainer()))) - .withDetailedStatus(new ExecutionStatus().withReplicas(Arrays.asList(new ReplicaExecutionStatus(), - new ReplicaExecutionStatus(), new ReplicaExecutionStatus()))))); - model = BinaryData.fromObject(model).toObject(ContainerAppJobExecutionsInner.class); - Assertions.assertEquals("lrtywikdmhlakuf", model.value().get(0).name()); - Assertions.assertEquals("bhgau", model.value().get(0).id()); - Assertions.assertEquals("dixmxufrsryjq", model.value().get(0).type()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-26T02:50:05Z"), model.value().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-21T11:36:33Z"), model.value().get(0).endTime()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetHttpHeadersItemTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetHttpHeadersItemTests.java deleted file mode 100644 index c015446a181f..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetHttpHeadersItemTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem; -import org.junit.jupiter.api.Assertions; - -public final class ContainerAppProbeHttpGetHttpHeadersItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppProbeHttpGetHttpHeadersItem model - = BinaryData.fromString("{\"name\":\"baeqphc\",\"value\":\"qnrnrpxehuwryk\"}") - .toObject(ContainerAppProbeHttpGetHttpHeadersItem.class); - Assertions.assertEquals("baeqphc", model.name()); - Assertions.assertEquals("qnrnrpxehuwryk", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppProbeHttpGetHttpHeadersItem model - = new ContainerAppProbeHttpGetHttpHeadersItem().withName("baeqphc").withValue("qnrnrpxehuwryk"); - model = BinaryData.fromObject(model).toObject(ContainerAppProbeHttpGetHttpHeadersItem.class); - Assertions.assertEquals("baeqphc", model.name()); - Assertions.assertEquals("qnrnrpxehuwryk", model.value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetTests.java deleted file mode 100644 index 95eb45bba090..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeHttpGetTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet; -import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem; -import com.azure.resourcemanager.appcontainers.models.Scheme; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ContainerAppProbeHttpGetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppProbeHttpGet model = BinaryData.fromString( - "{\"host\":\"imwkslircizj\",\"httpHeaders\":[{\"name\":\"dfcea\",\"value\":\"vlhv\"},{\"name\":\"gdyftumrtwna\",\"value\":\"jslb\"}],\"path\":\"kojgcyzts\",\"port\":589391699,\"scheme\":\"HTTPS\"}") - .toObject(ContainerAppProbeHttpGet.class); - Assertions.assertEquals("imwkslircizj", model.host()); - Assertions.assertEquals("dfcea", model.httpHeaders().get(0).name()); - Assertions.assertEquals("vlhv", model.httpHeaders().get(0).value()); - Assertions.assertEquals("kojgcyzts", model.path()); - Assertions.assertEquals(589391699, model.port()); - Assertions.assertEquals(Scheme.HTTPS, model.scheme()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppProbeHttpGet model = new ContainerAppProbeHttpGet().withHost("imwkslircizj") - .withHttpHeaders( - Arrays.asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("dfcea").withValue("vlhv"), - new ContainerAppProbeHttpGetHttpHeadersItem().withName("gdyftumrtwna").withValue("jslb"))) - .withPath("kojgcyzts") - .withPort(589391699) - .withScheme(Scheme.HTTPS); - model = BinaryData.fromObject(model).toObject(ContainerAppProbeHttpGet.class); - Assertions.assertEquals("imwkslircizj", model.host()); - Assertions.assertEquals("dfcea", model.httpHeaders().get(0).name()); - Assertions.assertEquals("vlhv", model.httpHeaders().get(0).value()); - Assertions.assertEquals("kojgcyzts", model.path()); - Assertions.assertEquals(589391699, model.port()); - Assertions.assertEquals(Scheme.HTTPS, model.scheme()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTcpSocketTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTcpSocketTests.java deleted file mode 100644 index fb52375646f7..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTcpSocketTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket; -import org.junit.jupiter.api.Assertions; - -public final class ContainerAppProbeTcpSocketTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppProbeTcpSocket model = BinaryData.fromString("{\"host\":\"aifmvikl\",\"port\":654040507}") - .toObject(ContainerAppProbeTcpSocket.class); - Assertions.assertEquals("aifmvikl", model.host()); - Assertions.assertEquals(654040507, model.port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppProbeTcpSocket model = new ContainerAppProbeTcpSocket().withHost("aifmvikl").withPort(654040507); - model = BinaryData.fromObject(model).toObject(ContainerAppProbeTcpSocket.class); - Assertions.assertEquals("aifmvikl", model.host()); - Assertions.assertEquals(654040507, model.port()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTests.java deleted file mode 100644 index df45513ac047..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppProbeTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ContainerAppProbe; -import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGet; -import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem; -import com.azure.resourcemanager.appcontainers.models.ContainerAppProbeTcpSocket; -import com.azure.resourcemanager.appcontainers.models.Scheme; -import com.azure.resourcemanager.appcontainers.models.Type; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ContainerAppProbeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppProbe model = BinaryData.fromString( - "{\"failureThreshold\":1170712777,\"httpGet\":{\"host\":\"hu\",\"httpHeaders\":[{\"name\":\"pcesutrg\",\"value\":\"upauut\"}],\"path\":\"oqh\",\"port\":610822697,\"scheme\":\"HTTP\"},\"initialDelaySeconds\":89548348,\"periodSeconds\":1169581420,\"successThreshold\":938622806,\"tcpSocket\":{\"host\":\"n\",\"port\":1738422906},\"terminationGracePeriodSeconds\":6712585785730637115,\"timeoutSeconds\":330430250,\"type\":\"Liveness\"}") - .toObject(ContainerAppProbe.class); - Assertions.assertEquals(1170712777, model.failureThreshold()); - Assertions.assertEquals("hu", model.httpGet().host()); - Assertions.assertEquals("pcesutrg", model.httpGet().httpHeaders().get(0).name()); - Assertions.assertEquals("upauut", model.httpGet().httpHeaders().get(0).value()); - Assertions.assertEquals("oqh", model.httpGet().path()); - Assertions.assertEquals(610822697, model.httpGet().port()); - Assertions.assertEquals(Scheme.HTTP, model.httpGet().scheme()); - Assertions.assertEquals(89548348, model.initialDelaySeconds()); - Assertions.assertEquals(1169581420, model.periodSeconds()); - Assertions.assertEquals(938622806, model.successThreshold()); - Assertions.assertEquals("n", model.tcpSocket().host()); - Assertions.assertEquals(1738422906, model.tcpSocket().port()); - Assertions.assertEquals(6712585785730637115L, model.terminationGracePeriodSeconds()); - Assertions.assertEquals(330430250, model.timeoutSeconds()); - Assertions.assertEquals(Type.LIVENESS, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppProbe model = new ContainerAppProbe().withFailureThreshold(1170712777) - .withHttpGet(new ContainerAppProbeHttpGet().withHost("hu") - .withHttpHeaders(Arrays - .asList(new ContainerAppProbeHttpGetHttpHeadersItem().withName("pcesutrg").withValue("upauut"))) - .withPath("oqh") - .withPort(610822697) - .withScheme(Scheme.HTTP)) - .withInitialDelaySeconds(89548348) - .withPeriodSeconds(1169581420) - .withSuccessThreshold(938622806) - .withTcpSocket(new ContainerAppProbeTcpSocket().withHost("n").withPort(1738422906)) - .withTerminationGracePeriodSeconds(6712585785730637115L) - .withTimeoutSeconds(330430250) - .withType(Type.LIVENESS); - model = BinaryData.fromObject(model).toObject(ContainerAppProbe.class); - Assertions.assertEquals(1170712777, model.failureThreshold()); - Assertions.assertEquals("hu", model.httpGet().host()); - Assertions.assertEquals("pcesutrg", model.httpGet().httpHeaders().get(0).name()); - Assertions.assertEquals("upauut", model.httpGet().httpHeaders().get(0).value()); - Assertions.assertEquals("oqh", model.httpGet().path()); - Assertions.assertEquals(610822697, model.httpGet().port()); - Assertions.assertEquals(Scheme.HTTP, model.httpGet().scheme()); - Assertions.assertEquals(89548348, model.initialDelaySeconds()); - Assertions.assertEquals(1169581420, model.periodSeconds()); - Assertions.assertEquals(938622806, model.successThreshold()); - Assertions.assertEquals("n", model.tcpSocket().host()); - Assertions.assertEquals(1738422906, model.tcpSocket().port()); - Assertions.assertEquals(6712585785730637115L, model.terminationGracePeriodSeconds()); - Assertions.assertEquals(330430250, model.timeoutSeconds()); - Assertions.assertEquals(Type.LIVENESS, model.type()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppPropertiesPatchingConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppPropertiesPatchingConfigurationTests.java deleted file mode 100644 index cd8986918d3a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppPropertiesPatchingConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ContainerAppPropertiesPatchingConfiguration; -import com.azure.resourcemanager.appcontainers.models.PatchingMode; -import org.junit.jupiter.api.Assertions; - -public final class ContainerAppPropertiesPatchingConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppPropertiesPatchingConfiguration model = BinaryData.fromString("{\"patchingMode\":\"Automatic\"}") - .toObject(ContainerAppPropertiesPatchingConfiguration.class); - Assertions.assertEquals(PatchingMode.AUTOMATIC, model.patchingMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppPropertiesPatchingConfiguration model - = new ContainerAppPropertiesPatchingConfiguration().withPatchingMode(PatchingMode.AUTOMATIC); - model = BinaryData.fromObject(model).toObject(ContainerAppPropertiesPatchingConfiguration.class); - Assertions.assertEquals(PatchingMode.AUTOMATIC, model.patchingMode()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteWithResponseMockTests.java deleted file mode 100644 index 6c3d7112eb2e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsAuthConfigsDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsAuthConfigsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.containerAppsAuthConfigs() - .deleteWithResponse("twmykyut", "ym", "wmfjhp", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildCollectionTests.java deleted file mode 100644 index 50e2b581160e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildCollectionTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner; -import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildCollection; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ContainerAppsBuildCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppsBuildCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"buildStatus\":\"Succeeded\",\"destinationContainerRegistry\":{\"server\":\"o\",\"image\":\"vpgshoxgsgbp\"},\"configuration\":{\"baseOs\":\"djtxvzflbq\",\"platform\":\"aqvlgafcqusr\",\"platformVersion\":\"etnwsdtutnw\",\"environmentVariables\":[{\"name\":\"ycvuzhyrmewipmv\",\"value\":\"k\"},{\"name\":\"xukuqgsj\",\"value\":\"xundxgk\"},{\"name\":\"twzhhzjhfjmhv\",\"value\":\"muvgp\"},{\"name\":\"uneqsxvmhf\",\"value\":\"uzjyihsasbhudypo\"}],\"preBuildSteps\":[{},{}]},\"logStreamEndpoint\":\"ms\"},\"id\":\"nsqyrpfoobrltt\",\"name\":\"msjnygqdnfw\",\"type\":\"zdzgtilaxhnfhqly\"},{\"properties\":{\"provisioningState\":\"Failed\",\"buildStatus\":\"NotStarted\",\"destinationContainerRegistry\":{\"server\":\"vk\",\"image\":\"yzunbixxrtikv\"},\"configuration\":{\"baseOs\":\"pgclrciv\",\"platform\":\"oxfrkenxpmyyefr\",\"platformVersion\":\"pdnqqskawaoqvmmb\",\"environmentVariables\":[{\"name\":\"fr\",\"value\":\"qlkzme\"}],\"preBuildSteps\":[{},{}]},\"logStreamEndpoint\":\"gvkxlzyqdrfe\"},\"id\":\"ealzxwhcansymoyq\",\"name\":\"lwigdivbkbx\",\"type\":\"omfaj\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"buildStatus\":\"Canceled\",\"destinationContainerRegistry\":{\"server\":\"aeyyg\",\"image\":\"akjsqz\"},\"configuration\":{\"baseOs\":\"ezkgi\",\"platform\":\"idxas\",\"platformVersion\":\"ddyvvjskgfmo\",\"environmentVariables\":[{\"name\":\"hpqgatjeaahhvj\",\"value\":\"hnakzyb\"}],\"preBuildSteps\":[{}]},\"logStreamEndpoint\":\"dj\"},\"id\":\"yxkyxvx\",\"name\":\"vblbjednljlageua\",\"type\":\"lxunsmjbnkppxy\"},{\"properties\":{\"provisioningState\":\"Creating\",\"buildStatus\":\"InProgress\",\"destinationContainerRegistry\":{\"server\":\"eizzgwk\",\"image\":\"srmffeycxcktpiym\"},\"configuration\":{\"baseOs\":\"eeammxqie\",\"platform\":\"kzddrtkgdojbmxva\",\"platformVersion\":\"efdeesve\",\"environmentVariables\":[{\"name\":\"jpxtxsuwprtuj\",\"value\":\"sawddjibabxvi\"},{\"name\":\"itvtzeexavo\",\"value\":\"tfgle\"}],\"preBuildSteps\":[{}]},\"logStreamEndpoint\":\"qbw\"},\"id\":\"pqtgsfjac\",\"name\":\"slhhxudbxv\",\"type\":\"d\"}],\"nextLink\":\"nsiru\"}") - .toObject(ContainerAppsBuildCollection.class); - Assertions.assertEquals("nsiru", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppsBuildCollection model - = new ContainerAppsBuildCollection() - .withValue(Arrays.asList(new ContainerAppsBuildResourceInner(), new ContainerAppsBuildResourceInner(), - new ContainerAppsBuildResourceInner(), new ContainerAppsBuildResourceInner())) - .withNextLink("nsiru"); - model = BinaryData.fromObject(model).toObject(ContainerAppsBuildCollection.class); - Assertions.assertEquals("nsiru", model.nextLink()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildConfigurationTests.java deleted file mode 100644 index 54d87f77f9f6..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildConfiguration; - -public final class ContainerAppsBuildConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppsBuildConfiguration model = BinaryData.fromString( - "{\"baseOs\":\"qjctzenkeif\",\"platform\":\"hmkdasvfl\",\"platformVersion\":\"bxcudchx\",\"environmentVariables\":[{\"name\":\"boldforobwj\",\"value\":\"vizbfhfo\"}],\"preBuildSteps\":[{\"description\":\"qpbtuodxes\",\"scripts\":[\"belawumuaslzkwr\",\"woycqucwyha\",\"nomdrkywuhpsv\",\"uurutlwexxwlalni\"],\"httpGet\":{\"url\":\"zsrzpgepq\",\"fileName\":\"bb\",\"headers\":[\"gdakchz\",\"vl\",\"xqnrkcxk\"]}},{\"description\":\"bn\",\"scripts\":[\"suxswqrntvlwijp\"],\"httpGet\":{\"url\":\"texoqqpwc\",\"fileName\":\"ufmhrunc\",\"headers\":[\"qspkcdqzhlctd\",\"unqndyfpchrqb\",\"jjrcgegydc\",\"boxjumvq\"]}},{\"description\":\"lihrraiouaubr\",\"scripts\":[\"oq\",\"fuojrngif\",\"rzpasccbiuimzdly\",\"dfqwmkyoq\"],\"httpGet\":{\"url\":\"dvruzslzojhpctf\",\"fileName\":\"dxotng\",\"headers\":[\"ugeyzihgrkyuiza\",\"snmfpphojeevy\"]}},{\"description\":\"hsgz\",\"scripts\":[\"bgomfgbegl\",\"gleohi\",\"etnluankrrfx\"],\"httpGet\":{\"url\":\"ebtijvacvbmqzbqq\",\"fileName\":\"aj\",\"headers\":[\"xaceve\",\"jkuyxoafgaoq\",\"tfaeyl\"]}}]}") - .toObject(ContainerAppsBuildConfiguration.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppsBuildConfiguration model = new ContainerAppsBuildConfiguration(); - model = BinaryData.fromObject(model).toObject(ContainerAppsBuildConfiguration.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildPropertiesTests.java deleted file mode 100644 index 894d2a2d298a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildPropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildProperties; - -public final class ContainerAppsBuildPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppsBuildProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Failed\",\"buildStatus\":\"Canceled\",\"destinationContainerRegistry\":{\"server\":\"yjathwtzo\",\"image\":\"a\"},\"configuration\":{\"baseOs\":\"m\",\"platform\":\"mebwjscjpah\",\"platformVersion\":\"veabfqxnmwmqtib\",\"environmentVariables\":[{\"name\":\"jddtvqct\",\"value\":\"adijaeukmrsie\"},{\"name\":\"kpn\",\"value\":\"zaapmudqmeqwi\"}],\"preBuildSteps\":[{\"description\":\"udqwyxebeybpmzz\",\"scripts\":[\"ff\",\"aqi\"],\"httpGet\":{\"url\":\"hheioqaqhvseuf\",\"fileName\":\"yrxpdlcgqls\",\"headers\":[\"jqfrddgamquh\",\"os\",\"sjuivfcdisyir\",\"xzhczexrxz\"]}},{\"description\":\"jrtrhqvwrevk\",\"scripts\":[\"lnzonzlrpiqywn\",\"vjtszcofize\",\"tdhgbjkvrelj\"],\"httpGet\":{\"url\":\"murvzm\",\"fileName\":\"vuanashcxlp\",\"headers\":[\"rbdkelvidiz\",\"zsdbccxjmon\"]}}]},\"logStreamEndpoint\":\"gnwncypuuwwlt\"}") - .toObject(ContainerAppsBuildProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppsBuildProperties model = new ContainerAppsBuildProperties(); - model = BinaryData.fromObject(model).toObject(ContainerAppsBuildProperties.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildResourceInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildResourceInnerTests.java deleted file mode 100644 index e8df64160f02..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildResourceInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsBuildResourceInner; - -public final class ContainerAppsBuildResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppsBuildResourceInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"buildStatus\":\"Canceled\",\"destinationContainerRegistry\":{\"server\":\"ckdlpag\",\"image\":\"cxfailcfxwmdboxd\"},\"configuration\":{\"baseOs\":\"ft\",\"platform\":\"qobr\",\"platformVersion\":\"nac\",\"environmentVariables\":[{\"name\":\"kknhxkizvytnrzv\",\"value\":\"lj\"},{\"name\":\"aaeranokqgukk\",\"value\":\"qnvb\"},{\"name\":\"oylaxxul\",\"value\":\"disdosfjbjsvgj\"}],\"preBuildSteps\":[{\"description\":\"yvycytdclxgcckn\",\"scripts\":[\"mbtmvpdvjdhttzae\",\"edxihchrphkmcrj\",\"qnsdfzpbgtgky\",\"kdghrjeuutlwx\"],\"httpGet\":{\"url\":\"w\",\"fileName\":\"okvbwnhhtqlgehg\",\"headers\":[\"pifhpfeoajvgcxtx\",\"csheafidltugsr\",\"smkss\",\"h\"]}},{\"description\":\"ftxfkf\",\"scripts\":[\"prhptillu\"],\"httpGet\":{\"url\":\"iqtgdqoh\",\"fileName\":\"wsldrizetpwbr\",\"headers\":[\"libph\",\"qzmiza\",\"a\",\"ankjpdnjzh\"]}}]},\"logStreamEndpoint\":\"oylhjlmuoyxprimr\"},\"id\":\"pteecjme\",\"name\":\"slstvasy\",\"type\":\"wxdzaumweoohgu\"}") - .toObject(ContainerAppsBuildResourceInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppsBuildResourceInner model = new ContainerAppsBuildResourceInner(); - model = BinaryData.fromObject(model).toObject(ContainerAppsBuildResourceInner.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsByContainerAppsListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsByContainerAppsListMockTests.java deleted file mode 100644 index 396a6f99cf72..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsByContainerAppsListMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsBuildsByContainerAppsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"buildStatus\":\"InProgress\",\"destinationContainerRegistry\":{\"server\":\"yzkxitds\",\"image\":\"zsvko\"},\"configuration\":{\"baseOs\":\"pjovmozsayebraz\",\"platform\":\"lpzbtzuykykipf\",\"platformVersion\":\"yepfn\",\"environmentVariables\":[{\"name\":\"bezacfpztga\",\"value\":\"wyqejgaao\"},{\"name\":\"ctgkppgkqzkcyzmf\",\"value\":\"ngdyfcixrhlcq\"},{\"name\":\"hoe\",\"value\":\"goiutgw\"}],\"preBuildSteps\":[{\"description\":\"hpqhazyntacihn\",\"scripts\":[\"mip\",\"mliqmvlb\",\"i\",\"eaqgrvgpomxpupd\"],\"httpGet\":{\"url\":\"dfj\"}},{\"description\":\"esocwiqbuou\",\"scripts\":[\"yzgleofjs\"],\"httpGet\":{\"url\":\"bwwzvdajf\"}},{\"description\":\"n\",\"scripts\":[\"aciq\",\"jjrlhiqlwix\",\"tbouguxtnd\"],\"httpGet\":{\"url\":\"gjttbasualapdlnd\"}}]},\"logStreamEndpoint\":\"aqbkixvvlwynpbbf\"},\"id\":\"zfjmsp\",\"name\":\"gzfeuzj\",\"type\":\"jmphfkyezolgj\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.containerAppsBuildsByContainerApps() - .list("etjsczivfqbqna", "dsyenzsieuscpl", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsGetWithResponseMockTests.java deleted file mode 100644 index 91bf59dd666d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsBuildsGetWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.ContainerAppsBuildResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsBuildsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"buildStatus\":\"NotStarted\",\"destinationContainerRegistry\":{\"server\":\"atsdohzniucbdaom\",\"image\":\"iinj\"},\"configuration\":{\"baseOs\":\"wktlepowa\",\"platform\":\"qxua\",\"platformVersion\":\"cqwulynkgfcfd\",\"environmentVariables\":[{\"name\":\"si\",\"value\":\"xxtclhuulri\"},{\"name\":\"byokvjgbzsxe\",\"value\":\"rsltt\"},{\"name\":\"yhcdjwsuoardnag\",\"value\":\"tpufpbpgnrholhu\"},{\"name\":\"bfwxiplkys\",\"value\":\"l\"}],\"preBuildSteps\":[{\"description\":\"rxslwhdmcv\",\"scripts\":[\"bzjhfvhuwzb\"],\"httpGet\":{\"url\":\"cqzgihotjecohmx\"}}]},\"logStreamEndpoint\":\"lrrskap\"},\"id\":\"wie\",\"name\":\"xuy\",\"type\":\"derltfokyksyim\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ContainerAppsBuildResource response = manager.containerAppsBuilds() - .getWithResponse("mi", "uydoccnx", "hanzbuiad", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteMockTests.java deleted file mode 100644 index 2fab38d1d27e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDeleteMockTests.java +++ /dev/null @@ -1,33 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.containerApps().delete("u", "qrgxf", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorWithResponseMockTests.java deleted file mode 100644 index 41c8aa4fe76c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsGetDetectorWithResponseMockTests.java +++ /dev/null @@ -1,51 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.Diagnostics; -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 ContainerAppsDiagnosticsGetDetectorWithResponseMockTests { - @Test - public void testGetDetectorWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"metadata\":{\"id\":\"jgwecywnfyszzacz\",\"name\":\"nqbdnddbboz\",\"description\":\"vrmkjmyitrchwu\",\"author\":\"xeeihtpmno\",\"category\":\"hqlfmsib\",\"supportTopicList\":[{\"id\":\"fgxkydpmypgf\",\"pesId\":\"mtywhla\"},{\"id\":\"p\",\"pesId\":\"pewpyj\"}],\"analysisTypes\":[\"ampqcrzgeuq\",\"b\"],\"type\":\"atwfauj\",\"score\":63.017303},\"dataset\":[{\"table\":{\"tableName\":\"r\",\"columns\":[{},{},{},{}],\"rows\":[\"datahjkrukizyhgs\",\"datatnqsktx\",\"datafpjbqggwe\"]},\"renderingProperties\":{\"type\":670221649,\"title\":\"dmncgbf\",\"description\":\"scstunmlhxd\",\"isVisible\":true}},{\"table\":{\"tableName\":\"iichgjsysmvxodgw\",\"columns\":[{},{},{}],\"rows\":[\"dataifc\",\"datavbdujgcwxvecbb\",\"datajtrdxr\"]},\"renderingProperties\":{\"type\":975430900,\"title\":\"bgiark\",\"description\":\"kpgdqxwabzrwiq\",\"isVisible\":false}},{\"table\":{\"tableName\":\"lcdosqkpt\",\"columns\":[{},{},{}],\"rows\":[\"datafmmainwhedxkpbq\",\"dataunt\",\"databuizazzelwg\"]},\"renderingProperties\":{\"type\":1673275402,\"title\":\"f\",\"description\":\"klblaxp\",\"isVisible\":true}}],\"status\":{\"message\":\"abalfdxaglz\",\"statusId\":1995991969},\"dataProviderMetadata\":{\"providerName\":\"tlqh\",\"propertyBag\":[{\"name\":\"uvmrsiflikyyp\",\"value\":\"gxfx\"},{\"name\":\"yrqsdbpokszanm\",\"value\":\"gpterdiu\"}]}},\"id\":\"i\",\"name\":\"kskw\",\"type\":\"tsdetjygowifcq\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Diagnostics response = manager.containerAppsDiagnostics() - .getDetectorWithResponse("qwm", "q", "moxsa", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ampqcrzgeuq", response.properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("r", response.properties().dataset().get(0).table().tableName()); - Assertions.assertEquals(670221649, response.properties().dataset().get(0).renderingProperties().type()); - Assertions.assertEquals("dmncgbf", response.properties().dataset().get(0).renderingProperties().title()); - Assertions.assertEquals("scstunmlhxd", - response.properties().dataset().get(0).renderingProperties().description()); - Assertions.assertEquals(true, response.properties().dataset().get(0).renderingProperties().isVisible()); - Assertions.assertEquals("abalfdxaglz", response.properties().status().message()); - Assertions.assertEquals(1995991969, response.properties().status().statusId()); - Assertions.assertEquals("tlqh", response.properties().dataProviderMetadata().providerName()); - Assertions.assertEquals("uvmrsiflikyyp", - response.properties().dataProviderMetadata().propertyBag().get(0).name()); - Assertions.assertEquals("gxfx", response.properties().dataProviderMetadata().propertyBag().get(0).value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsMockTests.java deleted file mode 100644 index 902170f23fe4..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsDiagnosticsListDetectorsMockTests.java +++ /dev/null @@ -1,56 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.Diagnostics; -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 ContainerAppsDiagnosticsListDetectorsMockTests { - @Test - public void testListDetectors() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"metadata\":{\"id\":\"naoaqymhccto\",\"name\":\"o\",\"description\":\"rnskby\",\"author\":\"uhczy\",\"category\":\"vhajpxec\",\"supportTopicList\":[{\"id\":\"hscozawmvgxsmpk\",\"pesId\":\"wirfljf\"}],\"analysisTypes\":[\"qouoxu\"],\"type\":\"mckaprh\",\"score\":48.225636},\"dataset\":[{\"table\":{\"tableName\":\"encdgmoqueqihkky\",\"columns\":[{},{},{}],\"rows\":[\"dataouwhldxwhie\"]},\"renderingProperties\":{\"type\":194546120,\"title\":\"smfx\",\"description\":\"vprstv\",\"isVisible\":true}},{\"table\":{\"tableName\":\"jtdyotnplfa\",\"columns\":[{},{}],\"rows\":[\"dataqrqxwetjt\"]},\"renderingProperties\":{\"type\":41412087,\"title\":\"fdoadtxopgeh\",\"description\":\"dkmdzgsszx\",\"isVisible\":true}},{\"table\":{\"tableName\":\"bxuharl\",\"columns\":[{},{}],\"rows\":[\"dataclabv\"]},\"renderingProperties\":{\"type\":946198346,\"title\":\"uxx\",\"description\":\"bmyqjog\",\"isVisible\":false}}],\"status\":{\"message\":\"djanormo\",\"statusId\":2062816270},\"dataProviderMetadata\":{\"providerName\":\"rntu\",\"propertyBag\":[{\"name\":\"lu\",\"value\":\"emhdeeljslky\"},{\"name\":\"d\",\"value\":\"zjuegrh\"},{\"name\":\"tsl\",\"value\":\"tv\"}]}},\"id\":\"nxvgjb\",\"name\":\"iobpnjodf\",\"type\":\"bj\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.containerAppsDiagnostics() - .listDetectors("mhobcyan", "fvqtvkhgvoo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qouoxu", response.iterator().next().properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("encdgmoqueqihkky", - response.iterator().next().properties().dataset().get(0).table().tableName()); - Assertions.assertEquals(194546120, - response.iterator().next().properties().dataset().get(0).renderingProperties().type()); - Assertions.assertEquals("smfx", - response.iterator().next().properties().dataset().get(0).renderingProperties().title()); - Assertions.assertEquals("vprstv", - response.iterator().next().properties().dataset().get(0).renderingProperties().description()); - Assertions.assertEquals(true, - response.iterator().next().properties().dataset().get(0).renderingProperties().isVisible()); - Assertions.assertEquals("djanormo", response.iterator().next().properties().status().message()); - Assertions.assertEquals(2062816270, response.iterator().next().properties().status().statusId()); - Assertions.assertEquals("rntu", response.iterator().next().properties().dataProviderMetadata().providerName()); - Assertions.assertEquals("lu", - response.iterator().next().properties().dataProviderMetadata().propertyBag().get(0).name()); - Assertions.assertEquals("emhdeeljslky", - response.iterator().next().properties().dataProviderMetadata().propertyBag().get(0).value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchResourceInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchResourceInnerTests.java deleted file mode 100644 index 4f69c6ae72a9..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchResourceInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsPatchResourceInner; - -public final class ContainerAppsPatchResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerAppsPatchResourceInner model = BinaryData.fromString( - "{\"properties\":{\"targetEnvironmentId\":\"yj\",\"targetContainerAppId\":\"tpvopvpbdb\",\"targetRevisionId\":\"gqqihedsvqwt\",\"patchApplyStatus\":\"Canceled\",\"createdAt\":\"2021-06-02T15:24:18Z\",\"lastModifiedAt\":\"2021-08-17T17:54:59Z\",\"patchDetails\":[{\"targetContainerName\":\"ihsgq\",\"targetImage\":\"wdhohsdtmcdzsu\",\"lastDetectionTime\":\"2021-08-03T04:05:49Z\",\"detectionStatus\":\"Succeeded\",\"newImageName\":\"dxbzlmcmuap\",\"newLayer\":{\"name\":\"dbevwqqxeysko\",\"frameworkAndVersion\":\"zinkfkbgbzbowxeq\",\"osAndVersion\":\"ljmygvkzqkjjeokb\"},\"oldLayer\":{\"name\":\"ezrxcczurtleipqx\",\"frameworkAndVersion\":\"wvz\",\"osAndVersion\":\"zvd\"},\"patchType\":\"FrameworkSecurity\"},{\"targetContainerName\":\"d\",\"targetImage\":\"xzmqpnodawop\",\"lastDetectionTime\":\"2021-04-29T16:57Z\",\"detectionStatus\":\"Failed\",\"newImageName\":\"jptmcgsbost\",\"newLayer\":{\"name\":\"ndlatutmzlbi\",\"frameworkAndVersion\":\"lvfhrbbp\",\"osAndVersion\":\"qvcww\"},\"oldLayer\":{\"name\":\"r\",\"frameworkAndVersion\":\"chpp\",\"osAndVersion\":\"rsnm\"},\"patchType\":\"Other\"},{\"targetContainerName\":\"yzejnhlbk\",\"targetImage\":\"bzpcpiljhahzvec\",\"lastDetectionTime\":\"2021-11-30T16:41:47Z\",\"detectionStatus\":\"Succeeded\",\"newImageName\":\"nwieholewjw\",\"newLayer\":{\"name\":\"bwefqsfapaqtfer\",\"frameworkAndVersion\":\"wexjkmfxapjwogq\",\"osAndVersion\":\"o\"},\"oldLayer\":{\"name\":\"dcdab\",\"frameworkAndVersion\":\"wpwyawbz\",\"osAndVersion\":\"qbucljgkyexaoguy\"},\"patchType\":\"FrameworkSecurity\"},{\"targetContainerName\":\"ids\",\"targetImage\":\"ault\",\"lastDetectionTime\":\"2021-10-28T20:41:59Z\",\"detectionStatus\":\"RegistryLoginFailed\",\"newImageName\":\"um\",\"newLayer\":{\"name\":\"azlnqnmcjngzqdqx\",\"frameworkAndVersion\":\"jw\",\"osAndVersion\":\"yfu\"},\"oldLayer\":{\"name\":\"svtui\",\"frameworkAndVersion\":\"hajqglcfh\",\"osAndVersion\":\"rqryxynqn\"},\"patchType\":\"Other\"}]},\"id\":\"sovwxznptgoeiyb\",\"name\":\"abpfhvfs\",\"type\":\"kvntjlrigjkskyri\"}") - .toObject(ContainerAppsPatchResourceInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerAppsPatchResourceInner model = new ContainerAppsPatchResourceInner(); - model = BinaryData.fromObject(model).toObject(ContainerAppsPatchResourceInner.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesApplyMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesApplyMockTests.java deleted file mode 100644 index 83d2f85e7293..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesApplyMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatchResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsPatchesApplyMockTests { - @Test - public void testApply() throws Exception { - String responseStr - = "{\"properties\":{\"targetEnvironmentId\":\"yfj\",\"targetContainerAppId\":\"fiddhlrufzcq\",\"targetRevisionId\":\"mq\",\"patchApplyStatus\":\"Canceled\",\"createdAt\":\"2021-07-31T07:30:36Z\",\"lastModifiedAt\":\"2021-05-02T11:00:18Z\",\"patchDetails\":[{\"targetContainerName\":\"lqkrs\",\"targetImage\":\"zrhxuddqmdtf\",\"lastDetectionTime\":\"2021-06-22T21:43:03Z\",\"detectionStatus\":\"RegistryLoginFailed\",\"newImageName\":\"mrkkhmwd\",\"newLayer\":{\"name\":\"gyqi\",\"frameworkAndVersion\":\"kwtjawhva\",\"osAndVersion\":\"qfqqdlcvmyolc\"},\"oldLayer\":{\"name\":\"jchtvsnvlaqd\",\"frameworkAndVersion\":\"yzawatu\",\"osAndVersion\":\"kokb\"},\"patchType\":\"FrameworkAndOSSecurity\"}]},\"id\":\"hymgobllms\",\"name\":\"wgwima\",\"type\":\"neakh\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ContainerAppsPatchResource response = manager.containerAppsPatches() - .apply("yrqolnthbbnkgz", "kwdrnzkjthfc", "yjncjm", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesGetWithResponseMockTests.java deleted file mode 100644 index c96494ff4c1d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesGetWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatchResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsPatchesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"targetEnvironmentId\":\"ajcywhjqw\",\"targetContainerAppId\":\"hqohtfxcpup\",\"targetRevisionId\":\"i\",\"patchApplyStatus\":\"Canceled\",\"createdAt\":\"2021-08-04T14:41:29Z\",\"lastModifiedAt\":\"2021-05-28T10:14:46Z\",\"patchDetails\":[{\"targetContainerName\":\"wtiw\",\"targetImage\":\"mosaonh\",\"lastDetectionTime\":\"2021-06-09T19:40:12Z\",\"detectionStatus\":\"RegistryLoginFailed\",\"newImageName\":\"p\",\"newLayer\":{\"name\":\"tassaekewna\",\"frameworkAndVersion\":\"ajbk\",\"osAndVersion\":\"lcyizyddcvxo\"},\"oldLayer\":{\"name\":\"vfsxx\",\"frameworkAndVersion\":\"desqlvg\",\"osAndVersion\":\"pwgoljt\"},\"patchType\":\"FrameworkSecurity\"},{\"targetContainerName\":\"mxsdobygoog\",\"targetImage\":\"qa\",\"lastDetectionTime\":\"2021-10-30T03:32:01Z\",\"detectionStatus\":\"RegistryLoginFailed\",\"newImageName\":\"azyj\",\"newLayer\":{\"name\":\"saodj\",\"frameworkAndVersion\":\"sdk\",\"osAndVersion\":\"bfas\"},\"oldLayer\":{\"name\":\"trnzpducdaaktu\",\"frameworkAndVersion\":\"tzboim\",\"osAndVersion\":\"pqdowkppnwyy\"},\"patchType\":\"OSSecurity\"},{\"targetContainerName\":\"pctf\",\"targetImage\":\"ikff\",\"lastDetectionTime\":\"2021-07-11T13:37:13Z\",\"detectionStatus\":\"Failed\",\"newImageName\":\"uhznwhvuldbk\",\"newLayer\":{\"name\":\"jkjigawgaz\",\"frameworkAndVersion\":\"jqifhujjsbcml\",\"osAndVersion\":\"ahz\"},\"oldLayer\":{\"name\":\"roolkolir\",\"frameworkAndVersion\":\"mojusuz\",\"osAndVersion\":\"jzc\"},\"patchType\":\"Other\"}]},\"id\":\"oialahfxwccokdx\",\"name\":\"ukmkczynu\",\"type\":\"hoqeqshavljqk\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ContainerAppsPatchResource response = manager.containerAppsPatches() - .getWithResponse("umentqontwhymxym", "lwivqt", "wlhlsycoybajasq", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesListByContainerAppMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesListByContainerAppMockTests.java deleted file mode 100644 index 7ad41cff799d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsPatchesListByContainerAppMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.ContainerAppsPatchResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsPatchesListByContainerAppMockTests { - @Test - public void testListByContainerApp() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"targetEnvironmentId\":\"jguwrjmwvv\",\"targetContainerAppId\":\"uqkxximwgxqld\",\"targetRevisionId\":\"otjgxieqfkyfhi\",\"patchApplyStatus\":\"Canceled\",\"createdAt\":\"2021-06-02T14:31:58Z\",\"lastModifiedAt\":\"2021-01-22T23:04:26Z\",\"patchDetails\":[{\"targetContainerName\":\"ynvskpajbmgeume\",\"targetImage\":\"mj\",\"lastDetectionTime\":\"2021-05-21T03:12:39Z\",\"detectionStatus\":\"Failed\",\"newImageName\":\"ccwkqmtx\",\"newLayer\":{\"name\":\"qis\",\"frameworkAndVersion\":\"p\",\"osAndVersion\":\"gftrqrejdaahuqim\"},\"oldLayer\":{\"name\":\"hlf\",\"frameworkAndVersion\":\"muifmuadjnfsn\",\"osAndVersion\":\"kiioshj\"},\"patchType\":\"OSSecurity\"},{\"targetContainerName\":\"etybnxgzt\",\"targetImage\":\"cg\",\"lastDetectionTime\":\"2020-12-23T19:28:58Z\",\"detectionStatus\":\"Failed\",\"newImageName\":\"hfjv\",\"newLayer\":{\"name\":\"j\",\"frameworkAndVersion\":\"becuvlbefvwcl\",\"osAndVersion\":\"xpyl\"},\"oldLayer\":{\"name\":\"x\",\"frameworkAndVersion\":\"wpsyxjij\",\"osAndVersion\":\"pdvrbkerdkdkga\"},\"patchType\":\"Other\"}]},\"id\":\"xildfkcefey\",\"name\":\"zqp\",\"type\":\"oisfmnaybdjn\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.containerAppsPatches() - .listByContainerApp("ccgrvkcxzznn", "i", "ersejeg", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaWithResponseMockTests.java deleted file mode 100644 index 55bec031ca6f..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasGetReplicaWithResponseMockTests.java +++ /dev/null @@ -1,48 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.Replica; -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 ContainerAppsRevisionReplicasGetReplicaWithResponseMockTests { - @Test - public void testGetReplicaWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"createdTime\":\"2021-01-18T17:27Z\",\"runningState\":\"NotRunning\",\"runningStateDetails\":\"nzjahwriuomzczf\",\"containers\":[{\"name\":\"evsaa\",\"containerId\":\"spcaxi\",\"ready\":true,\"started\":false,\"restartCount\":1754330120,\"runningState\":\"Terminated\",\"runningStateDetails\":\"xkxgzzrom\",\"logStreamEndpoint\":\"g\",\"execEndpoint\":\"emtm\"},{\"name\":\"rf\",\"containerId\":\"pinkzp\",\"ready\":true,\"started\":true,\"restartCount\":1014316985,\"runningState\":\"Waiting\",\"runningStateDetails\":\"pvckojazbbgs\",\"logStreamEndpoint\":\"tesubzpvp\",\"execEndpoint\":\"ylytcovqseusr\"}],\"initContainers\":[{\"name\":\"xzfxn\",\"containerId\":\"lbmuos\",\"ready\":true,\"started\":true,\"restartCount\":1825615369,\"runningState\":\"Waiting\",\"runningStateDetails\":\"yyzlwhbwzjnu\",\"logStreamEndpoint\":\"rfgmdqgnnbzrtfte\",\"execEndpoint\":\"uubjtvgjsxmty\"},{\"name\":\"vavdp\",\"containerId\":\"obt\",\"ready\":true,\"started\":false,\"restartCount\":1581729047,\"runningState\":\"Running\",\"runningStateDetails\":\"fwanm\",\"logStreamEndpoint\":\"scauwazcgwdfr\",\"execEndpoint\":\"gyb\"},{\"name\":\"ozokscvglli\",\"containerId\":\"gbyfgwe\",\"ready\":false,\"started\":true,\"restartCount\":403064814,\"runningState\":\"Waiting\",\"runningStateDetails\":\"xsooh\",\"logStreamEndpoint\":\"xlcskltez\",\"execEndpoint\":\"ggg\"},{\"name\":\"fbgrdcgubsrt\",\"containerId\":\"ylpe\",\"ready\":true,\"started\":false,\"restartCount\":866635783,\"runningState\":\"Running\",\"runningStateDetails\":\"zfc\",\"logStreamEndpoint\":\"pfb\",\"execEndpoint\":\"etre\"}]},\"id\":\"gvtshu\",\"name\":\"ft\",\"type\":\"ai\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Replica response = manager.containerAppsRevisionReplicas() - .getReplicaWithResponse("sjrclrvtzq", "rbctbhpjhxpcvrd", "y", "it", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("evsaa", response.containers().get(0).name()); - Assertions.assertEquals("spcaxi", response.containers().get(0).containerId()); - Assertions.assertEquals(true, response.containers().get(0).ready()); - Assertions.assertEquals(false, response.containers().get(0).started()); - Assertions.assertEquals(1754330120, response.containers().get(0).restartCount()); - Assertions.assertEquals("xzfxn", response.initContainers().get(0).name()); - Assertions.assertEquals("lbmuos", response.initContainers().get(0).containerId()); - Assertions.assertEquals(true, response.initContainers().get(0).ready()); - Assertions.assertEquals(true, response.initContainers().get(0).started()); - Assertions.assertEquals(1825615369, response.initContainers().get(0).restartCount()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasWithResponseMockTests.java deleted file mode 100644 index 96a9d67c7808..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionReplicasListReplicasWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.ReplicaCollection; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsRevisionReplicasListReplicasWithResponseMockTests { - @Test - public void testListReplicasWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"createdTime\":\"2021-06-04T14:20:24Z\",\"runningState\":\"Running\",\"runningStateDetails\":\"h\",\"containers\":[{},{},{},{}],\"initContainers\":[{}]},\"id\":\"ecrsnh\",\"name\":\"cselqxovppqibuk\",\"type\":\"lvzrlrmlcc\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReplicaCollection response = manager.containerAppsRevisionReplicas() - .listReplicasWithResponse("muqkevzgjypanhx", "pdxxzetwwz", "wot", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionWithResponseMockTests.java deleted file mode 100644 index 26a5ce7649d4..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsActivateRevisionWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsRevisionsActivateRevisionWithResponseMockTests { - @Test - public void testActivateRevisionWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.containerAppsRevisions() - .activateRevisionWithResponse("v", "bkut", "umltwjflu", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionWithResponseMockTests.java deleted file mode 100644 index b1978745e106..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsDeactivateRevisionWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsRevisionsDeactivateRevisionWithResponseMockTests { - @Test - public void testDeactivateRevisionWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.containerAppsRevisions() - .deactivateRevisionWithResponse("ynbpvzlqywauy", "njc", "hmocgjshg", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionWithResponseMockTests.java deleted file mode 100644 index 634c86c204f2..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsRevisionsRestartRevisionWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsRevisionsRestartRevisionWithResponseMockTests { - @Test - public void testRestartRevisionWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.containerAppsRevisions() - .restartRevisionWithResponse("u", "rhwv", "xqqggljky", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteMockTests.java deleted file mode 100644 index 990c10efaf22..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerAppsSourceControlsDeleteMockTests.java +++ /dev/null @@ -1,33 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ContainerAppsSourceControlsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.containerAppsSourceControls().delete("ulbl", "rtux", "prhfcaeo", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerRegistryTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerRegistryTests.java deleted file mode 100644 index 04215d89f660..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerRegistryTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ContainerRegistry; -import org.junit.jupiter.api.Assertions; - -public final class ContainerRegistryTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerRegistry model - = BinaryData.fromString("{\"containerRegistryServer\":\"x\",\"identityResourceId\":\"it\"}") - .toObject(ContainerRegistry.class); - Assertions.assertEquals("x", model.containerRegistryServer()); - Assertions.assertEquals("it", model.identityResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerRegistry model = new ContainerRegistry().withContainerRegistryServer("x").withIdentityResourceId("it"); - model = BinaryData.fromObject(model).toObject(ContainerRegistry.class); - Assertions.assertEquals("x", model.containerRegistryServer()); - Assertions.assertEquals("it", model.identityResourceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerRegistryWithCustomImageTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerRegistryWithCustomImageTests.java deleted file mode 100644 index afff40faacf6..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerRegistryWithCustomImageTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ContainerRegistryWithCustomImage; -import org.junit.jupiter.api.Assertions; - -public final class ContainerRegistryWithCustomImageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerRegistryWithCustomImage model - = BinaryData.fromString("{\"server\":\"bpodxunkbebxm\",\"image\":\"yyntwl\"}") - .toObject(ContainerRegistryWithCustomImage.class); - Assertions.assertEquals("bpodxunkbebxm", model.server()); - Assertions.assertEquals("yyntwl", model.image()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerRegistryWithCustomImage model - = new ContainerRegistryWithCustomImage().withServer("bpodxunkbebxm").withImage("yyntwl"); - model = BinaryData.fromObject(model).toObject(ContainerRegistryWithCustomImage.class); - Assertions.assertEquals("bpodxunkbebxm", model.server()); - Assertions.assertEquals("yyntwl", model.image()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerResourcesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerResourcesTests.java deleted file mode 100644 index 5878127230fc..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ContainerResourcesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ContainerResources; -import org.junit.jupiter.api.Assertions; - -public final class ContainerResourcesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ContainerResources model = BinaryData - .fromString("{\"cpu\":49.61430648775224,\"memory\":\"zhfstot\",\"ephemeralStorage\":\"ojujbyp\"}") - .toObject(ContainerResources.class); - Assertions.assertEquals(49.61430648775224D, model.cpu()); - Assertions.assertEquals("zhfstot", model.memory()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ContainerResources model = new ContainerResources().withCpu(49.61430648775224D).withMemory("zhfstot"); - model = BinaryData.fromObject(model).toObject(ContainerResources.class); - Assertions.assertEquals(49.61430648775224D, model.cpu()); - Assertions.assertEquals("zhfstot", model.memory()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CookieExpirationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CookieExpirationTests.java deleted file mode 100644 index 83f5101d2e52..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CookieExpirationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.CookieExpiration; -import com.azure.resourcemanager.appcontainers.models.CookieExpirationConvention; -import org.junit.jupiter.api.Assertions; - -public final class CookieExpirationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CookieExpiration model - = BinaryData.fromString("{\"convention\":\"IdentityProviderDerived\",\"timeToExpiration\":\"dlwtgrhpdj\"}") - .toObject(CookieExpiration.class); - Assertions.assertEquals(CookieExpirationConvention.IDENTITY_PROVIDER_DERIVED, model.convention()); - Assertions.assertEquals("dlwtgrhpdj", model.timeToExpiration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CookieExpiration model - = new CookieExpiration().withConvention(CookieExpirationConvention.IDENTITY_PROVIDER_DERIVED) - .withTimeToExpiration("dlwtgrhpdj"); - model = BinaryData.fromObject(model).toObject(CookieExpiration.class); - Assertions.assertEquals(CookieExpirationConvention.IDENTITY_PROVIDER_DERIVED, model.convention()); - Assertions.assertEquals("dlwtgrhpdj", model.timeToExpiration()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CustomDomainTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CustomDomainTests.java deleted file mode 100644 index b42df48feecb..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/CustomDomainTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.BindingType; -import com.azure.resourcemanager.appcontainers.models.CustomDomain; -import org.junit.jupiter.api.Assertions; - -public final class CustomDomainTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomDomain model - = BinaryData.fromString("{\"name\":\"guufzd\",\"bindingType\":\"Disabled\",\"certificateId\":\"tfih\"}") - .toObject(CustomDomain.class); - Assertions.assertEquals("guufzd", model.name()); - Assertions.assertEquals(BindingType.DISABLED, model.bindingType()); - Assertions.assertEquals("tfih", model.certificateId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomDomain model - = new CustomDomain().withName("guufzd").withBindingType(BindingType.DISABLED).withCertificateId("tfih"); - model = BinaryData.fromObject(model).toObject(CustomDomain.class); - Assertions.assertEquals("guufzd", model.name()); - Assertions.assertEquals(BindingType.DISABLED, model.bindingType()); - Assertions.assertEquals("tfih", model.certificateId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCollectionTests.java deleted file mode 100644 index d07c15ccbb41..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCollectionTests.java +++ /dev/null @@ -1,152 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentResiliencyPolicyInner; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPoliciesCollection; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DaprComponentResiliencyPoliciesCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprComponentResiliencyPoliciesCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"inboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1475377134,\"retryBackOff\":{}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":415972757},\"circuitBreakerPolicy\":{\"consecutiveErrors\":891937563,\"timeoutInSeconds\":1308734164,\"intervalInSeconds\":1297412957}},\"outboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":724293766,\"retryBackOff\":{}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":1230766667},\"circuitBreakerPolicy\":{\"consecutiveErrors\":949120362,\"timeoutInSeconds\":1827983536,\"intervalInSeconds\":1687085732}}},\"id\":\"xv\",\"name\":\"qtvbczsu\",\"type\":\"mdgglmepjpfs\"},{\"properties\":{\"inboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1561379000,\"retryBackOff\":{}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":331977522},\"circuitBreakerPolicy\":{\"consecutiveErrors\":2078567583,\"timeoutInSeconds\":2008199597,\"intervalInSeconds\":26308391}},\"outboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1886264089,\"retryBackOff\":{}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":1515687542},\"circuitBreakerPolicy\":{\"consecutiveErrors\":608285321,\"timeoutInSeconds\":857862524,\"intervalInSeconds\":767274069}}},\"id\":\"edmzrgjfoknub\",\"name\":\"oitpkpztrgdgx\",\"type\":\"coqra\"},{\"properties\":{\"inboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1145778113,\"retryBackOff\":{}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":2036171481},\"circuitBreakerPolicy\":{\"consecutiveErrors\":1168808481,\"timeoutInSeconds\":248802373,\"intervalInSeconds\":564672857}},\"outboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":588976702,\"retryBackOff\":{}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":977678729},\"circuitBreakerPolicy\":{\"consecutiveErrors\":386534389,\"timeoutInSeconds\":1536605508,\"intervalInSeconds\":324493870}}},\"id\":\"qcujpd\",\"name\":\"xzak\",\"type\":\"ejkm\"},{\"properties\":{\"inboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1361735298,\"retryBackOff\":{}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":25286412},\"circuitBreakerPolicy\":{\"consecutiveErrors\":826509845,\"timeoutInSeconds\":308325855,\"intervalInSeconds\":179886290}},\"outboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1430457566,\"retryBackOff\":{}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":1706442332},\"circuitBreakerPolicy\":{\"consecutiveErrors\":1935171064,\"timeoutInSeconds\":1377319728,\"intervalInSeconds\":2023692780}}},\"id\":\"egthortudawl\",\"name\":\"jfel\",\"type\":\"erppt\"}],\"nextLink\":\"gqnzm\"}") - .toObject(DaprComponentResiliencyPoliciesCollection.class); - Assertions.assertEquals(1475377134, model.value().get(0).inboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(415972757, - model.value().get(0).inboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(891937563, - model.value().get(0).inboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1308734164, - model.value().get(0).inboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1297412957, - model.value().get(0).inboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - Assertions.assertEquals(724293766, model.value().get(0).outboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(1230766667, - model.value().get(0).outboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(949120362, - model.value().get(0).outboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1827983536, - model.value().get(0).outboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1687085732, - model.value().get(0).outboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprComponentResiliencyPoliciesCollection model - = new DaprComponentResiliencyPoliciesCollection().withValue(Arrays.asList( - new DaprComponentResiliencyPolicyInner() - .withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1475377134) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration())) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(415972757)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(891937563) - .withTimeoutInSeconds(1308734164) - .withIntervalInSeconds(1297412957))) - .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(724293766) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration())) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(1230766667)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(949120362) - .withTimeoutInSeconds(1827983536) - .withIntervalInSeconds(1687085732))), - new DaprComponentResiliencyPolicyInner() - .withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1561379000) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration())) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(331977522)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(2078567583) - .withTimeoutInSeconds(2008199597) - .withIntervalInSeconds(26308391))) - .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1886264089) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration())) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(1515687542)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(608285321) - .withTimeoutInSeconds(857862524) - .withIntervalInSeconds(767274069))), - new DaprComponentResiliencyPolicyInner() - .withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1145778113) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration())) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(2036171481)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(1168808481) - .withTimeoutInSeconds(248802373) - .withIntervalInSeconds(564672857))) - .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(588976702) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration())) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(977678729)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(386534389) - .withTimeoutInSeconds(1536605508) - .withIntervalInSeconds(324493870))), - new DaprComponentResiliencyPolicyInner() - .withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1361735298) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration())) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(25286412)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(826509845) - .withTimeoutInSeconds(308325855) - .withIntervalInSeconds(179886290))) - .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1430457566) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration())) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(1706442332)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(1935171064) - .withTimeoutInSeconds(1377319728) - .withIntervalInSeconds(2023692780))))); - model = BinaryData.fromObject(model).toObject(DaprComponentResiliencyPoliciesCollection.class); - Assertions.assertEquals(1475377134, model.value().get(0).inboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(415972757, - model.value().get(0).inboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(891937563, - model.value().get(0).inboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1308734164, - model.value().get(0).inboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1297412957, - model.value().get(0).inboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - Assertions.assertEquals(724293766, model.value().get(0).outboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(1230766667, - model.value().get(0).outboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(949120362, - model.value().get(0).outboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1827983536, - model.value().get(0).outboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1687085732, - model.value().get(0).outboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index e1142f4eec6a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,86 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicy; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration; -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 DaprComponentResiliencyPoliciesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"inboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1426535622,\"retryBackOff\":{\"initialDelayInMilliseconds\":947299987,\"maxIntervalInMilliseconds\":2062044889}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":2042955583},\"circuitBreakerPolicy\":{\"consecutiveErrors\":47618011,\"timeoutInSeconds\":738684479,\"intervalInSeconds\":273265714}},\"outboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1430405428,\"retryBackOff\":{\"initialDelayInMilliseconds\":1696526892,\"maxIntervalInMilliseconds\":2098658964}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":1866260995},\"circuitBreakerPolicy\":{\"consecutiveErrors\":1808954297,\"timeoutInSeconds\":2050943641,\"intervalInSeconds\":1113779756}}},\"id\":\"ymcqidkltvdhq\",\"name\":\"ufbxweiibnto\",\"type\":\"ovfnybydhuihao\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DaprComponentResiliencyPolicy response = manager.daprComponentResiliencyPolicies() - .define("tpmglxkoikmtr") - .withExistingDaprComponent("lna", "h", "gsiqikvllr") - .withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(32214385) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration() - .withInitialDelayInMilliseconds(633721496) - .withMaxIntervalInMilliseconds(1594299321))) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(86574286)) - .withCircuitBreakerPolicy( - new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(94649618) - .withTimeoutInSeconds(2038638314) - .withIntervalInSeconds(117625529))) - .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1636134407) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration() - .withInitialDelayInMilliseconds(72846379) - .withMaxIntervalInMilliseconds(1360244079))) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(1783074124)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(1042550170) - .withTimeoutInSeconds(1357705609) - .withIntervalInSeconds(2068217073))) - .create(); - - Assertions.assertEquals(1426535622, response.inboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(947299987, - response.inboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(2062044889, - response.inboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(2042955583, response.inboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(47618011, response.inboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(738684479, response.inboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(273265714, response.inboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - Assertions.assertEquals(1430405428, response.outboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(1696526892, - response.outboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(2098658964, - response.outboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(1866260995, response.outboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(1808954297, response.outboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(2050943641, response.outboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1113779756, response.outboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesDeleteWithResponseMockTests.java deleted file mode 100644 index 4d1fed40b2a8..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,35 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DaprComponentResiliencyPoliciesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.daprComponentResiliencyPolicies() - .deleteWithResponse("nazgbjbhrpgiq", "ttcucrcm", "aixpqj", "wifhbksldttohq", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesGetWithResponseMockTests.java deleted file mode 100644 index 92b26ec2759b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,56 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicy; -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 DaprComponentResiliencyPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"inboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":278888971,\"retryBackOff\":{\"initialDelayInMilliseconds\":863933371,\"maxIntervalInMilliseconds\":1250001831}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":2107938838},\"circuitBreakerPolicy\":{\"consecutiveErrors\":1871826900,\"timeoutInSeconds\":1564471865,\"intervalInSeconds\":865409397}},\"outboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1472492637,\"retryBackOff\":{\"initialDelayInMilliseconds\":1283817854,\"maxIntervalInMilliseconds\":2094474212}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":409618096},\"circuitBreakerPolicy\":{\"consecutiveErrors\":193703110,\"timeoutInSeconds\":1105186931,\"intervalInSeconds\":1968692964}}},\"id\":\"nqhlbs\",\"name\":\"osnqliwkmzojfe\",\"type\":\"yalhtgm\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DaprComponentResiliencyPolicy response = manager.daprComponentResiliencyPolicies() - .getWithResponse("d", "gxwjwil", "qrslaate", "twujjzgx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(278888971, response.inboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(863933371, - response.inboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(1250001831, - response.inboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(2107938838, response.inboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(1871826900, response.inboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1564471865, response.inboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(865409397, response.inboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - Assertions.assertEquals(1472492637, response.outboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(1283817854, - response.outboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(2094474212, - response.outboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(409618096, response.outboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(193703110, response.outboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1105186931, response.outboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1968692964, response.outboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesListMockTests.java deleted file mode 100644 index 5022bcab147f..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPoliciesListMockTests.java +++ /dev/null @@ -1,64 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicy; -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 DaprComponentResiliencyPoliciesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"inboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":819002494,\"retryBackOff\":{\"initialDelayInMilliseconds\":1597472821,\"maxIntervalInMilliseconds\":827089869}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":367407489},\"circuitBreakerPolicy\":{\"consecutiveErrors\":109368134,\"timeoutInSeconds\":741553028,\"intervalInSeconds\":1740599756}},\"outboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":2113825334,\"retryBackOff\":{\"initialDelayInMilliseconds\":144155538,\"maxIntervalInMilliseconds\":138062217}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":245192690},\"circuitBreakerPolicy\":{\"consecutiveErrors\":1746342457,\"timeoutInSeconds\":616144264,\"intervalInSeconds\":1535836834}}},\"id\":\"dxposcsl\",\"name\":\"wuusiecktybh\",\"type\":\"uxidhhxomilddxj\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.daprComponentResiliencyPolicies() - .list("ohcwhpyv", "kgdet", "z", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(819002494, response.iterator().next().inboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(1597472821, - response.iterator().next().inboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(827089869, - response.iterator().next().inboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(367407489, - response.iterator().next().inboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(109368134, - response.iterator().next().inboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(741553028, - response.iterator().next().inboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1740599756, - response.iterator().next().inboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - Assertions.assertEquals(2113825334, response.iterator().next().outboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(144155538, - response.iterator().next().outboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(138062217, - response.iterator().next().outboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(245192690, - response.iterator().next().outboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(1746342457, - response.iterator().next().outboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(616144264, - response.iterator().next().outboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1535836834, - response.iterator().next().outboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyCircuitBreakerPolicyConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyCircuitBreakerPolicyConfigurationTests.java deleted file mode 100644 index 4afbe2a12d45..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyCircuitBreakerPolicyConfigurationTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class DaprComponentResiliencyPolicyCircuitBreakerPolicyConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration model = BinaryData - .fromString( - "{\"consecutiveErrors\":575667352,\"timeoutInSeconds\":540074004,\"intervalInSeconds\":534687769}") - .toObject(DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration.class); - Assertions.assertEquals(575667352, model.consecutiveErrors()); - Assertions.assertEquals(540074004, model.timeoutInSeconds()); - Assertions.assertEquals(534687769, model.intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration model - = new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(575667352) - .withTimeoutInSeconds(540074004) - .withIntervalInSeconds(534687769); - model = BinaryData.fromObject(model) - .toObject(DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration.class); - Assertions.assertEquals(575667352, model.consecutiveErrors()); - Assertions.assertEquals(540074004, model.timeoutInSeconds()); - Assertions.assertEquals(534687769, model.intervalInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyConfigurationTests.java deleted file mode 100644 index f7792177ab8d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyConfigurationTests.java +++ /dev/null @@ -1,53 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class DaprComponentResiliencyPolicyConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprComponentResiliencyPolicyConfiguration model = BinaryData.fromString( - "{\"httpRetryPolicy\":{\"maxRetries\":531683974,\"retryBackOff\":{\"initialDelayInMilliseconds\":1805175929,\"maxIntervalInMilliseconds\":1504170570}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":1865783176},\"circuitBreakerPolicy\":{\"consecutiveErrors\":793524985,\"timeoutInSeconds\":187101645,\"intervalInSeconds\":1249532916}}") - .toObject(DaprComponentResiliencyPolicyConfiguration.class); - Assertions.assertEquals(531683974, model.httpRetryPolicy().maxRetries()); - Assertions.assertEquals(1805175929, model.httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(1504170570, model.httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(1865783176, model.timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(793524985, model.circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(187101645, model.circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1249532916, model.circuitBreakerPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprComponentResiliencyPolicyConfiguration model = new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(531683974) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration() - .withInitialDelayInMilliseconds(1805175929) - .withMaxIntervalInMilliseconds(1504170570))) - .withTimeoutPolicy( - new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(1865783176)) - .withCircuitBreakerPolicy( - new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration().withConsecutiveErrors(793524985) - .withTimeoutInSeconds(187101645) - .withIntervalInSeconds(1249532916)); - model = BinaryData.fromObject(model).toObject(DaprComponentResiliencyPolicyConfiguration.class); - Assertions.assertEquals(531683974, model.httpRetryPolicy().maxRetries()); - Assertions.assertEquals(1805175929, model.httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(1504170570, model.httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(1865783176, model.timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(793524985, model.circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(187101645, model.circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1249532916, model.circuitBreakerPolicy().intervalInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationTests.java deleted file mode 100644 index 00b9ffa497c5..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration model = BinaryData - .fromString("{\"initialDelayInMilliseconds\":1572864361,\"maxIntervalInMilliseconds\":1639161747}") - .toObject(DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration.class); - Assertions.assertEquals(1572864361, model.initialDelayInMilliseconds()); - Assertions.assertEquals(1639161747, model.maxIntervalInMilliseconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration model - = new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration() - .withInitialDelayInMilliseconds(1572864361) - .withMaxIntervalInMilliseconds(1639161747); - model = BinaryData.fromObject(model).toObject(DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration.class); - Assertions.assertEquals(1572864361, model.initialDelayInMilliseconds()); - Assertions.assertEquals(1639161747, model.maxIntervalInMilliseconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationTests.java deleted file mode 100644 index 891f18efab27..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration model = BinaryData.fromString( - "{\"maxRetries\":1679853059,\"retryBackOff\":{\"initialDelayInMilliseconds\":206316371,\"maxIntervalInMilliseconds\":664347452}}") - .toObject(DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration.class); - Assertions.assertEquals(1679853059, model.maxRetries()); - Assertions.assertEquals(206316371, model.retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(664347452, model.retryBackOff().maxIntervalInMilliseconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration model - = new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1679853059) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration() - .withInitialDelayInMilliseconds(206316371) - .withMaxIntervalInMilliseconds(664347452)); - model = BinaryData.fromObject(model).toObject(DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration.class); - Assertions.assertEquals(1679853059, model.maxRetries()); - Assertions.assertEquals(206316371, model.retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(664347452, model.retryBackOff().maxIntervalInMilliseconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyInnerTests.java deleted file mode 100644 index bcae52787b15..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyInnerTests.java +++ /dev/null @@ -1,89 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentResiliencyPolicyInner; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class DaprComponentResiliencyPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprComponentResiliencyPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"inboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1308773307,\"retryBackOff\":{\"initialDelayInMilliseconds\":13948035,\"maxIntervalInMilliseconds\":1766746285}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":1507260148},\"circuitBreakerPolicy\":{\"consecutiveErrors\":897390783,\"timeoutInSeconds\":588380605,\"intervalInSeconds\":1724314397}},\"outboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":543783060,\"retryBackOff\":{\"initialDelayInMilliseconds\":68368510,\"maxIntervalInMilliseconds\":606416580}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":1782927877},\"circuitBreakerPolicy\":{\"consecutiveErrors\":1532850528,\"timeoutInSeconds\":2079945802,\"intervalInSeconds\":1968607374}}},\"id\":\"x\",\"name\":\"yubhiqdx\",\"type\":\"urnpnuhzafccnuh\"}") - .toObject(DaprComponentResiliencyPolicyInner.class); - Assertions.assertEquals(1308773307, model.inboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(13948035, - model.inboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(1766746285, - model.inboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(1507260148, model.inboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(897390783, model.inboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(588380605, model.inboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1724314397, model.inboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - Assertions.assertEquals(543783060, model.outboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(68368510, - model.outboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(606416580, - model.outboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(1782927877, model.outboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(1532850528, model.outboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(2079945802, model.outboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1968607374, model.outboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprComponentResiliencyPolicyInner model = new DaprComponentResiliencyPolicyInner() - .withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1308773307) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration() - .withInitialDelayInMilliseconds(13948035) - .withMaxIntervalInMilliseconds(1766746285))) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(1507260148)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(897390783) - .withTimeoutInSeconds(588380605) - .withIntervalInSeconds(1724314397))) - .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(543783060) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration() - .withInitialDelayInMilliseconds(68368510) - .withMaxIntervalInMilliseconds(606416580))) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(1782927877)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(1532850528) - .withTimeoutInSeconds(2079945802) - .withIntervalInSeconds(1968607374))); - model = BinaryData.fromObject(model).toObject(DaprComponentResiliencyPolicyInner.class); - Assertions.assertEquals(1308773307, model.inboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(13948035, - model.inboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(1766746285, - model.inboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(1507260148, model.inboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(897390783, model.inboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(588380605, model.inboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1724314397, model.inboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - Assertions.assertEquals(543783060, model.outboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(68368510, - model.outboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(606416580, - model.outboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(1782927877, model.outboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(1532850528, model.outboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(2079945802, model.outboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1968607374, model.outboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyPropertiesTests.java deleted file mode 100644 index a2a7c0015761..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyPropertiesTests.java +++ /dev/null @@ -1,89 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DaprComponentResiliencyPolicyProperties; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class DaprComponentResiliencyPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprComponentResiliencyPolicyProperties model = BinaryData.fromString( - "{\"inboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":336660638,\"retryBackOff\":{\"initialDelayInMilliseconds\":485874118,\"maxIntervalInMilliseconds\":1672875845}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":2023850550},\"circuitBreakerPolicy\":{\"consecutiveErrors\":822937790,\"timeoutInSeconds\":1188527137,\"intervalInSeconds\":915705696}},\"outboundPolicy\":{\"httpRetryPolicy\":{\"maxRetries\":1877089971,\"retryBackOff\":{\"initialDelayInMilliseconds\":872457867,\"maxIntervalInMilliseconds\":1271280598}},\"timeoutPolicy\":{\"responseTimeoutInSeconds\":1910064100},\"circuitBreakerPolicy\":{\"consecutiveErrors\":322576383,\"timeoutInSeconds\":1822638526,\"intervalInSeconds\":1732227521}}}") - .toObject(DaprComponentResiliencyPolicyProperties.class); - Assertions.assertEquals(336660638, model.inboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(485874118, - model.inboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(1672875845, - model.inboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(2023850550, model.inboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(822937790, model.inboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1188527137, model.inboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(915705696, model.inboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - Assertions.assertEquals(1877089971, model.outboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(872457867, - model.outboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(1271280598, - model.outboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(1910064100, model.outboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(322576383, model.outboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1822638526, model.outboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1732227521, model.outboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprComponentResiliencyPolicyProperties model = new DaprComponentResiliencyPolicyProperties() - .withInboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(336660638) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration() - .withInitialDelayInMilliseconds(485874118) - .withMaxIntervalInMilliseconds(1672875845))) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(2023850550)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(822937790) - .withTimeoutInSeconds(1188527137) - .withIntervalInSeconds(915705696))) - .withOutboundPolicy(new DaprComponentResiliencyPolicyConfiguration() - .withHttpRetryPolicy( - new DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration().withMaxRetries(1877089971) - .withRetryBackOff(new DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration() - .withInitialDelayInMilliseconds(872457867) - .withMaxIntervalInMilliseconds(1271280598))) - .withTimeoutPolicy(new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration() - .withResponseTimeoutInSeconds(1910064100)) - .withCircuitBreakerPolicy(new DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration() - .withConsecutiveErrors(322576383) - .withTimeoutInSeconds(1822638526) - .withIntervalInSeconds(1732227521))); - model = BinaryData.fromObject(model).toObject(DaprComponentResiliencyPolicyProperties.class); - Assertions.assertEquals(336660638, model.inboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(485874118, - model.inboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(1672875845, - model.inboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(2023850550, model.inboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(822937790, model.inboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1188527137, model.inboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(915705696, model.inboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - Assertions.assertEquals(1877089971, model.outboundPolicy().httpRetryPolicy().maxRetries()); - Assertions.assertEquals(872457867, - model.outboundPolicy().httpRetryPolicy().retryBackOff().initialDelayInMilliseconds()); - Assertions.assertEquals(1271280598, - model.outboundPolicy().httpRetryPolicy().retryBackOff().maxIntervalInMilliseconds()); - Assertions.assertEquals(1910064100, model.outboundPolicy().timeoutPolicy().responseTimeoutInSeconds()); - Assertions.assertEquals(322576383, model.outboundPolicy().circuitBreakerPolicy().consecutiveErrors()); - Assertions.assertEquals(1822638526, model.outboundPolicy().circuitBreakerPolicy().timeoutInSeconds()); - Assertions.assertEquals(1732227521, model.outboundPolicy().circuitBreakerPolicy().intervalInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyTimeoutPolicyConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyTimeoutPolicyConfigurationTests.java deleted file mode 100644 index ed24b3e70410..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentResiliencyPolicyTimeoutPolicyConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class DaprComponentResiliencyPolicyTimeoutPolicyConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprComponentResiliencyPolicyTimeoutPolicyConfiguration model - = BinaryData.fromString("{\"responseTimeoutInSeconds\":262483181}") - .toObject(DaprComponentResiliencyPolicyTimeoutPolicyConfiguration.class); - Assertions.assertEquals(262483181, model.responseTimeoutInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprComponentResiliencyPolicyTimeoutPolicyConfiguration model - = new DaprComponentResiliencyPolicyTimeoutPolicyConfiguration().withResponseTimeoutInSeconds(262483181); - model = BinaryData.fromObject(model).toObject(DaprComponentResiliencyPolicyTimeoutPolicyConfiguration.class); - Assertions.assertEquals(262483181, model.responseTimeoutInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentServiceBindingTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentServiceBindingTests.java deleted file mode 100644 index 1a311b14b6f6..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentServiceBindingTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprComponentServiceBinding; -import com.azure.resourcemanager.appcontainers.models.DaprServiceBindMetadata; -import org.junit.jupiter.api.Assertions; - -public final class DaprComponentServiceBindingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprComponentServiceBinding model = BinaryData.fromString( - "{\"name\":\"owpulpq\",\"serviceId\":\"ylsyxkqjnsje\",\"metadata\":{\"name\":\"iagxsdszuempsbz\",\"value\":\"z\"}}") - .toObject(DaprComponentServiceBinding.class); - Assertions.assertEquals("owpulpq", model.name()); - Assertions.assertEquals("ylsyxkqjnsje", model.serviceId()); - Assertions.assertEquals("iagxsdszuempsbz", model.metadata().name()); - Assertions.assertEquals("z", model.metadata().value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprComponentServiceBinding model = new DaprComponentServiceBinding().withName("owpulpq") - .withServiceId("ylsyxkqjnsje") - .withMetadata(new DaprServiceBindMetadata().withName("iagxsdszuempsbz").withValue("z")); - model = BinaryData.fromObject(model).toObject(DaprComponentServiceBinding.class); - Assertions.assertEquals("owpulpq", model.name()); - Assertions.assertEquals("ylsyxkqjnsje", model.serviceId()); - Assertions.assertEquals("iagxsdszuempsbz", model.metadata().name()); - Assertions.assertEquals("z", model.metadata().value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteWithResponseMockTests.java deleted file mode 100644 index 22e24603de0b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DaprComponentsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.daprComponents() - .deleteWithResponse("ruozkgyfp", "oehgfmqmskkixvlz", "xplhpeva", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsWithResponseMockTests.java deleted file mode 100644 index 9f6d0c305134..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprComponentsListSecretsWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DaprSecretsCollection; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DaprComponentsListSecretsWithResponseMockTests { - @Test - public void testListSecretsWithResponse() throws Exception { - String responseStr = "{\"value\":[{\"name\":\"xgiqasifubn\",\"value\":\"stlpwqp\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DaprSecretsCollection response = manager.daprComponents() - .listSecretsWithResponse("yntvzjyielbq", "vvbq", "knmp", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprConfigurationTests.java deleted file mode 100644 index 9beb6decf40c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprConfiguration; - -public final class DaprConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprConfiguration model - = BinaryData.fromString("{\"version\":\"yuicdhzbdy\"}").toObject(DaprConfiguration.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprConfiguration model = new DaprConfiguration(); - model = BinaryData.fromObject(model).toObject(DaprConfiguration.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSecretTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSecretTests.java deleted file mode 100644 index 2b872446772d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSecretTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprSecret; - -public final class DaprSecretTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprSecret model - = BinaryData.fromString("{\"name\":\"bqwcsdbnwdcf\",\"value\":\"cqdpfuv\"}").toObject(DaprSecret.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprSecret model = new DaprSecret(); - model = BinaryData.fromObject(model).toObject(DaprSecret.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSecretsCollectionInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSecretsCollectionInnerTests.java deleted file mode 100644 index c4dcd23aa143..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSecretsCollectionInnerTests.java +++ /dev/null @@ -1,26 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DaprSecretsCollectionInner; -import com.azure.resourcemanager.appcontainers.models.DaprSecret; -import java.util.Arrays; - -public final class DaprSecretsCollectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprSecretsCollectionInner model = BinaryData.fromString( - "{\"value\":[{\"name\":\"lw\",\"value\":\"ztzp\"},{\"name\":\"ncckw\",\"value\":\"zqwhxxbuyqaxzfeq\"},{\"name\":\"ppriol\",\"value\":\"rjaltolmncw\"}]}") - .toObject(DaprSecretsCollectionInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprSecretsCollectionInner model = new DaprSecretsCollectionInner() - .withValue(Arrays.asList(new DaprSecret(), new DaprSecret(), new DaprSecret())); - model = BinaryData.fromObject(model).toObject(DaprSecretsCollectionInner.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprServiceBindMetadataTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprServiceBindMetadataTests.java deleted file mode 100644 index 6a5ef8046091..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprServiceBindMetadataTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprServiceBindMetadata; -import org.junit.jupiter.api.Assertions; - -public final class DaprServiceBindMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprServiceBindMetadata model = BinaryData.fromString("{\"name\":\"yvpnqicvinvkjj\",\"value\":\"xrbuukzclew\"}") - .toObject(DaprServiceBindMetadata.class); - Assertions.assertEquals("yvpnqicvinvkjj", model.name()); - Assertions.assertEquals("xrbuukzclew", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprServiceBindMetadata model - = new DaprServiceBindMetadata().withName("yvpnqicvinvkjj").withValue("xrbuukzclew"); - model = BinaryData.fromObject(model).toObject(DaprServiceBindMetadata.class); - Assertions.assertEquals("yvpnqicvinvkjj", model.name()); - Assertions.assertEquals("xrbuukzclew", model.value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionBulkSubscribeOptionsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionBulkSubscribeOptionsTests.java deleted file mode 100644 index 56af231ad7b2..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionBulkSubscribeOptionsTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionBulkSubscribeOptions; -import org.junit.jupiter.api.Assertions; - -public final class DaprSubscriptionBulkSubscribeOptionsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprSubscriptionBulkSubscribeOptions model = BinaryData - .fromString("{\"enabled\":true,\"maxMessagesCount\":979453859,\"maxAwaitDurationMs\":632161025}") - .toObject(DaprSubscriptionBulkSubscribeOptions.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(979453859, model.maxMessagesCount()); - Assertions.assertEquals(632161025, model.maxAwaitDurationMs()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprSubscriptionBulkSubscribeOptions model = new DaprSubscriptionBulkSubscribeOptions().withEnabled(true) - .withMaxMessagesCount(979453859) - .withMaxAwaitDurationMs(632161025); - model = BinaryData.fromObject(model).toObject(DaprSubscriptionBulkSubscribeOptions.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(979453859, model.maxMessagesCount()); - Assertions.assertEquals(632161025, model.maxAwaitDurationMs()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionInnerTests.java deleted file mode 100644 index 7183f4c9c147..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DaprSubscriptionInner; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionBulkSubscribeOptions; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRouteRule; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRoutes; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DaprSubscriptionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprSubscriptionInner model = BinaryData.fromString( - "{\"properties\":{\"pubsubName\":\"yzyzeyuu\",\"topic\":\"idszl\",\"deadLetterTopic\":\"toi\",\"routes\":{\"rules\":[{\"match\":\"vfltgvdi\",\"path\":\"ynkrxwetw\"},{\"match\":\"rcyrucpcunnu\",\"path\":\"qumoeno\"},{\"match\":\"aienhqhsknd\",\"path\":\"lqkaadlknwf\"},{\"match\":\"nniyopetxi\",\"path\":\"nrlyxnuc\"}],\"default\":\"p\"},\"scopes\":[\"kwqpat\"],\"metadata\":{\"uo\":\"sdtcjbctvivuzqym\",\"tgitsqhzvbrzc\":\"o\",\"ndscxmxeatk\":\"banf\",\"aomhjrmkuhmaxl\":\"bmwnrdjyibqb\"},\"bulkSubscribe\":{\"enabled\":false,\"maxMessagesCount\":1128684508,\"maxAwaitDurationMs\":1545427056}},\"id\":\"obcancdexxqcw\",\"name\":\"a\",\"type\":\"fgvaknokzwj\"}") - .toObject(DaprSubscriptionInner.class); - Assertions.assertEquals("yzyzeyuu", model.pubsubName()); - Assertions.assertEquals("idszl", model.topic()); - Assertions.assertEquals("toi", model.deadLetterTopic()); - Assertions.assertEquals("vfltgvdi", model.routes().rules().get(0).match()); - Assertions.assertEquals("ynkrxwetw", model.routes().rules().get(0).path()); - Assertions.assertEquals("p", model.routes().defaultProperty()); - Assertions.assertEquals("kwqpat", model.scopes().get(0)); - Assertions.assertEquals("sdtcjbctvivuzqym", model.metadata().get("uo")); - Assertions.assertEquals(false, model.bulkSubscribe().enabled()); - Assertions.assertEquals(1128684508, model.bulkSubscribe().maxMessagesCount()); - Assertions.assertEquals(1545427056, model.bulkSubscribe().maxAwaitDurationMs()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprSubscriptionInner model = new DaprSubscriptionInner().withPubsubName("yzyzeyuu") - .withTopic("idszl") - .withDeadLetterTopic("toi") - .withRoutes(new DaprSubscriptionRoutes() - .withRules(Arrays.asList(new DaprSubscriptionRouteRule().withMatch("vfltgvdi").withPath("ynkrxwetw"), - new DaprSubscriptionRouteRule().withMatch("rcyrucpcunnu").withPath("qumoeno"), - new DaprSubscriptionRouteRule().withMatch("aienhqhsknd").withPath("lqkaadlknwf"), - new DaprSubscriptionRouteRule().withMatch("nniyopetxi").withPath("nrlyxnuc"))) - .withDefaultProperty("p")) - .withScopes(Arrays.asList("kwqpat")) - .withMetadata(mapOf("uo", "sdtcjbctvivuzqym", "tgitsqhzvbrzc", "o", "ndscxmxeatk", "banf", "aomhjrmkuhmaxl", - "bmwnrdjyibqb")) - .withBulkSubscribe(new DaprSubscriptionBulkSubscribeOptions().withEnabled(false) - .withMaxMessagesCount(1128684508) - .withMaxAwaitDurationMs(1545427056)); - model = BinaryData.fromObject(model).toObject(DaprSubscriptionInner.class); - Assertions.assertEquals("yzyzeyuu", model.pubsubName()); - Assertions.assertEquals("idszl", model.topic()); - Assertions.assertEquals("toi", model.deadLetterTopic()); - Assertions.assertEquals("vfltgvdi", model.routes().rules().get(0).match()); - Assertions.assertEquals("ynkrxwetw", model.routes().rules().get(0).path()); - Assertions.assertEquals("p", model.routes().defaultProperty()); - Assertions.assertEquals("kwqpat", model.scopes().get(0)); - Assertions.assertEquals("sdtcjbctvivuzqym", model.metadata().get("uo")); - Assertions.assertEquals(false, model.bulkSubscribe().enabled()); - Assertions.assertEquals(1128684508, model.bulkSubscribe().maxMessagesCount()); - Assertions.assertEquals(1545427056, model.bulkSubscribe().maxAwaitDurationMs()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionPropertiesTests.java deleted file mode 100644 index 4bbbe85a4f10..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionPropertiesTests.java +++ /dev/null @@ -1,74 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DaprSubscriptionProperties; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionBulkSubscribeOptions; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRouteRule; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRoutes; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DaprSubscriptionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprSubscriptionProperties model = BinaryData.fromString( - "{\"pubsubName\":\"r\",\"topic\":\"ixldzyyfy\",\"deadLetterTopic\":\"qsix\",\"routes\":{\"rules\":[{\"match\":\"jivyqlkjuv\",\"path\":\"bmslzoyov\"}],\"default\":\"dbpqvybefgvm\"},\"scopes\":[\"kcvtl\",\"bse\",\"kvcuartrhunl\"],\"metadata\":{\"jreuykbbmn\":\"ykycndzfqi\",\"xoe\":\"aglt\",\"fwmyymv\":\"onql\",\"fckdvez\":\"dbpb\"},\"bulkSubscribe\":{\"enabled\":true,\"maxMessagesCount\":1245592437,\"maxAwaitDurationMs\":701964979}}") - .toObject(DaprSubscriptionProperties.class); - Assertions.assertEquals("r", model.pubsubName()); - Assertions.assertEquals("ixldzyyfy", model.topic()); - Assertions.assertEquals("qsix", model.deadLetterTopic()); - Assertions.assertEquals("jivyqlkjuv", model.routes().rules().get(0).match()); - Assertions.assertEquals("bmslzoyov", model.routes().rules().get(0).path()); - Assertions.assertEquals("dbpqvybefgvm", model.routes().defaultProperty()); - Assertions.assertEquals("kcvtl", model.scopes().get(0)); - Assertions.assertEquals("ykycndzfqi", model.metadata().get("jreuykbbmn")); - Assertions.assertEquals(true, model.bulkSubscribe().enabled()); - Assertions.assertEquals(1245592437, model.bulkSubscribe().maxMessagesCount()); - Assertions.assertEquals(701964979, model.bulkSubscribe().maxAwaitDurationMs()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprSubscriptionProperties model = new DaprSubscriptionProperties().withPubsubName("r") - .withTopic("ixldzyyfy") - .withDeadLetterTopic("qsix") - .withRoutes(new DaprSubscriptionRoutes() - .withRules(Arrays.asList(new DaprSubscriptionRouteRule().withMatch("jivyqlkjuv").withPath("bmslzoyov"))) - .withDefaultProperty("dbpqvybefgvm")) - .withScopes(Arrays.asList("kcvtl", "bse", "kvcuartrhunl")) - .withMetadata(mapOf("jreuykbbmn", "ykycndzfqi", "xoe", "aglt", "fwmyymv", "onql", "fckdvez", "dbpb")) - .withBulkSubscribe(new DaprSubscriptionBulkSubscribeOptions().withEnabled(true) - .withMaxMessagesCount(1245592437) - .withMaxAwaitDurationMs(701964979)); - model = BinaryData.fromObject(model).toObject(DaprSubscriptionProperties.class); - Assertions.assertEquals("r", model.pubsubName()); - Assertions.assertEquals("ixldzyyfy", model.topic()); - Assertions.assertEquals("qsix", model.deadLetterTopic()); - Assertions.assertEquals("jivyqlkjuv", model.routes().rules().get(0).match()); - Assertions.assertEquals("bmslzoyov", model.routes().rules().get(0).path()); - Assertions.assertEquals("dbpqvybefgvm", model.routes().defaultProperty()); - Assertions.assertEquals("kcvtl", model.scopes().get(0)); - Assertions.assertEquals("ykycndzfqi", model.metadata().get("jreuykbbmn")); - Assertions.assertEquals(true, model.bulkSubscribe().enabled()); - Assertions.assertEquals(1245592437, model.bulkSubscribe().maxMessagesCount()); - Assertions.assertEquals(701964979, model.bulkSubscribe().maxAwaitDurationMs()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionRouteRuleTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionRouteRuleTests.java deleted file mode 100644 index 2ef4bfbc23a5..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionRouteRuleTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRouteRule; -import org.junit.jupiter.api.Assertions; - -public final class DaprSubscriptionRouteRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprSubscriptionRouteRule model = BinaryData.fromString("{\"match\":\"csehchkhufm\",\"path\":\"umqy\"}") - .toObject(DaprSubscriptionRouteRule.class); - Assertions.assertEquals("csehchkhufm", model.match()); - Assertions.assertEquals("umqy", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprSubscriptionRouteRule model = new DaprSubscriptionRouteRule().withMatch("csehchkhufm").withPath("umqy"); - model = BinaryData.fromObject(model).toObject(DaprSubscriptionRouteRule.class); - Assertions.assertEquals("csehchkhufm", model.match()); - Assertions.assertEquals("umqy", model.path()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionRoutesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionRoutesTests.java deleted file mode 100644 index 7a5ce7c83190..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionRoutesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRouteRule; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRoutes; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DaprSubscriptionRoutesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprSubscriptionRoutes model = BinaryData.fromString( - "{\"rules\":[{\"match\":\"b\",\"path\":\"qfblhkalehpa\"},{\"match\":\"wugiqjti\",\"path\":\"qgdm\"},{\"match\":\"i\",\"path\":\"teajohiyg\"},{\"match\":\"n\",\"path\":\"n\"}],\"default\":\"czykmktpvw\"}") - .toObject(DaprSubscriptionRoutes.class); - Assertions.assertEquals("b", model.rules().get(0).match()); - Assertions.assertEquals("qfblhkalehpa", model.rules().get(0).path()); - Assertions.assertEquals("czykmktpvw", model.defaultProperty()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprSubscriptionRoutes model = new DaprSubscriptionRoutes() - .withRules(Arrays.asList(new DaprSubscriptionRouteRule().withMatch("b").withPath("qfblhkalehpa"), - new DaprSubscriptionRouteRule().withMatch("wugiqjti").withPath("qgdm"), - new DaprSubscriptionRouteRule().withMatch("i").withPath("teajohiyg"), - new DaprSubscriptionRouteRule().withMatch("n").withPath("n"))) - .withDefaultProperty("czykmktpvw"); - model = BinaryData.fromObject(model).toObject(DaprSubscriptionRoutes.class); - Assertions.assertEquals("b", model.rules().get(0).match()); - Assertions.assertEquals("qfblhkalehpa", model.rules().get(0).path()); - Assertions.assertEquals("czykmktpvw", model.defaultProperty()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCollectionTests.java deleted file mode 100644 index f8064d63f609..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCollectionTests.java +++ /dev/null @@ -1,93 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DaprSubscriptionInner; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionBulkSubscribeOptions; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRouteRule; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRoutes; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionsCollection; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DaprSubscriptionsCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DaprSubscriptionsCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"pubsubName\":\"kjztjiuazjcgmxi\",\"topic\":\"f\",\"deadLetterTopic\":\"zc\",\"routes\":{\"rules\":[{},{},{}],\"default\":\"rlgjm\"},\"scopes\":[\"rvcqguefzhomphe\",\"durelyujl\",\"youmpc\"],\"metadata\":{\"ucycijo\":\"clcdigptajbrzmq\",\"jb\":\"lxiutgjcyzyzjdnr\",\"w\":\"xjeaoqaqbzgyh\",\"atbwbqam\":\"v\"},\"bulkSubscribe\":{\"enabled\":false,\"maxMessagesCount\":235713184,\"maxAwaitDurationMs\":1350146316}},\"id\":\"kcvmwfauxxepmy\",\"name\":\"bormcqmiciijqpkz\",\"type\":\"bojxjmcsmy\"},{\"properties\":{\"pubsubName\":\"xv\",\"topic\":\"wnkwywzwo\",\"deadLetterTopic\":\"lickduoi\",\"routes\":{\"rules\":[{}],\"default\":\"yvsk\"},\"scopes\":[\"wzawnvsbcfhzagxn\",\"hycvdimwrzre\"],\"metadata\":{\"eryekzkdhmeottaw\":\"yufutrwp\"},\"bulkSubscribe\":{\"enabled\":true,\"maxMessagesCount\":543459562,\"maxAwaitDurationMs\":1246274609}},\"id\":\"h\",\"name\":\"tfvpndpmiljpn\",\"type\":\"ynudqllzsa\"},{\"properties\":{\"pubsubName\":\"jlxeehuxiqhz\",\"topic\":\"aymezx\",\"deadLetterTopic\":\"kihmxrfdsajredn\",\"routes\":{\"rules\":[{},{}],\"default\":\"t\"},\"scopes\":[\"mevuafpwzy\",\"frkgwltxeq\",\"pxgzdyimsfayor\"],\"metadata\":{\"oge\":\"vk\",\"aekqsykvwj\":\"labnsmjkwynq\"},\"bulkSubscribe\":{\"enabled\":false,\"maxMessagesCount\":717793996,\"maxAwaitDurationMs\":838644872}},\"id\":\"tjcrspxklurccl\",\"name\":\"gxannnoytzposewx\",\"type\":\"gpxvkqmaupxvpi\"}],\"nextLink\":\"f\"}") - .toObject(DaprSubscriptionsCollection.class); - Assertions.assertEquals("kjztjiuazjcgmxi", model.value().get(0).pubsubName()); - Assertions.assertEquals("f", model.value().get(0).topic()); - Assertions.assertEquals("zc", model.value().get(0).deadLetterTopic()); - Assertions.assertEquals("rlgjm", model.value().get(0).routes().defaultProperty()); - Assertions.assertEquals("rvcqguefzhomphe", model.value().get(0).scopes().get(0)); - Assertions.assertEquals("clcdigptajbrzmq", model.value().get(0).metadata().get("ucycijo")); - Assertions.assertEquals(false, model.value().get(0).bulkSubscribe().enabled()); - Assertions.assertEquals(235713184, model.value().get(0).bulkSubscribe().maxMessagesCount()); - Assertions.assertEquals(1350146316, model.value().get(0).bulkSubscribe().maxAwaitDurationMs()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DaprSubscriptionsCollection model = new DaprSubscriptionsCollection().withValue(Arrays.asList( - new DaprSubscriptionInner().withPubsubName("kjztjiuazjcgmxi") - .withTopic("f") - .withDeadLetterTopic("zc") - .withRoutes(new DaprSubscriptionRoutes().withRules(Arrays.asList(new DaprSubscriptionRouteRule(), - new DaprSubscriptionRouteRule(), new DaprSubscriptionRouteRule())).withDefaultProperty("rlgjm")) - .withScopes(Arrays.asList("rvcqguefzhomphe", "durelyujl", "youmpc")) - .withMetadata(mapOf("ucycijo", "clcdigptajbrzmq", "jb", "lxiutgjcyzyzjdnr", "w", "xjeaoqaqbzgyh", - "atbwbqam", "v")) - .withBulkSubscribe(new DaprSubscriptionBulkSubscribeOptions().withEnabled(false) - .withMaxMessagesCount(235713184) - .withMaxAwaitDurationMs(1350146316)), - new DaprSubscriptionInner().withPubsubName("xv") - .withTopic("wnkwywzwo") - .withDeadLetterTopic("lickduoi") - .withRoutes(new DaprSubscriptionRoutes().withRules(Arrays.asList(new DaprSubscriptionRouteRule())) - .withDefaultProperty("yvsk")) - .withScopes(Arrays.asList("wzawnvsbcfhzagxn", "hycvdimwrzre")) - .withMetadata(mapOf("eryekzkdhmeottaw", "yufutrwp")) - .withBulkSubscribe(new DaprSubscriptionBulkSubscribeOptions().withEnabled(true) - .withMaxMessagesCount(543459562) - .withMaxAwaitDurationMs(1246274609)), - new DaprSubscriptionInner().withPubsubName("jlxeehuxiqhz") - .withTopic("aymezx") - .withDeadLetterTopic("kihmxrfdsajredn") - .withRoutes(new DaprSubscriptionRoutes() - .withRules(Arrays.asList(new DaprSubscriptionRouteRule(), new DaprSubscriptionRouteRule())) - .withDefaultProperty("t")) - .withScopes(Arrays.asList("mevuafpwzy", "frkgwltxeq", "pxgzdyimsfayor")) - .withMetadata(mapOf("oge", "vk", "aekqsykvwj", "labnsmjkwynq")) - .withBulkSubscribe(new DaprSubscriptionBulkSubscribeOptions().withEnabled(false) - .withMaxMessagesCount(717793996) - .withMaxAwaitDurationMs(838644872)))); - model = BinaryData.fromObject(model).toObject(DaprSubscriptionsCollection.class); - Assertions.assertEquals("kjztjiuazjcgmxi", model.value().get(0).pubsubName()); - Assertions.assertEquals("f", model.value().get(0).topic()); - Assertions.assertEquals("zc", model.value().get(0).deadLetterTopic()); - Assertions.assertEquals("rlgjm", model.value().get(0).routes().defaultProperty()); - Assertions.assertEquals("rvcqguefzhomphe", model.value().get(0).scopes().get(0)); - Assertions.assertEquals("clcdigptajbrzmq", model.value().get(0).metadata().get("ucycijo")); - Assertions.assertEquals(false, model.value().get(0).bulkSubscribe().enabled()); - Assertions.assertEquals(235713184, model.value().get(0).bulkSubscribe().maxMessagesCount()); - Assertions.assertEquals(1350146316, model.value().get(0).bulkSubscribe().maxAwaitDurationMs()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCreateOrUpdateWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 5d83b045ebe5..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,82 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DaprSubscription; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionBulkSubscribeOptions; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRouteRule; -import com.azure.resourcemanager.appcontainers.models.DaprSubscriptionRoutes; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DaprSubscriptionsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"pubsubName\":\"u\",\"topic\":\"uyuafixlxicw\",\"deadLetterTopic\":\"th\",\"routes\":{\"rules\":[{\"match\":\"z\",\"path\":\"as\"},{\"match\":\"d\",\"path\":\"palvngtw\"},{\"match\":\"skwgqr\",\"path\":\"au\"},{\"match\":\"rcjlvkrkegtyczup\",\"path\":\"yxlz\"}],\"default\":\"yddeeqz\"},\"scopes\":[\"bm\"],\"metadata\":{\"trlq\":\"exduetbapfczew\"},\"bulkSubscribe\":{\"enabled\":false,\"maxMessagesCount\":868320545,\"maxAwaitDurationMs\":1023832857}},\"id\":\"ir\",\"name\":\"zxvbczwhyegbthms\",\"type\":\"i\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DaprSubscription response - = manager.daprSubscriptions() - .define("rpahuuonjkkxuk") - .withExistingManagedEnvironment("uugkw", "rq") - .withPubsubName("hvvpx") - .withTopic("egcjojlleuid") - .withDeadLetterTopic("tonvhgnhtmeplhb") - .withRoutes( - new DaprSubscriptionRoutes() - .withRules(Arrays.asList(new DaprSubscriptionRouteRule().withMatch("mumm").withPath("vavucg"), - new DaprSubscriptionRouteRule().withMatch("ua").withPath("pmn"))) - .withDefaultProperty("zhrchx")) - .withScopes(Arrays.asList("zdmh", "wlvi")) - .withMetadata(mapOf("viscot", "xmlitqdsjip")) - .withBulkSubscribe(new DaprSubscriptionBulkSubscribeOptions().withEnabled(false) - .withMaxMessagesCount(49608617) - .withMaxAwaitDurationMs(1621257859)) - .create(); - - Assertions.assertEquals("u", response.pubsubName()); - Assertions.assertEquals("uyuafixlxicw", response.topic()); - Assertions.assertEquals("th", response.deadLetterTopic()); - Assertions.assertEquals("z", response.routes().rules().get(0).match()); - Assertions.assertEquals("as", response.routes().rules().get(0).path()); - Assertions.assertEquals("yddeeqz", response.routes().defaultProperty()); - Assertions.assertEquals("bm", response.scopes().get(0)); - Assertions.assertEquals("exduetbapfczew", response.metadata().get("trlq")); - Assertions.assertEquals(false, response.bulkSubscribe().enabled()); - Assertions.assertEquals(868320545, response.bulkSubscribe().maxMessagesCount()); - Assertions.assertEquals(1023832857, response.bulkSubscribe().maxAwaitDurationMs()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsDeleteWithResponseMockTests.java deleted file mode 100644 index ac064fa10714..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DaprSubscriptionsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.daprSubscriptions() - .deleteWithResponse("eubkqiqmlf", "hlq", "skkqjmxptuei", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsGetWithResponseMockTests.java deleted file mode 100644 index c862c2fe045f..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsGetWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DaprSubscription; -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 DaprSubscriptionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"pubsubName\":\"jisskob\",\"topic\":\"clflioe\",\"deadLetterTopic\":\"hxessmvrk\",\"routes\":{\"rules\":[{\"match\":\"qfbdxmdses\",\"path\":\"ujbjppp\"}],\"default\":\"lpdib\"},\"scopes\":[\"hieatnejr\"],\"metadata\":{\"zfffjilzfbpnt\":\"nzqplgtkihonikzs\",\"fxxkwykuqdndxl\":\"gkensckhbmcarmo\",\"gga\":\"kh\"},\"bulkSubscribe\":{\"enabled\":false,\"maxMessagesCount\":1051896367,\"maxAwaitDurationMs\":1808991970}},\"id\":\"rscdxrnrnjrcuf\",\"name\":\"bgacnr\",\"type\":\"fdtncmspsanma\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DaprSubscription response = manager.daprSubscriptions() - .getWithResponse("pmpv", "nogehlufbort", "nukkfaxzsvb", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("jisskob", response.pubsubName()); - Assertions.assertEquals("clflioe", response.topic()); - Assertions.assertEquals("hxessmvrk", response.deadLetterTopic()); - Assertions.assertEquals("qfbdxmdses", response.routes().rules().get(0).match()); - Assertions.assertEquals("ujbjppp", response.routes().rules().get(0).path()); - Assertions.assertEquals("lpdib", response.routes().defaultProperty()); - Assertions.assertEquals("hieatnejr", response.scopes().get(0)); - Assertions.assertEquals("nzqplgtkihonikzs", response.metadata().get("zfffjilzfbpnt")); - Assertions.assertEquals(false, response.bulkSubscribe().enabled()); - Assertions.assertEquals(1051896367, response.bulkSubscribe().maxMessagesCount()); - Assertions.assertEquals(1808991970, response.bulkSubscribe().maxAwaitDurationMs()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsListMockTests.java deleted file mode 100644 index 5548ded34eeb..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprSubscriptionsListMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DaprSubscription; -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 DaprSubscriptionsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"pubsubName\":\"llznf\",\"topic\":\"qytkztadop\",\"deadLetterTopic\":\"zdgjfcyc\",\"routes\":{\"rules\":[{\"match\":\"yyhigqkzjuqw\",\"path\":\"jquzx\"},{\"match\":\"xhyoip\",\"path\":\"dbgsosc\"},{\"match\":\"nezfvbennmfkbpj\",\"path\":\"tekwwnthropm\"}],\"default\":\"d\"},\"scopes\":[\"urz\",\"vktjhffecqkoq\"],\"metadata\":{\"pyehh\":\"ergaghpuzx\",\"qhtdereunokakzwh\":\"dyldhgyedzfzqiy\",\"xrfomcke\":\"jlwyxedzn\",\"jt\":\"vmyifopxf\"},\"bulkSubscribe\":{\"enabled\":false,\"maxMessagesCount\":1418412689,\"maxAwaitDurationMs\":1797991715}},\"id\":\"pt\",\"name\":\"fhgnuywezygv\",\"type\":\"dgaaqwvkgjpy\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.daprSubscriptions().list("nxjkhtupsvyouw", "uiyxfwkztsmsfb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("llznf", response.iterator().next().pubsubName()); - Assertions.assertEquals("qytkztadop", response.iterator().next().topic()); - Assertions.assertEquals("zdgjfcyc", response.iterator().next().deadLetterTopic()); - Assertions.assertEquals("yyhigqkzjuqw", response.iterator().next().routes().rules().get(0).match()); - Assertions.assertEquals("jquzx", response.iterator().next().routes().rules().get(0).path()); - Assertions.assertEquals("d", response.iterator().next().routes().defaultProperty()); - Assertions.assertEquals("urz", response.iterator().next().scopes().get(0)); - Assertions.assertEquals("ergaghpuzx", response.iterator().next().metadata().get("pyehh")); - Assertions.assertEquals(false, response.iterator().next().bulkSubscribe().enabled()); - Assertions.assertEquals(1418412689, response.iterator().next().bulkSubscribe().maxMessagesCount()); - Assertions.assertEquals(1797991715, response.iterator().next().bulkSubscribe().maxAwaitDurationMs()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprTests.java deleted file mode 100644 index 5d6dd115b326..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DaprTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AppProtocol; -import com.azure.resourcemanager.appcontainers.models.Dapr; -import com.azure.resourcemanager.appcontainers.models.LogLevel; -import org.junit.jupiter.api.Assertions; - -public final class DaprTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Dapr model = BinaryData.fromString( - "{\"enabled\":false,\"appId\":\"pc\",\"appProtocol\":\"http\",\"appPort\":2091376747,\"httpReadBufferSize\":2104767633,\"httpMaxRequestSize\":561719480,\"logLevel\":\"error\",\"enableApiLogging\":false}") - .toObject(Dapr.class); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals("pc", model.appId()); - Assertions.assertEquals(AppProtocol.HTTP, model.appProtocol()); - Assertions.assertEquals(2091376747, model.appPort()); - Assertions.assertEquals(2104767633, model.httpReadBufferSize()); - Assertions.assertEquals(561719480, model.httpMaxRequestSize()); - Assertions.assertEquals(LogLevel.ERROR, model.logLevel()); - Assertions.assertEquals(false, model.enableApiLogging()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Dapr model = new Dapr().withEnabled(false) - .withAppId("pc") - .withAppProtocol(AppProtocol.HTTP) - .withAppPort(2091376747) - .withHttpReadBufferSize(2104767633) - .withHttpMaxRequestSize(561719480) - .withLogLevel(LogLevel.ERROR) - .withEnableApiLogging(false); - model = BinaryData.fromObject(model).toObject(Dapr.class); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals("pc", model.appId()); - Assertions.assertEquals(AppProtocol.HTTP, model.appProtocol()); - Assertions.assertEquals(2091376747, model.appPort()); - Assertions.assertEquals(2104767633, model.httpReadBufferSize()); - Assertions.assertEquals(561719480, model.httpMaxRequestSize()); - Assertions.assertEquals(LogLevel.ERROR, model.logLevel()); - Assertions.assertEquals(false, model.enableApiLogging()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DefaultAuthorizationPolicyTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DefaultAuthorizationPolicyTests.java deleted file mode 100644 index 1ca655a96628..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DefaultAuthorizationPolicyTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AllowedPrincipals; -import com.azure.resourcemanager.appcontainers.models.DefaultAuthorizationPolicy; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DefaultAuthorizationPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DefaultAuthorizationPolicy model = BinaryData.fromString( - "{\"allowedPrincipals\":{\"groups\":[\"hbzhfepg\",\"gqexzlocxs\",\"paierh\"],\"identities\":[\"sglumma\",\"tjaodxobnb\"]},\"allowedApplications\":[\"qp\"]}") - .toObject(DefaultAuthorizationPolicy.class); - Assertions.assertEquals("hbzhfepg", model.allowedPrincipals().groups().get(0)); - Assertions.assertEquals("sglumma", model.allowedPrincipals().identities().get(0)); - Assertions.assertEquals("qp", model.allowedApplications().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DefaultAuthorizationPolicy model - = new DefaultAuthorizationPolicy() - .withAllowedPrincipals( - new AllowedPrincipals().withGroups(Arrays.asList("hbzhfepg", "gqexzlocxs", "paierh")) - .withIdentities(Arrays.asList("sglumma", "tjaodxobnb"))) - .withAllowedApplications(Arrays.asList("qp")); - model = BinaryData.fromObject(model).toObject(DefaultAuthorizationPolicy.class); - Assertions.assertEquals("hbzhfepg", model.allowedPrincipals().groups().get(0)); - Assertions.assertEquals("sglumma", model.allowedPrincipals().identities().get(0)); - Assertions.assertEquals("qp", model.allowedApplications().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DefaultErrorResponseErrorTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DefaultErrorResponseErrorTests.java deleted file mode 100644 index 1b9c62c0f6b7..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DefaultErrorResponseErrorTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseError; - -public final class DefaultErrorResponseErrorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DefaultErrorResponseError model - = BinaryData.fromString("{\"innererror\":\"qulngsntnbybkzgc\"}").toObject(DefaultErrorResponseError.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DefaultErrorResponseError model = new DefaultErrorResponseError(); - model = BinaryData.fromObject(model).toObject(DefaultErrorResponseError.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataProviderMetadataPropertyBagItemTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataProviderMetadataPropertyBagItemTests.java deleted file mode 100644 index 81041827f010..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataProviderMetadataPropertyBagItemTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticDataProviderMetadataPropertyBagItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticDataProviderMetadataPropertyBagItem model - = BinaryData.fromString("{\"name\":\"djwnlaxpunjqi\",\"value\":\"zvvitacgxmfcs\"}") - .toObject(DiagnosticDataProviderMetadataPropertyBagItem.class); - Assertions.assertEquals("djwnlaxpunjqi", model.name()); - Assertions.assertEquals("zvvitacgxmfcs", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticDataProviderMetadataPropertyBagItem model - = new DiagnosticDataProviderMetadataPropertyBagItem().withName("djwnlaxpunjqi").withValue("zvvitacgxmfcs"); - model = BinaryData.fromObject(model).toObject(DiagnosticDataProviderMetadataPropertyBagItem.class); - Assertions.assertEquals("djwnlaxpunjqi", model.name()); - Assertions.assertEquals("zvvitacgxmfcs", model.value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataProviderMetadataTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataProviderMetadataTests.java deleted file mode 100644 index 1d8b0ad498c1..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataProviderMetadataTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataProviderMetadata; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticDataProviderMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticDataProviderMetadata model = BinaryData - .fromString("{\"providerName\":\"eqqe\",\"propertyBag\":[{\"name\":\"n\",\"value\":\"cdlguauc\"}]}") - .toObject(DiagnosticDataProviderMetadata.class); - Assertions.assertEquals("eqqe", model.providerName()); - Assertions.assertEquals("n", model.propertyBag().get(0).name()); - Assertions.assertEquals("cdlguauc", model.propertyBag().get(0).value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticDataProviderMetadata model = new DiagnosticDataProviderMetadata().withProviderName("eqqe") - .withPropertyBag( - Arrays.asList(new DiagnosticDataProviderMetadataPropertyBagItem().withName("n").withValue("cdlguauc"))); - model = BinaryData.fromObject(model).toObject(DiagnosticDataProviderMetadata.class); - Assertions.assertEquals("eqqe", model.providerName()); - Assertions.assertEquals("n", model.propertyBag().get(0).name()); - Assertions.assertEquals("cdlguauc", model.propertyBag().get(0).value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataTableResponseColumnTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataTableResponseColumnTests.java deleted file mode 100644 index d6d6b955c347..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataTableResponseColumnTests.java +++ /dev/null @@ -1,33 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseColumn; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticDataTableResponseColumnTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticDataTableResponseColumn model = BinaryData - .fromString( - "{\"columnName\":\"tuwkffdj\",\"dataType\":\"sysidfvclglxnf\",\"columnType\":\"jtkbusqogsfika\"}") - .toObject(DiagnosticDataTableResponseColumn.class); - Assertions.assertEquals("tuwkffdj", model.columnName()); - Assertions.assertEquals("sysidfvclglxnf", model.dataType()); - Assertions.assertEquals("jtkbusqogsfika", model.columnType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticDataTableResponseColumn model = new DiagnosticDataTableResponseColumn().withColumnName("tuwkffdj") - .withDataType("sysidfvclglxnf") - .withColumnType("jtkbusqogsfika"); - model = BinaryData.fromObject(model).toObject(DiagnosticDataTableResponseColumn.class); - Assertions.assertEquals("tuwkffdj", model.columnName()); - Assertions.assertEquals("sysidfvclglxnf", model.dataType()); - Assertions.assertEquals("jtkbusqogsfika", model.columnType()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataTableResponseObjectTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataTableResponseObjectTests.java deleted file mode 100644 index 4cec8bf17843..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticDataTableResponseObjectTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseColumn; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseObject; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticDataTableResponseObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticDataTableResponseObject model = BinaryData.fromString( - "{\"tableName\":\"m\",\"columns\":[{\"columnName\":\"bnfxofvc\",\"dataType\":\"gdirazf\",\"columnType\":\"ejwabmdujtmvco\"}],\"rows\":[\"datac\",\"datajurbuhhlkyqltqsr\"]}") - .toObject(DiagnosticDataTableResponseObject.class); - Assertions.assertEquals("m", model.tableName()); - Assertions.assertEquals("bnfxofvc", model.columns().get(0).columnName()); - Assertions.assertEquals("gdirazf", model.columns().get(0).dataType()); - Assertions.assertEquals("ejwabmdujtmvco", model.columns().get(0).columnType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticDataTableResponseObject model = new DiagnosticDataTableResponseObject().withTableName("m") - .withColumns(Arrays.asList(new DiagnosticDataTableResponseColumn().withColumnName("bnfxofvc") - .withDataType("gdirazf") - .withColumnType("ejwabmdujtmvco"))) - .withRows(Arrays.asList("datac", "datajurbuhhlkyqltqsr")); - model = BinaryData.fromObject(model).toObject(DiagnosticDataTableResponseObject.class); - Assertions.assertEquals("m", model.tableName()); - Assertions.assertEquals("bnfxofvc", model.columns().get(0).columnName()); - Assertions.assertEquals("gdirazf", model.columns().get(0).dataType()); - Assertions.assertEquals("ejwabmdujtmvco", model.columns().get(0).columnType()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticRenderingTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticRenderingTests.java deleted file mode 100644 index 8bc292b58442..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticRenderingTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticRendering; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticRenderingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticRendering model = BinaryData - .fromString("{\"type\":1717573357,\"title\":\"sharujtj\",\"description\":\"xfz\",\"isVisible\":false}") - .toObject(DiagnosticRendering.class); - Assertions.assertEquals(1717573357, model.type()); - Assertions.assertEquals("sharujtj", model.title()); - Assertions.assertEquals("xfz", model.description()); - Assertions.assertEquals(false, model.isVisible()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticRendering model = new DiagnosticRendering().withType(1717573357) - .withTitle("sharujtj") - .withDescription("xfz") - .withIsVisible(false); - model = BinaryData.fromObject(model).toObject(DiagnosticRendering.class); - Assertions.assertEquals(1717573357, model.type()); - Assertions.assertEquals("sharujtj", model.title()); - Assertions.assertEquals("xfz", model.description()); - Assertions.assertEquals(false, model.isVisible()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticSupportTopicTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticSupportTopicTests.java deleted file mode 100644 index d21dad7853b7..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticSupportTopicTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticSupportTopic; - -public final class DiagnosticSupportTopicTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticSupportTopic model = BinaryData.fromString("{\"id\":\"ionszonwp\",\"pesId\":\"ajinnixjawrtmjfj\"}") - .toObject(DiagnosticSupportTopic.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticSupportTopic model = new DiagnosticSupportTopic(); - model = BinaryData.fromObject(model).toObject(DiagnosticSupportTopic.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsCollectionInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsCollectionInnerTests.java deleted file mode 100644 index 4827d2366a70..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsCollectionInnerTests.java +++ /dev/null @@ -1,88 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsCollectionInner; -import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsInner; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataProviderMetadata; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseObject; -import com.azure.resourcemanager.appcontainers.models.DiagnosticRendering; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsDataApiResponse; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsDefinition; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsProperties; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsStatus; -import com.azure.resourcemanager.appcontainers.models.DiagnosticSupportTopic; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticsCollectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticsCollectionInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"metadata\":{\"id\":\"wfansnvpdi\",\"name\":\"ikostbzbkiwbuqny\",\"description\":\"hzfylsgcrpfbc\",\"author\":\"ezzcez\",\"category\":\"fwyfwlwxjwet\",\"supportTopicList\":[{},{},{},{}],\"analysisTypes\":[\"clafzvaylpt\",\"sqqw\",\"tcmwqkchc\",\"waxfewzjkj\"],\"type\":\"fdeqvhpsyl\",\"score\":14.799225},\"dataset\":[{\"table\":{},\"renderingProperties\":{}},{\"table\":{},\"renderingProperties\":{}}],\"status\":{\"message\":\"xzjrgy\",\"statusId\":2102626781},\"dataProviderMetadata\":{\"providerName\":\"xs\",\"propertyBag\":[{}]}},\"id\":\"ujgicgaaoe\",\"name\":\"ttaqutdew\",\"type\":\"mxswvruunzz\"},{\"properties\":{\"metadata\":{\"id\":\"kfkimrtixok\",\"name\":\"qyinl\",\"description\":\"epqw\",\"author\":\"xmonstshi\",\"category\":\"gvelfc\",\"supportTopicList\":[{},{},{}],\"analysisTypes\":[\"birdsvuwcobiegs\"],\"type\":\"ninwjizc\",\"score\":47.859776},\"dataset\":[{\"table\":{},\"renderingProperties\":{}},{\"table\":{},\"renderingProperties\":{}}],\"status\":{\"message\":\"tbxqmuluxlxq\",\"statusId\":1178102371},\"dataProviderMetadata\":{\"providerName\":\"sbycucrwnamikz\",\"propertyBag\":[{},{},{}]}},\"id\":\"bsmswziqgf\",\"name\":\"hokzrusw\",\"type\":\"vhczznvfby\"},{\"properties\":{\"metadata\":{\"id\":\"jww\",\"name\":\"z\",\"description\":\"mwmxqhndvnoamld\",\"author\":\"haohdjhhflzokxc\",\"category\":\"pelnjetag\",\"supportTopicList\":[{}],\"analysisTypes\":[\"atftgzpnpbsw\",\"e\",\"loccsrmozihm\",\"pgawtxxpkyjcxcjx\"],\"type\":\"ytfmpc\",\"score\":76.57327},\"dataset\":[{\"table\":{},\"renderingProperties\":{}},{\"table\":{},\"renderingProperties\":{}}],\"status\":{\"message\":\"gnoxuztrksx\",\"statusId\":1615864463},\"dataProviderMetadata\":{\"providerName\":\"cpfnznthjtwkja\",\"propertyBag\":[{},{}]}},\"id\":\"uzvoamktcqiosm\",\"name\":\"bzahgxqd\",\"type\":\"yrtltlaprltzkat\"}],\"nextLink\":\"jm\"}") - .toObject(DiagnosticsCollectionInner.class); - Assertions.assertEquals("clafzvaylpt", model.value().get(0).properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("xzjrgy", model.value().get(0).properties().status().message()); - Assertions.assertEquals(2102626781, model.value().get(0).properties().status().statusId()); - Assertions.assertEquals("xs", model.value().get(0).properties().dataProviderMetadata().providerName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticsCollectionInner model = new DiagnosticsCollectionInner().withValue(Arrays.asList( - new DiagnosticsInner().withProperties(new DiagnosticsProperties() - .withMetadata(new DiagnosticsDefinition() - .withSupportTopicList(Arrays.asList(new DiagnosticSupportTopic(), new DiagnosticSupportTopic(), - new DiagnosticSupportTopic(), new DiagnosticSupportTopic())) - .withAnalysisTypes(Arrays.asList("clafzvaylpt", "sqqw", "tcmwqkchc", "waxfewzjkj"))) - .withDataset(Arrays.asList( - new DiagnosticsDataApiResponse().withTable(new DiagnosticDataTableResponseObject()) - .withRenderingProperties(new DiagnosticRendering()), - new DiagnosticsDataApiResponse().withTable(new DiagnosticDataTableResponseObject()) - .withRenderingProperties(new DiagnosticRendering()))) - .withStatus(new DiagnosticsStatus().withMessage("xzjrgy").withStatusId(2102626781)) - .withDataProviderMetadata(new DiagnosticDataProviderMetadata().withProviderName("xs") - .withPropertyBag(Arrays.asList(new DiagnosticDataProviderMetadataPropertyBagItem())))), - new DiagnosticsInner() - .withProperties( - new DiagnosticsProperties() - .withMetadata(new DiagnosticsDefinition() - .withSupportTopicList(Arrays.asList(new DiagnosticSupportTopic(), - new DiagnosticSupportTopic(), new DiagnosticSupportTopic())) - .withAnalysisTypes(Arrays.asList("birdsvuwcobiegs"))) - .withDataset(Arrays.asList( - new DiagnosticsDataApiResponse().withTable(new DiagnosticDataTableResponseObject()) - .withRenderingProperties(new DiagnosticRendering()), - new DiagnosticsDataApiResponse().withTable(new DiagnosticDataTableResponseObject()) - .withRenderingProperties(new DiagnosticRendering()))) - .withStatus(new DiagnosticsStatus().withMessage("tbxqmuluxlxq").withStatusId(1178102371)) - .withDataProviderMetadata( - new DiagnosticDataProviderMetadata().withProviderName("sbycucrwnamikz") - .withPropertyBag( - Arrays.asList(new DiagnosticDataProviderMetadataPropertyBagItem(), - new DiagnosticDataProviderMetadataPropertyBagItem(), - new DiagnosticDataProviderMetadataPropertyBagItem())))), - new DiagnosticsInner().withProperties(new DiagnosticsProperties() - .withMetadata( - new DiagnosticsDefinition().withSupportTopicList(Arrays.asList(new DiagnosticSupportTopic())) - .withAnalysisTypes(Arrays.asList("atftgzpnpbsw", "e", "loccsrmozihm", "pgawtxxpkyjcxcjx"))) - .withDataset(Arrays.asList( - new DiagnosticsDataApiResponse().withTable(new DiagnosticDataTableResponseObject()) - .withRenderingProperties(new DiagnosticRendering()), - new DiagnosticsDataApiResponse().withTable(new DiagnosticDataTableResponseObject()) - .withRenderingProperties(new DiagnosticRendering()))) - .withStatus(new DiagnosticsStatus().withMessage("gnoxuztrksx").withStatusId(1615864463)) - .withDataProviderMetadata(new DiagnosticDataProviderMetadata().withProviderName("cpfnznthjtwkja") - .withPropertyBag(Arrays.asList(new DiagnosticDataProviderMetadataPropertyBagItem(), - new DiagnosticDataProviderMetadataPropertyBagItem())))))); - model = BinaryData.fromObject(model).toObject(DiagnosticsCollectionInner.class); - Assertions.assertEquals("clafzvaylpt", model.value().get(0).properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("xzjrgy", model.value().get(0).properties().status().message()); - Assertions.assertEquals(2102626781, model.value().get(0).properties().status().statusId()); - Assertions.assertEquals("xs", model.value().get(0).properties().dataProviderMetadata().providerName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsDataApiResponseTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsDataApiResponseTests.java deleted file mode 100644 index 4ba25d54583a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsDataApiResponseTests.java +++ /dev/null @@ -1,63 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseColumn; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseObject; -import com.azure.resourcemanager.appcontainers.models.DiagnosticRendering; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsDataApiResponse; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticsDataApiResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticsDataApiResponse model = BinaryData.fromString( - "{\"table\":{\"tableName\":\"cxlzhcoxovnekh\",\"columns\":[{\"columnName\":\"sfnrdtjxt\",\"dataType\":\"dcqtjvidttge\",\"columnType\":\"slvyjtcvuwkasi\"},{\"columnName\":\"esfuught\",\"dataType\":\"fecjxeygtuhx\",\"columnType\":\"cbuewmrswnjlxuz\"},{\"columnName\":\"wpusxjbaqehg\",\"dataType\":\"ohzjqatucoigeb\",\"columnType\":\"cnwfepbnwgfmxjg\"},{\"columnName\":\"bjb\",\"dataType\":\"lfgtdysnaquflqbc\",\"columnType\":\"hamzjrwdkqze\"}],\"rows\":[\"dataleziunjxdfzant\",\"datawcegyamlbn\",\"dataeqacjjvpilguooq\"]},\"renderingProperties\":{\"type\":255263020,\"title\":\"itgueiookjbs\",\"description\":\"rtdtpdelq\",\"isVisible\":false}}") - .toObject(DiagnosticsDataApiResponse.class); - Assertions.assertEquals("cxlzhcoxovnekh", model.table().tableName()); - Assertions.assertEquals("sfnrdtjxt", model.table().columns().get(0).columnName()); - Assertions.assertEquals("dcqtjvidttge", model.table().columns().get(0).dataType()); - Assertions.assertEquals("slvyjtcvuwkasi", model.table().columns().get(0).columnType()); - Assertions.assertEquals(255263020, model.renderingProperties().type()); - Assertions.assertEquals("itgueiookjbs", model.renderingProperties().title()); - Assertions.assertEquals("rtdtpdelq", model.renderingProperties().description()); - Assertions.assertEquals(false, model.renderingProperties().isVisible()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticsDataApiResponse model = new DiagnosticsDataApiResponse() - .withTable(new DiagnosticDataTableResponseObject().withTableName("cxlzhcoxovnekh") - .withColumns(Arrays.asList( - new DiagnosticDataTableResponseColumn().withColumnName("sfnrdtjxt") - .withDataType("dcqtjvidttge") - .withColumnType("slvyjtcvuwkasi"), - new DiagnosticDataTableResponseColumn().withColumnName("esfuught") - .withDataType("fecjxeygtuhx") - .withColumnType("cbuewmrswnjlxuz"), - new DiagnosticDataTableResponseColumn().withColumnName("wpusxjbaqehg") - .withDataType("ohzjqatucoigeb") - .withColumnType("cnwfepbnwgfmxjg"), - new DiagnosticDataTableResponseColumn().withColumnName("bjb") - .withDataType("lfgtdysnaquflqbc") - .withColumnType("hamzjrwdkqze"))) - .withRows(Arrays.asList("dataleziunjxdfzant", "datawcegyamlbn", "dataeqacjjvpilguooq"))) - .withRenderingProperties(new DiagnosticRendering().withType(255263020) - .withTitle("itgueiookjbs") - .withDescription("rtdtpdelq") - .withIsVisible(false)); - model = BinaryData.fromObject(model).toObject(DiagnosticsDataApiResponse.class); - Assertions.assertEquals("cxlzhcoxovnekh", model.table().tableName()); - Assertions.assertEquals("sfnrdtjxt", model.table().columns().get(0).columnName()); - Assertions.assertEquals("dcqtjvidttge", model.table().columns().get(0).dataType()); - Assertions.assertEquals("slvyjtcvuwkasi", model.table().columns().get(0).columnType()); - Assertions.assertEquals(255263020, model.renderingProperties().type()); - Assertions.assertEquals("itgueiookjbs", model.renderingProperties().title()); - Assertions.assertEquals("rtdtpdelq", model.renderingProperties().description()); - Assertions.assertEquals(false, model.renderingProperties().isVisible()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsDefinitionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsDefinitionTests.java deleted file mode 100644 index 8beb6d7bda0c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsDefinitionTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsDefinition; -import com.azure.resourcemanager.appcontainers.models.DiagnosticSupportTopic; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticsDefinitionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticsDefinition model = BinaryData.fromString( - "{\"id\":\"ahmnxhkxjqirw\",\"name\":\"eooxffifh\",\"description\":\"rsnewmozqvbubqma\",\"author\":\"sycxhxzgaz\",\"category\":\"abo\",\"supportTopicList\":[{\"id\":\"fqhppubowsep\",\"pesId\":\"g\"},{\"id\":\"tdherngbtcjuahok\",\"pesId\":\"obkauxofsh\"},{\"id\":\"hwpnulaiywzejywh\",\"pesId\":\"wkojpllndnpd\"}],\"analysisTypes\":[\"qafgfugsnnfhyet\",\"fypococtfjgti\",\"rjvzuyt\",\"rmlmuowo\"],\"type\":\"au\",\"score\":53.252647}") - .toObject(DiagnosticsDefinition.class); - Assertions.assertEquals("qafgfugsnnfhyet", model.analysisTypes().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticsDefinition model = new DiagnosticsDefinition() - .withSupportTopicList( - Arrays.asList(new DiagnosticSupportTopic(), new DiagnosticSupportTopic(), new DiagnosticSupportTopic())) - .withAnalysisTypes(Arrays.asList("qafgfugsnnfhyet", "fypococtfjgti", "rjvzuyt", "rmlmuowo")); - model = BinaryData.fromObject(model).toObject(DiagnosticsDefinition.class); - Assertions.assertEquals("qafgfugsnnfhyet", model.analysisTypes().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsInnerTests.java deleted file mode 100644 index f83ec2da8348..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsInnerTests.java +++ /dev/null @@ -1,85 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DiagnosticsInner; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataProviderMetadata; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseColumn; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseObject; -import com.azure.resourcemanager.appcontainers.models.DiagnosticRendering; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsDataApiResponse; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsDefinition; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsProperties; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsStatus; -import com.azure.resourcemanager.appcontainers.models.DiagnosticSupportTopic; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticsInner model = BinaryData.fromString( - "{\"properties\":{\"metadata\":{\"id\":\"s\",\"name\":\"eq\",\"description\":\"arvlagunbt\",\"author\":\"ebwlnbmhyreeudzq\",\"category\":\"bpdqmjxlyy\",\"supportTopicList\":[{\"id\":\"ouwtl\",\"pesId\":\"jyuojqtobaxkjeyt\"},{\"id\":\"lbfjkwr\",\"pesId\":\"nkqbhsyrq\"},{\"id\":\"jqhden\",\"pesId\":\"ulkpakd\"}],\"analysisTypes\":[\"mjnnawtq\",\"bpxuckpggqoweyi\",\"dhlisngwflqqmpi\"],\"type\":\"uwnpqxpxiwfcng\",\"score\":17.444016},\"dataset\":[{\"table\":{\"tableName\":\"xtmkzjvkviir\",\"columns\":[{},{},{},{}],\"rows\":[\"datawsdpgratzvzb\",\"datalbyvictctbrxkjzw\"]},\"renderingProperties\":{\"type\":734526411,\"title\":\"mshkwfbkgo\",\"description\":\"wopdbydpiz\",\"isVisible\":true}}],\"status\":{\"message\":\"apxbi\",\"statusId\":923780636},\"dataProviderMetadata\":{\"providerName\":\"j\",\"propertyBag\":[{\"name\":\"mfcttux\",\"value\":\"yilflqoiquvrehmr\"},{\"name\":\"hvsujztc\",\"value\":\"tqjtwhauu\"},{\"name\":\"prnjletlxsmr\",\"value\":\"do\"},{\"name\":\"fa\",\"value\":\"waziy\"}]}},\"id\":\"nlqwzdvpiwhx\",\"name\":\"szdtmaajquh\",\"type\":\"xylrjvmtygjbmz\"}") - .toObject(DiagnosticsInner.class); - Assertions.assertEquals("mjnnawtq", model.properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("xtmkzjvkviir", model.properties().dataset().get(0).table().tableName()); - Assertions.assertEquals(734526411, model.properties().dataset().get(0).renderingProperties().type()); - Assertions.assertEquals("mshkwfbkgo", model.properties().dataset().get(0).renderingProperties().title()); - Assertions.assertEquals("wopdbydpiz", model.properties().dataset().get(0).renderingProperties().description()); - Assertions.assertEquals(true, model.properties().dataset().get(0).renderingProperties().isVisible()); - Assertions.assertEquals("apxbi", model.properties().status().message()); - Assertions.assertEquals(923780636, model.properties().status().statusId()); - Assertions.assertEquals("j", model.properties().dataProviderMetadata().providerName()); - Assertions.assertEquals("mfcttux", model.properties().dataProviderMetadata().propertyBag().get(0).name()); - Assertions.assertEquals("yilflqoiquvrehmr", - model.properties().dataProviderMetadata().propertyBag().get(0).value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticsInner model - = new DiagnosticsInner() - .withProperties(new DiagnosticsProperties() - .withMetadata(new DiagnosticsDefinition() - .withSupportTopicList(Arrays.asList(new DiagnosticSupportTopic(), new DiagnosticSupportTopic(), - new DiagnosticSupportTopic())) - .withAnalysisTypes(Arrays.asList("mjnnawtq", "bpxuckpggqoweyi", "dhlisngwflqqmpi"))) - .withDataset(Arrays.asList(new DiagnosticsDataApiResponse() - .withTable(new DiagnosticDataTableResponseObject().withTableName("xtmkzjvkviir") - .withColumns(Arrays.asList(new DiagnosticDataTableResponseColumn(), - new DiagnosticDataTableResponseColumn(), new DiagnosticDataTableResponseColumn(), - new DiagnosticDataTableResponseColumn())) - .withRows(Arrays.asList("datawsdpgratzvzb", "datalbyvictctbrxkjzw"))) - .withRenderingProperties(new DiagnosticRendering().withType(734526411) - .withTitle("mshkwfbkgo") - .withDescription("wopdbydpiz") - .withIsVisible(true)))) - .withStatus(new DiagnosticsStatus().withMessage("apxbi").withStatusId(923780636)) - .withDataProviderMetadata(new DiagnosticDataProviderMetadata().withProviderName("j") - .withPropertyBag(Arrays.asList(new DiagnosticDataProviderMetadataPropertyBagItem() - .withName("mfcttux") - .withValue("yilflqoiquvrehmr"), - new DiagnosticDataProviderMetadataPropertyBagItem().withName("hvsujztc") - .withValue("tqjtwhauu"), - new DiagnosticDataProviderMetadataPropertyBagItem().withName("prnjletlxsmr") - .withValue("do"), - new DiagnosticDataProviderMetadataPropertyBagItem().withName("fa").withValue("waziy"))))); - model = BinaryData.fromObject(model).toObject(DiagnosticsInner.class); - Assertions.assertEquals("mjnnawtq", model.properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("xtmkzjvkviir", model.properties().dataset().get(0).table().tableName()); - Assertions.assertEquals(734526411, model.properties().dataset().get(0).renderingProperties().type()); - Assertions.assertEquals("mshkwfbkgo", model.properties().dataset().get(0).renderingProperties().title()); - Assertions.assertEquals("wopdbydpiz", model.properties().dataset().get(0).renderingProperties().description()); - Assertions.assertEquals(true, model.properties().dataset().get(0).renderingProperties().isVisible()); - Assertions.assertEquals("apxbi", model.properties().status().message()); - Assertions.assertEquals(923780636, model.properties().status().statusId()); - Assertions.assertEquals("j", model.properties().dataProviderMetadata().providerName()); - Assertions.assertEquals("mfcttux", model.properties().dataProviderMetadata().propertyBag().get(0).name()); - Assertions.assertEquals("yilflqoiquvrehmr", - model.properties().dataProviderMetadata().propertyBag().get(0).value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsPropertiesTests.java deleted file mode 100644 index 04bc9a1bafae..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsPropertiesTests.java +++ /dev/null @@ -1,104 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataProviderMetadata; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseColumn; -import com.azure.resourcemanager.appcontainers.models.DiagnosticDataTableResponseObject; -import com.azure.resourcemanager.appcontainers.models.DiagnosticRendering; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsDataApiResponse; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsDefinition; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsProperties; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsStatus; -import com.azure.resourcemanager.appcontainers.models.DiagnosticSupportTopic; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticsPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticsProperties model = BinaryData.fromString( - "{\"metadata\":{\"id\":\"ps\",\"name\":\"hckfkyjpmspbps\",\"description\":\"fppyogtieyujtvcz\",\"author\":\"n\",\"category\":\"rxmunjdxvgln\",\"supportTopicList\":[{\"id\":\"xpaglqivbgkc\",\"pesId\":\"hpzvuqdflvoniyp\"}],\"analysisTypes\":[\"bcpzgpxtivh\",\"knidib\",\"qjxgpnrhgovfgp\"],\"type\":\"qmhhaowj\",\"score\":86.1265},\"dataset\":[{\"table\":{\"tableName\":\"rqzdfuydzvkfvx\",\"columns\":[{\"columnName\":\"xqpswok\",\"dataType\":\"khlg\",\"columnType\":\"hbemzq\"}],\"rows\":[\"datazu\"]},\"renderingProperties\":{\"type\":1115368168,\"title\":\"lxxhljfp\",\"description\":\"icrmnzh\",\"isVisible\":true}},{\"table\":{\"tableName\":\"j\",\"columns\":[{\"columnName\":\"qcbfrmbodths\",\"dataType\":\"gvriibakclac\",\"columnType\":\"rnxousxauzlwvsg\"},{\"columnName\":\"ohqfzizv\",\"dataType\":\"mmkjsvthnwpztek\",\"columnType\":\"mribiat\"}],\"rows\":[\"datalu\",\"datafotang\",\"datafhnykzcugs\",\"datavxwlmzqwmvtxnj\"]},\"renderingProperties\":{\"type\":1038183797,\"title\":\"qudtcvclx\",\"description\":\"pdkvg\",\"isVisible\":false}},{\"table\":{\"tableName\":\"yjibuzphdugne\",\"columns\":[{\"columnName\":\"gox\",\"dataType\":\"iuqhibtozipqwj\",\"columnType\":\"mur\"}],\"rows\":[\"datag\"]},\"renderingProperties\":{\"type\":1207642443,\"title\":\"vqylkmqpzoyhl\",\"description\":\"cgwgcloxoebqinji\",\"isVisible\":false}}],\"status\":{\"message\":\"ujqlafcbahh\",\"statusId\":1194724907},\"dataProviderMetadata\":{\"providerName\":\"o\",\"propertyBag\":[{\"name\":\"p\",\"value\":\"lkmkkholvdndvi\"},{\"name\":\"ogphuartvtiu\",\"value\":\"efchn\"}]}}") - .toObject(DiagnosticsProperties.class); - Assertions.assertEquals("bcpzgpxtivh", model.metadata().analysisTypes().get(0)); - Assertions.assertEquals("rqzdfuydzvkfvx", model.dataset().get(0).table().tableName()); - Assertions.assertEquals("xqpswok", model.dataset().get(0).table().columns().get(0).columnName()); - Assertions.assertEquals("khlg", model.dataset().get(0).table().columns().get(0).dataType()); - Assertions.assertEquals("hbemzq", model.dataset().get(0).table().columns().get(0).columnType()); - Assertions.assertEquals(1115368168, model.dataset().get(0).renderingProperties().type()); - Assertions.assertEquals("lxxhljfp", model.dataset().get(0).renderingProperties().title()); - Assertions.assertEquals("icrmnzh", model.dataset().get(0).renderingProperties().description()); - Assertions.assertEquals(true, model.dataset().get(0).renderingProperties().isVisible()); - Assertions.assertEquals("ujqlafcbahh", model.status().message()); - Assertions.assertEquals(1194724907, model.status().statusId()); - Assertions.assertEquals("o", model.dataProviderMetadata().providerName()); - Assertions.assertEquals("p", model.dataProviderMetadata().propertyBag().get(0).name()); - Assertions.assertEquals("lkmkkholvdndvi", model.dataProviderMetadata().propertyBag().get(0).value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticsProperties model = new DiagnosticsProperties() - .withMetadata(new DiagnosticsDefinition().withSupportTopicList(Arrays.asList(new DiagnosticSupportTopic())) - .withAnalysisTypes(Arrays.asList("bcpzgpxtivh", "knidib", "qjxgpnrhgovfgp"))) - .withDataset(Arrays.asList( - new DiagnosticsDataApiResponse() - .withTable(new DiagnosticDataTableResponseObject().withTableName("rqzdfuydzvkfvx") - .withColumns(Arrays.asList(new DiagnosticDataTableResponseColumn().withColumnName("xqpswok") - .withDataType("khlg") - .withColumnType("hbemzq"))) - .withRows(Arrays.asList("datazu"))) - .withRenderingProperties(new DiagnosticRendering().withType(1115368168) - .withTitle("lxxhljfp") - .withDescription("icrmnzh") - .withIsVisible(true)), - new DiagnosticsDataApiResponse() - .withTable(new DiagnosticDataTableResponseObject().withTableName("j") - .withColumns(Arrays.asList( - new DiagnosticDataTableResponseColumn().withColumnName("qcbfrmbodths") - .withDataType("gvriibakclac") - .withColumnType("rnxousxauzlwvsg"), - new DiagnosticDataTableResponseColumn().withColumnName("ohqfzizv") - .withDataType("mmkjsvthnwpztek") - .withColumnType("mribiat"))) - .withRows(Arrays.asList("datalu", "datafotang", "datafhnykzcugs", "datavxwlmzqwmvtxnj"))) - .withRenderingProperties(new DiagnosticRendering().withType(1038183797) - .withTitle("qudtcvclx") - .withDescription("pdkvg") - .withIsVisible(false)), - new DiagnosticsDataApiResponse() - .withTable(new DiagnosticDataTableResponseObject().withTableName("yjibuzphdugne") - .withColumns(Arrays.asList(new DiagnosticDataTableResponseColumn().withColumnName("gox") - .withDataType("iuqhibtozipqwj") - .withColumnType("mur"))) - .withRows(Arrays.asList("datag"))) - .withRenderingProperties(new DiagnosticRendering().withType(1207642443) - .withTitle("vqylkmqpzoyhl") - .withDescription("cgwgcloxoebqinji") - .withIsVisible(false)))) - .withStatus(new DiagnosticsStatus().withMessage("ujqlafcbahh").withStatusId(1194724907)) - .withDataProviderMetadata(new DiagnosticDataProviderMetadata().withProviderName("o") - .withPropertyBag(Arrays.asList( - new DiagnosticDataProviderMetadataPropertyBagItem().withName("p").withValue("lkmkkholvdndvi"), - new DiagnosticDataProviderMetadataPropertyBagItem().withName("ogphuartvtiu").withValue("efchn")))); - model = BinaryData.fromObject(model).toObject(DiagnosticsProperties.class); - Assertions.assertEquals("bcpzgpxtivh", model.metadata().analysisTypes().get(0)); - Assertions.assertEquals("rqzdfuydzvkfvx", model.dataset().get(0).table().tableName()); - Assertions.assertEquals("xqpswok", model.dataset().get(0).table().columns().get(0).columnName()); - Assertions.assertEquals("khlg", model.dataset().get(0).table().columns().get(0).dataType()); - Assertions.assertEquals("hbemzq", model.dataset().get(0).table().columns().get(0).columnType()); - Assertions.assertEquals(1115368168, model.dataset().get(0).renderingProperties().type()); - Assertions.assertEquals("lxxhljfp", model.dataset().get(0).renderingProperties().title()); - Assertions.assertEquals("icrmnzh", model.dataset().get(0).renderingProperties().description()); - Assertions.assertEquals(true, model.dataset().get(0).renderingProperties().isVisible()); - Assertions.assertEquals("ujqlafcbahh", model.status().message()); - Assertions.assertEquals(1194724907, model.status().statusId()); - Assertions.assertEquals("o", model.dataProviderMetadata().providerName()); - Assertions.assertEquals("p", model.dataProviderMetadata().propertyBag().get(0).name()); - Assertions.assertEquals("lkmkkholvdndvi", model.dataProviderMetadata().propertyBag().get(0).value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsStatusTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsStatusTests.java deleted file mode 100644 index 9d8021b38c1c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DiagnosticsStatusTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsStatus; -import org.junit.jupiter.api.Assertions; - -public final class DiagnosticsStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DiagnosticsStatus model = BinaryData.fromString("{\"message\":\"tvwkpqhjpenu\",\"statusId\":1710915481}") - .toObject(DiagnosticsStatus.class); - Assertions.assertEquals("tvwkpqhjpenu", model.message()); - Assertions.assertEquals(1710915481, model.statusId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DiagnosticsStatus model = new DiagnosticsStatus().withMessage("tvwkpqhjpenu").withStatusId(1710915481); - model = BinaryData.fromObject(model).toObject(DiagnosticsStatus.class); - Assertions.assertEquals("tvwkpqhjpenu", model.message()); - Assertions.assertEquals(1710915481, model.statusId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentConfigurationPropertyTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentConfigurationPropertyTests.java deleted file mode 100644 index 2a6f7439bb4e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentConfigurationPropertyTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentConfigurationProperty; -import org.junit.jupiter.api.Assertions; - -public final class DotNetComponentConfigurationPropertyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DotNetComponentConfigurationProperty model - = BinaryData.fromString("{\"propertyName\":\"c\",\"value\":\"zujksrlsmdes\"}") - .toObject(DotNetComponentConfigurationProperty.class); - Assertions.assertEquals("c", model.propertyName()); - Assertions.assertEquals("zujksrlsmdes", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DotNetComponentConfigurationProperty model - = new DotNetComponentConfigurationProperty().withPropertyName("c").withValue("zujksrlsmdes"); - model = BinaryData.fromObject(model).toObject(DotNetComponentConfigurationProperty.class); - Assertions.assertEquals("c", model.propertyName()); - Assertions.assertEquals("zujksrlsmdes", model.value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentInnerTests.java deleted file mode 100644 index 64d1ea7a1eb9..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DotNetComponentInner; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentServiceBind; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DotNetComponentInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DotNetComponentInner model = BinaryData.fromString( - "{\"properties\":{\"componentType\":\"AspireDashboard\",\"provisioningState\":\"InProgress\",\"configurations\":[{\"propertyName\":\"hxogjggsvoujkxi\",\"value\":\"afhrkmdyomk\"},{\"propertyName\":\"bv\",\"value\":\"hd\"}],\"serviceBinds\":[{\"name\":\"pwpgddei\",\"serviceId\":\"wzovgk\"}]},\"id\":\"muikjcjcaztbws\",\"name\":\"sqowxwc\",\"type\":\"mlikytw\"}") - .toObject(DotNetComponentInner.class); - Assertions.assertEquals(DotNetComponentType.ASPIRE_DASHBOARD, model.componentType()); - Assertions.assertEquals("hxogjggsvoujkxi", model.configurations().get(0).propertyName()); - Assertions.assertEquals("afhrkmdyomk", model.configurations().get(0).value()); - Assertions.assertEquals("pwpgddei", model.serviceBinds().get(0).name()); - Assertions.assertEquals("wzovgk", model.serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DotNetComponentInner model = new DotNetComponentInner().withComponentType(DotNetComponentType.ASPIRE_DASHBOARD) - .withConfigurations(Arrays.asList( - new DotNetComponentConfigurationProperty().withPropertyName("hxogjggsvoujkxi").withValue("afhrkmdyomk"), - new DotNetComponentConfigurationProperty().withPropertyName("bv").withValue("hd"))) - .withServiceBinds( - Arrays.asList(new DotNetComponentServiceBind().withName("pwpgddei").withServiceId("wzovgk"))); - model = BinaryData.fromObject(model).toObject(DotNetComponentInner.class); - Assertions.assertEquals(DotNetComponentType.ASPIRE_DASHBOARD, model.componentType()); - Assertions.assertEquals("hxogjggsvoujkxi", model.configurations().get(0).propertyName()); - Assertions.assertEquals("afhrkmdyomk", model.configurations().get(0).value()); - Assertions.assertEquals("pwpgddei", model.serviceBinds().get(0).name()); - Assertions.assertEquals("wzovgk", model.serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentPropertiesTests.java deleted file mode 100644 index 54a67b1886ee..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentPropertiesTests.java +++ /dev/null @@ -1,46 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DotNetComponentProperties; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentServiceBind; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DotNetComponentPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DotNetComponentProperties model = BinaryData.fromString( - "{\"componentType\":\"AspireDashboard\",\"provisioningState\":\"Canceled\",\"configurations\":[{\"propertyName\":\"cvejyfdvlvhbwrn\",\"value\":\"tgddpqthehnmnaoy\"}],\"serviceBinds\":[{\"name\":\"oe\",\"serviceId\":\"wankltytmhdroznn\"},{\"name\":\"rlktgjcsggu\",\"serviceId\":\"eml\"},{\"name\":\"waeeczgfb\",\"serviceId\":\"klelssxb\"}]}") - .toObject(DotNetComponentProperties.class); - Assertions.assertEquals(DotNetComponentType.ASPIRE_DASHBOARD, model.componentType()); - Assertions.assertEquals("cvejyfdvlvhbwrn", model.configurations().get(0).propertyName()); - Assertions.assertEquals("tgddpqthehnmnaoy", model.configurations().get(0).value()); - Assertions.assertEquals("oe", model.serviceBinds().get(0).name()); - Assertions.assertEquals("wankltytmhdroznn", model.serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DotNetComponentProperties model - = new DotNetComponentProperties().withComponentType(DotNetComponentType.ASPIRE_DASHBOARD) - .withConfigurations( - Arrays.asList(new DotNetComponentConfigurationProperty().withPropertyName("cvejyfdvlvhbwrn") - .withValue("tgddpqthehnmnaoy"))) - .withServiceBinds( - Arrays.asList(new DotNetComponentServiceBind().withName("oe").withServiceId("wankltytmhdroznn"), - new DotNetComponentServiceBind().withName("rlktgjcsggu").withServiceId("eml"), - new DotNetComponentServiceBind().withName("waeeczgfb").withServiceId("klelssxb"))); - model = BinaryData.fromObject(model).toObject(DotNetComponentProperties.class); - Assertions.assertEquals(DotNetComponentType.ASPIRE_DASHBOARD, model.componentType()); - Assertions.assertEquals("cvejyfdvlvhbwrn", model.configurations().get(0).propertyName()); - Assertions.assertEquals("tgddpqthehnmnaoy", model.configurations().get(0).value()); - Assertions.assertEquals("oe", model.serviceBinds().get(0).name()); - Assertions.assertEquals("wankltytmhdroznn", model.serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentServiceBindTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentServiceBindTests.java deleted file mode 100644 index 6bd35f8b8ecc..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentServiceBindTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentServiceBind; -import org.junit.jupiter.api.Assertions; - -public final class DotNetComponentServiceBindTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DotNetComponentServiceBind model - = BinaryData.fromString("{\"name\":\"lpvmjcdoewbidy\",\"serviceId\":\"eowxvgpi\"}") - .toObject(DotNetComponentServiceBind.class); - Assertions.assertEquals("lpvmjcdoewbidy", model.name()); - Assertions.assertEquals("eowxvgpi", model.serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DotNetComponentServiceBind model - = new DotNetComponentServiceBind().withName("lpvmjcdoewbidy").withServiceId("eowxvgpi"); - model = BinaryData.fromObject(model).toObject(DotNetComponentServiceBind.class); - Assertions.assertEquals("lpvmjcdoewbidy", model.name()); - Assertions.assertEquals("eowxvgpi", model.serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCollectionTests.java deleted file mode 100644 index 9313cf1c8c32..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCollectionTests.java +++ /dev/null @@ -1,59 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.DotNetComponentInner; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentsCollection; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentServiceBind; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DotNetComponentsCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DotNetComponentsCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"componentType\":\"AspireDashboard\",\"provisioningState\":\"Canceled\",\"configurations\":[{\"propertyName\":\"chl\",\"value\":\"ltxdwhmozu\"},{\"propertyName\":\"zvlnsnnjz\",\"value\":\"afolpymwamxqzrag\"},{\"propertyName\":\"dphtv\",\"value\":\"lajv\"},{\"propertyName\":\"jchcsrlzknmzla\",\"value\":\"updwv\"}],\"serviceBinds\":[{\"name\":\"nzqtpjhmqrhvt\",\"serviceId\":\"aiwdcxsmlzzhz\"},{\"name\":\"xetlgydlhqv\",\"serviceId\":\"npxybafiq\"}]},\"id\":\"aarbgjekg\",\"name\":\"klbyulidwcw\",\"type\":\"mzegjon\"},{\"properties\":{\"componentType\":\"AspireDashboard\",\"provisioningState\":\"Succeeded\",\"configurations\":[{\"propertyName\":\"qzbrf\",\"value\":\"pzhz\"},{\"propertyName\":\"ksjcitdigs\",\"value\":\"dglj\"},{\"propertyName\":\"keuachtomf\",\"value\":\"ytswfp\"},{\"propertyName\":\"dgycxnmskwhqjjy\",\"value\":\"urlpshh\"}],\"serviceBinds\":[{\"name\":\"dwqslsrhmpqvw\",\"serviceId\":\"kondcb\"},{\"name\":\"imuvqejosovyrrl\",\"serviceId\":\"esi\"}]},\"id\":\"qtljqobbpihehc\",\"name\":\"cy\",\"type\":\"mrqbrjbbmpxdlv\"}],\"nextLink\":\"frexcrseqw\"}") - .toObject(DotNetComponentsCollection.class); - Assertions.assertEquals(DotNetComponentType.ASPIRE_DASHBOARD, model.value().get(0).componentType()); - Assertions.assertEquals("chl", model.value().get(0).configurations().get(0).propertyName()); - Assertions.assertEquals("ltxdwhmozu", model.value().get(0).configurations().get(0).value()); - Assertions.assertEquals("nzqtpjhmqrhvt", model.value().get(0).serviceBinds().get(0).name()); - Assertions.assertEquals("aiwdcxsmlzzhz", model.value().get(0).serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DotNetComponentsCollection model = new DotNetComponentsCollection().withValue(Arrays.asList( - new DotNetComponentInner().withComponentType(DotNetComponentType.ASPIRE_DASHBOARD) - .withConfigurations(Arrays.asList( - new DotNetComponentConfigurationProperty().withPropertyName("chl").withValue("ltxdwhmozu"), - new DotNetComponentConfigurationProperty().withPropertyName("zvlnsnnjz") - .withValue("afolpymwamxqzrag"), - new DotNetComponentConfigurationProperty().withPropertyName("dphtv").withValue("lajv"), - new DotNetComponentConfigurationProperty().withPropertyName("jchcsrlzknmzla").withValue("updwv"))) - .withServiceBinds(Arrays.asList( - new DotNetComponentServiceBind().withName("nzqtpjhmqrhvt").withServiceId("aiwdcxsmlzzhz"), - new DotNetComponentServiceBind().withName("xetlgydlhqv").withServiceId("npxybafiq"))), - new DotNetComponentInner().withComponentType(DotNetComponentType.ASPIRE_DASHBOARD) - .withConfigurations(Arrays.asList( - new DotNetComponentConfigurationProperty().withPropertyName("qzbrf").withValue("pzhz"), - new DotNetComponentConfigurationProperty().withPropertyName("ksjcitdigs").withValue("dglj"), - new DotNetComponentConfigurationProperty().withPropertyName("keuachtomf").withValue("ytswfp"), - new DotNetComponentConfigurationProperty().withPropertyName("dgycxnmskwhqjjy") - .withValue("urlpshh"))) - .withServiceBinds( - Arrays.asList(new DotNetComponentServiceBind().withName("dwqslsrhmpqvw").withServiceId("kondcb"), - new DotNetComponentServiceBind().withName("imuvqejosovyrrl").withServiceId("esi"))))); - model = BinaryData.fromObject(model).toObject(DotNetComponentsCollection.class); - Assertions.assertEquals(DotNetComponentType.ASPIRE_DASHBOARD, model.value().get(0).componentType()); - Assertions.assertEquals("chl", model.value().get(0).configurations().get(0).propertyName()); - Assertions.assertEquals("ltxdwhmozu", model.value().get(0).configurations().get(0).value()); - Assertions.assertEquals("nzqtpjhmqrhvt", model.value().get(0).serviceBinds().get(0).name()); - Assertions.assertEquals("aiwdcxsmlzzhz", model.value().get(0).serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCreateOrUpdateMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCreateOrUpdateMockTests.java deleted file mode 100644 index 8d170fd0ef38..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,57 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DotNetComponent; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentServiceBind; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentType; -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 DotNetComponentsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"componentType\":\"AspireDashboard\",\"provisioningState\":\"Succeeded\",\"configurations\":[{\"propertyName\":\"wgzygbaduvecovsd\",\"value\":\"zrtdbakr\"}],\"serviceBinds\":[{\"name\":\"fvppkeqsifj\",\"serviceId\":\"lng\"}]},\"id\":\"nhr\",\"name\":\"ombcdtajdopggo\",\"type\":\"wj\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DotNetComponent response = manager.dotNetComponents() - .define("zcntogffjwajnrtw") - .withExistingManagedEnvironment("fvezefk", "kqtwqlepjjzkcasf") - .withComponentType(DotNetComponentType.ASPIRE_DASHBOARD) - .withConfigurations(Arrays.asList( - new DotNetComponentConfigurationProperty().withPropertyName("awostfzknhr").withValue("jqncfvdscnh"), - new DotNetComponentConfigurationProperty().withPropertyName("vwfnqqwypvn").withValue("wbgodtggrssg"), - new DotNetComponentConfigurationProperty().withPropertyName("fk").withValue("njm"))) - .withServiceBinds(Arrays.asList(new DotNetComponentServiceBind().withName("ecvztsc").withServiceId("mu"), - new DotNetComponentServiceBind().withName("ictdscnkzzo").withServiceId("rddclzeqozrehlb"), - new DotNetComponentServiceBind().withName("ixbnj").withServiceId("vzyue"), - new DotNetComponentServiceBind().withName("z").withServiceId("ynp"))) - .create(); - - Assertions.assertEquals(DotNetComponentType.ASPIRE_DASHBOARD, response.componentType()); - Assertions.assertEquals("wgzygbaduvecovsd", response.configurations().get(0).propertyName()); - Assertions.assertEquals("zrtdbakr", response.configurations().get(0).value()); - Assertions.assertEquals("fvppkeqsifj", response.serviceBinds().get(0).name()); - Assertions.assertEquals("lng", response.serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsGetWithResponseMockTests.java deleted file mode 100644 index 5c3ad3996358..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsGetWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DotNetComponent; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentType; -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 DotNetComponentsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"componentType\":\"AspireDashboard\",\"provisioningState\":\"Deleting\",\"configurations\":[{\"propertyName\":\"fnkwmygjjekrknf\",\"value\":\"ugjqyckgtxkrdt\"},{\"propertyName\":\"crcjdklotcsubmz\",\"value\":\"nsvob\"}],\"serviceBinds\":[{\"name\":\"fpw\",\"serviceId\":\"yslb\"},{\"name\":\"glmnnk\",\"serviceId\":\"ayqshwyqxridttbs\"}]},\"id\":\"jmkgxqwqueuuylzt\",\"name\":\"z\",\"type\":\"izevjyk\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DotNetComponent response = manager.dotNetComponents() - .getWithResponse("mczfedyuepsvplt", "dajjvywe", "cfkumcfjxo", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(DotNetComponentType.ASPIRE_DASHBOARD, response.componentType()); - Assertions.assertEquals("fnkwmygjjekrknf", response.configurations().get(0).propertyName()); - Assertions.assertEquals("ugjqyckgtxkrdt", response.configurations().get(0).value()); - Assertions.assertEquals("fpw", response.serviceBinds().get(0).name()); - Assertions.assertEquals("yslb", response.serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsListMockTests.java deleted file mode 100644 index 2836c6935307..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DotNetComponentsListMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DotNetComponent; -import com.azure.resourcemanager.appcontainers.models.DotNetComponentType; -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 DotNetComponentsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"componentType\":\"AspireDashboard\",\"provisioningState\":\"Succeeded\",\"configurations\":[{\"propertyName\":\"ypffmnoiicsudyh\",\"value\":\"jjtalxrdsj\"}],\"serviceBinds\":[{\"name\":\"uqwg\",\"serviceId\":\"xxhdodpjwybl\"},{\"name\":\"bdmvsby\",\"serviceId\":\"aelqpvekmkwjf\"},{\"name\":\"tlo\",\"serviceId\":\"dusxurs\"},{\"name\":\"v\",\"serviceId\":\"cjkcoqwczsyiqri\"}]},\"id\":\"wihvaangqtnh\",\"name\":\"rfdmfdvbbaexx\",\"type\":\"fwtgdfkkauigvmua\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.dotNetComponents().list("glskakddi", "ahzllrqmtlpb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(DotNetComponentType.ASPIRE_DASHBOARD, response.iterator().next().componentType()); - Assertions.assertEquals("ypffmnoiicsudyh", response.iterator().next().configurations().get(0).propertyName()); - Assertions.assertEquals("jjtalxrdsj", response.iterator().next().configurations().get(0).value()); - Assertions.assertEquals("uqwg", response.iterator().next().serviceBinds().get(0).name()); - Assertions.assertEquals("xxhdodpjwybl", response.iterator().next().serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DynamicPoolConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DynamicPoolConfigurationTests.java deleted file mode 100644 index 002d730fc646..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/DynamicPoolConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.DynamicPoolConfiguration; -import com.azure.resourcemanager.appcontainers.models.ExecutionType; -import org.junit.jupiter.api.Assertions; - -public final class DynamicPoolConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicPoolConfiguration model - = BinaryData.fromString("{\"executionType\":\"Timed\",\"cooldownPeriodInSeconds\":1285762272}") - .toObject(DynamicPoolConfiguration.class); - Assertions.assertEquals(ExecutionType.TIMED, model.executionType()); - Assertions.assertEquals(1285762272, model.cooldownPeriodInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicPoolConfiguration model = new DynamicPoolConfiguration().withExecutionType(ExecutionType.TIMED) - .withCooldownPeriodInSeconds(1285762272); - model = BinaryData.fromObject(model).toObject(DynamicPoolConfiguration.class); - Assertions.assertEquals(ExecutionType.TIMED, model.executionType()); - Assertions.assertEquals(1285762272, model.cooldownPeriodInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/EnvironmentVariableTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/EnvironmentVariableTests.java deleted file mode 100644 index e1434bf5a7d4..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/EnvironmentVariableTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.EnvironmentVariable; -import org.junit.jupiter.api.Assertions; - -public final class EnvironmentVariableTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnvironmentVariable model = BinaryData.fromString("{\"name\":\"szdtmhrkwof\",\"value\":\"yvoqa\"}") - .toObject(EnvironmentVariable.class); - Assertions.assertEquals("szdtmhrkwof", model.name()); - Assertions.assertEquals("yvoqa", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariable model = new EnvironmentVariable().withName("szdtmhrkwof").withValue("yvoqa"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariable.class); - Assertions.assertEquals("szdtmhrkwof", model.name()); - Assertions.assertEquals("yvoqa", model.value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ExtendedLocationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ExtendedLocationTests.java deleted file mode 100644 index 2ef2ffb9678a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ExtendedLocationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ExtendedLocation; -import com.azure.resourcemanager.appcontainers.models.ExtendedLocationTypes; -import org.junit.jupiter.api.Assertions; - -public final class ExtendedLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExtendedLocation model = BinaryData.fromString("{\"name\":\"gsyocogj\",\"type\":\"CustomLocation\"}") - .toObject(ExtendedLocation.class); - Assertions.assertEquals("gsyocogj", model.name()); - Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExtendedLocation model - = new ExtendedLocation().withName("gsyocogj").withType(ExtendedLocationTypes.CUSTOM_LOCATION); - model = BinaryData.fromObject(model).toObject(ExtendedLocation.class); - Assertions.assertEquals("gsyocogj", model.name()); - Assertions.assertEquals(ExtendedLocationTypes.CUSTOM_LOCATION, model.type()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ForwardProxyTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ForwardProxyTests.java deleted file mode 100644 index 0f3820952960..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ForwardProxyTests.java +++ /dev/null @@ -1,33 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ForwardProxy; -import com.azure.resourcemanager.appcontainers.models.ForwardProxyConvention; -import org.junit.jupiter.api.Assertions; - -public final class ForwardProxyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ForwardProxy model = BinaryData.fromString( - "{\"convention\":\"Custom\",\"customHostHeaderName\":\"yfsoppu\",\"customProtoHeaderName\":\"esnzwde\"}") - .toObject(ForwardProxy.class); - Assertions.assertEquals(ForwardProxyConvention.CUSTOM, model.convention()); - Assertions.assertEquals("yfsoppu", model.customHostHeaderName()); - Assertions.assertEquals("esnzwde", model.customProtoHeaderName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ForwardProxy model = new ForwardProxy().withConvention(ForwardProxyConvention.CUSTOM) - .withCustomHostHeaderName("yfsoppu") - .withCustomProtoHeaderName("esnzwde"); - model = BinaryData.fromObject(model).toObject(ForwardProxy.class); - Assertions.assertEquals(ForwardProxyConvention.CUSTOM, model.convention()); - Assertions.assertEquals("yfsoppu", model.customHostHeaderName()); - Assertions.assertEquals("esnzwde", model.customProtoHeaderName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/FunctionsExtensionsInvokeFunctionsHostWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/FunctionsExtensionsInvokeFunctionsHostWithResponseMockTests.java deleted file mode 100644 index ae70ce231863..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/FunctionsExtensionsInvokeFunctionsHostWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -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 FunctionsExtensionsInvokeFunctionsHostWithResponseMockTests { - @Test - public void testInvokeFunctionsHostWithResponse() throws Exception { - String responseStr = "\"rehkunsbfjhh\""; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - String response = manager.functionsExtensions() - .invokeFunctionsHostWithResponse("ywzcqyggmnw", "vhbn", "qiwy", "jtobdrrp", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("rehkunsbfjhh", response); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/GlobalValidationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/GlobalValidationTests.java deleted file mode 100644 index e1f01087abed..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/GlobalValidationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.GlobalValidation; -import com.azure.resourcemanager.appcontainers.models.UnauthenticatedClientActionV2; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class GlobalValidationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GlobalValidation model = BinaryData.fromString( - "{\"unauthenticatedClientAction\":\"RedirectToLoginPage\",\"redirectToProvider\":\"rkujy\",\"excludedPaths\":[\"eju\"]}") - .toObject(GlobalValidation.class); - Assertions.assertEquals(UnauthenticatedClientActionV2.REDIRECT_TO_LOGIN_PAGE, - model.unauthenticatedClientAction()); - Assertions.assertEquals("rkujy", model.redirectToProvider()); - Assertions.assertEquals("eju", model.excludedPaths().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GlobalValidation model = new GlobalValidation() - .withUnauthenticatedClientAction(UnauthenticatedClientActionV2.REDIRECT_TO_LOGIN_PAGE) - .withRedirectToProvider("rkujy") - .withExcludedPaths(Arrays.asList("eju")); - model = BinaryData.fromObject(model).toObject(GlobalValidation.class); - Assertions.assertEquals(UnauthenticatedClientActionV2.REDIRECT_TO_LOGIN_PAGE, - model.unauthenticatedClientAction()); - Assertions.assertEquals("rkujy", model.redirectToProvider()); - Assertions.assertEquals("eju", model.excludedPaths().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HeaderMatchMatchTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HeaderMatchMatchTests.java deleted file mode 100644 index a50eb82e0d80..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HeaderMatchMatchTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.HeaderMatchMatch; -import org.junit.jupiter.api.Assertions; - -public final class HeaderMatchMatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HeaderMatchMatch model = BinaryData.fromString( - "{\"exactMatch\":\"wjzrnfygxgisp\",\"prefixMatch\":\"vtz\",\"suffixMatch\":\"ufubl\",\"regexMatch\":\"fxqeof\"}") - .toObject(HeaderMatchMatch.class); - Assertions.assertEquals("wjzrnfygxgisp", model.exactMatch()); - Assertions.assertEquals("vtz", model.prefixMatch()); - Assertions.assertEquals("ufubl", model.suffixMatch()); - Assertions.assertEquals("fxqeof", model.regexMatch()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HeaderMatchMatch model = new HeaderMatchMatch().withExactMatch("wjzrnfygxgisp") - .withPrefixMatch("vtz") - .withSuffixMatch("ufubl") - .withRegexMatch("fxqeof"); - model = BinaryData.fromObject(model).toObject(HeaderMatchMatch.class); - Assertions.assertEquals("wjzrnfygxgisp", model.exactMatch()); - Assertions.assertEquals("vtz", model.prefixMatch()); - Assertions.assertEquals("ufubl", model.suffixMatch()); - Assertions.assertEquals("fxqeof", model.regexMatch()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HeaderMatchTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HeaderMatchTests.java deleted file mode 100644 index 47d423d7c17a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HeaderMatchTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.HeaderMatch; -import org.junit.jupiter.api.Assertions; - -public final class HeaderMatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HeaderMatch model = BinaryData.fromString( - "{\"header\":\"uybbkpodep\",\"match\":{\"exactMatch\":\"inuvamiheogn\",\"prefixMatch\":\"xzxtheo\",\"suffixMatch\":\"si\",\"regexMatch\":\"evcciqihnhun\"}}") - .toObject(HeaderMatch.class); - Assertions.assertEquals("uybbkpodep", model.headerProperty()); - Assertions.assertEquals("inuvamiheogn", model.exactMatch()); - Assertions.assertEquals("xzxtheo", model.prefixMatch()); - Assertions.assertEquals("si", model.suffixMatch()); - Assertions.assertEquals("evcciqihnhun", model.regexMatch()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HeaderMatch model = new HeaderMatch().withHeaderProperty("uybbkpodep") - .withExactMatch("inuvamiheogn") - .withPrefixMatch("xzxtheo") - .withSuffixMatch("si") - .withRegexMatch("evcciqihnhun"); - model = BinaryData.fromObject(model).toObject(HeaderMatch.class); - Assertions.assertEquals("uybbkpodep", model.headerProperty()); - Assertions.assertEquals("inuvamiheogn", model.exactMatch()); - Assertions.assertEquals("xzxtheo", model.prefixMatch()); - Assertions.assertEquals("si", model.suffixMatch()); - Assertions.assertEquals("evcciqihnhun", model.regexMatch()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpConnectionPoolTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpConnectionPoolTests.java deleted file mode 100644 index 5662a4ebc19c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpConnectionPoolTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.HttpConnectionPool; -import org.junit.jupiter.api.Assertions; - -public final class HttpConnectionPoolTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpConnectionPool model - = BinaryData.fromString("{\"http1MaxPendingRequests\":5903092,\"http2MaxRequests\":1154409847}") - .toObject(HttpConnectionPool.class); - Assertions.assertEquals(5903092, model.http1MaxPendingRequests()); - Assertions.assertEquals(1154409847, model.http2MaxRequests()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpConnectionPool model - = new HttpConnectionPool().withHttp1MaxPendingRequests(5903092).withHttp2MaxRequests(1154409847); - model = BinaryData.fromObject(model).toObject(HttpConnectionPool.class); - Assertions.assertEquals(5903092, model.http1MaxPendingRequests()); - Assertions.assertEquals(1154409847, model.http2MaxRequests()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpGetTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpGetTests.java deleted file mode 100644 index 97e294de65ac..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpGetTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.HttpGet; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class HttpGetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpGet model = BinaryData - .fromString( - "{\"url\":\"auvfbtkuwhhmhyk\",\"fileName\":\"oxafn\",\"headers\":[\"pichkoymkcdy\",\"bpkkpwdre\"]}") - .toObject(HttpGet.class); - Assertions.assertEquals("auvfbtkuwhhmhyk", model.url()); - Assertions.assertEquals("oxafn", model.fileName()); - Assertions.assertEquals("pichkoymkcdy", model.headers().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpGet model = new HttpGet().withUrl("auvfbtkuwhhmhyk") - .withFileName("oxafn") - .withHeaders(Arrays.asList("pichkoymkcdy", "bpkkpwdre")); - model = BinaryData.fromObject(model).toObject(HttpGet.class); - Assertions.assertEquals("auvfbtkuwhhmhyk", model.url()); - Assertions.assertEquals("oxafn", model.fileName()); - Assertions.assertEquals("pichkoymkcdy", model.headers().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpRetryPolicyRetryBackOffTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpRetryPolicyRetryBackOffTests.java deleted file mode 100644 index cbf79db3ef8e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpRetryPolicyRetryBackOffTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.HttpRetryPolicyRetryBackOff; -import org.junit.jupiter.api.Assertions; - -public final class HttpRetryPolicyRetryBackOffTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpRetryPolicyRetryBackOff model = BinaryData.fromString( - "{\"initialDelayInMilliseconds\":2232295730634911769,\"maxIntervalInMilliseconds\":8368000594620652423}") - .toObject(HttpRetryPolicyRetryBackOff.class); - Assertions.assertEquals(2232295730634911769L, model.initialDelayInMilliseconds()); - Assertions.assertEquals(8368000594620652423L, model.maxIntervalInMilliseconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpRetryPolicyRetryBackOff model - = new HttpRetryPolicyRetryBackOff().withInitialDelayInMilliseconds(2232295730634911769L) - .withMaxIntervalInMilliseconds(8368000594620652423L); - model = BinaryData.fromObject(model).toObject(HttpRetryPolicyRetryBackOff.class); - Assertions.assertEquals(2232295730634911769L, model.initialDelayInMilliseconds()); - Assertions.assertEquals(8368000594620652423L, model.maxIntervalInMilliseconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpSettingsRoutesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpSettingsRoutesTests.java deleted file mode 100644 index f55fbf7cff92..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpSettingsRoutesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.HttpSettingsRoutes; -import org.junit.jupiter.api.Assertions; - -public final class HttpSettingsRoutesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpSettingsRoutes model - = BinaryData.fromString("{\"apiPrefix\":\"gacftadeh\"}").toObject(HttpSettingsRoutes.class); - Assertions.assertEquals("gacftadeh", model.apiPrefix()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpSettingsRoutes model = new HttpSettingsRoutes().withApiPrefix("gacftadeh"); - model = BinaryData.fromObject(model).toObject(HttpSettingsRoutes.class); - Assertions.assertEquals("gacftadeh", model.apiPrefix()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpSettingsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpSettingsTests.java deleted file mode 100644 index fc4706c22471..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/HttpSettingsTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ForwardProxy; -import com.azure.resourcemanager.appcontainers.models.ForwardProxyConvention; -import com.azure.resourcemanager.appcontainers.models.HttpSettings; -import com.azure.resourcemanager.appcontainers.models.HttpSettingsRoutes; -import org.junit.jupiter.api.Assertions; - -public final class HttpSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpSettings model = BinaryData.fromString( - "{\"requireHttps\":false,\"routes\":{\"apiPrefix\":\"jzzvdud\"},\"forwardProxy\":{\"convention\":\"NoProxy\",\"customHostHeaderName\":\"fhotw\",\"customProtoHeaderName\":\"ynpwlbj\"}}") - .toObject(HttpSettings.class); - Assertions.assertEquals(false, model.requireHttps()); - Assertions.assertEquals("jzzvdud", model.routes().apiPrefix()); - Assertions.assertEquals(ForwardProxyConvention.NO_PROXY, model.forwardProxy().convention()); - Assertions.assertEquals("fhotw", model.forwardProxy().customHostHeaderName()); - Assertions.assertEquals("ynpwlbj", model.forwardProxy().customProtoHeaderName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpSettings model = new HttpSettings().withRequireHttps(false) - .withRoutes(new HttpSettingsRoutes().withApiPrefix("jzzvdud")) - .withForwardProxy(new ForwardProxy().withConvention(ForwardProxyConvention.NO_PROXY) - .withCustomHostHeaderName("fhotw") - .withCustomProtoHeaderName("ynpwlbj")); - model = BinaryData.fromObject(model).toObject(HttpSettings.class); - Assertions.assertEquals(false, model.requireHttps()); - Assertions.assertEquals("jzzvdud", model.routes().apiPrefix()); - Assertions.assertEquals(ForwardProxyConvention.NO_PROXY, model.forwardProxy().convention()); - Assertions.assertEquals("fhotw", model.forwardProxy().customHostHeaderName()); - Assertions.assertEquals("ynpwlbj", model.forwardProxy().customProtoHeaderName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IdentitySettingsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IdentitySettingsTests.java deleted file mode 100644 index 2eae11cff536..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IdentitySettingsTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.IdentitySettings; -import com.azure.resourcemanager.appcontainers.models.IdentitySettingsLifeCycle; -import org.junit.jupiter.api.Assertions; - -public final class IdentitySettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IdentitySettings model = BinaryData.fromString("{\"identity\":\"gsopbyrqufegxu\",\"lifecycle\":\"Init\"}") - .toObject(IdentitySettings.class); - Assertions.assertEquals("gsopbyrqufegxu", model.identity()); - Assertions.assertEquals(IdentitySettingsLifeCycle.INIT, model.lifecycle()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IdentitySettings model - = new IdentitySettings().withIdentity("gsopbyrqufegxu").withLifecycle(IdentitySettingsLifeCycle.INIT); - model = BinaryData.fromObject(model).toObject(IdentitySettings.class); - Assertions.assertEquals("gsopbyrqufegxu", model.identity()); - Assertions.assertEquals(IdentitySettingsLifeCycle.INIT, model.lifecycle()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IngressPortMappingTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IngressPortMappingTests.java deleted file mode 100644 index d9c85f5a4204..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IngressPortMappingTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.IngressPortMapping; -import org.junit.jupiter.api.Assertions; - -public final class IngressPortMappingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IngressPortMapping model - = BinaryData.fromString("{\"external\":false,\"targetPort\":1867412181,\"exposedPort\":808786975}") - .toObject(IngressPortMapping.class); - Assertions.assertEquals(false, model.external()); - Assertions.assertEquals(1867412181, model.targetPort()); - Assertions.assertEquals(808786975, model.exposedPort()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IngressPortMapping model - = new IngressPortMapping().withExternal(false).withTargetPort(1867412181).withExposedPort(808786975); - model = BinaryData.fromObject(model).toObject(IngressPortMapping.class); - Assertions.assertEquals(false, model.external()); - Assertions.assertEquals(1867412181, model.targetPort()); - Assertions.assertEquals(808786975, model.exposedPort()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IngressStickySessionsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IngressStickySessionsTests.java deleted file mode 100644 index f5793c8ace6b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IngressStickySessionsTests.java +++ /dev/null @@ -1,26 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Affinity; -import com.azure.resourcemanager.appcontainers.models.IngressStickySessions; -import org.junit.jupiter.api.Assertions; - -public final class IngressStickySessionsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IngressStickySessions model - = BinaryData.fromString("{\"affinity\":\"none\"}").toObject(IngressStickySessions.class); - Assertions.assertEquals(Affinity.NONE, model.affinity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IngressStickySessions model = new IngressStickySessions().withAffinity(Affinity.NONE); - model = BinaryData.fromObject(model).toObject(IngressStickySessions.class); - Assertions.assertEquals(Affinity.NONE, model.affinity()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IpSecurityRestrictionRuleTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IpSecurityRestrictionRuleTests.java deleted file mode 100644 index 5d2f92ac0c49..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/IpSecurityRestrictionRuleTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Action; -import com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule; -import org.junit.jupiter.api.Assertions; - -public final class IpSecurityRestrictionRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpSecurityRestrictionRule model = BinaryData.fromString( - "{\"name\":\"hbotzingamvppho\",\"description\":\"qzudphq\",\"ipAddressRange\":\"mvdk\",\"action\":\"Deny\"}") - .toObject(IpSecurityRestrictionRule.class); - Assertions.assertEquals("hbotzingamvppho", model.name()); - Assertions.assertEquals("qzudphq", model.description()); - Assertions.assertEquals("mvdk", model.ipAddressRange()); - Assertions.assertEquals(Action.DENY, model.action()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpSecurityRestrictionRule model = new IpSecurityRestrictionRule().withName("hbotzingamvppho") - .withDescription("qzudphq") - .withIpAddressRange("mvdk") - .withAction(Action.DENY); - model = BinaryData.fromObject(model).toObject(IpSecurityRestrictionRule.class); - Assertions.assertEquals("hbotzingamvppho", model.name()); - Assertions.assertEquals("qzudphq", model.description()); - Assertions.assertEquals("mvdk", model.ipAddressRange()); - Assertions.assertEquals(Action.DENY, model.action()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentConfigurationPropertyTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentConfigurationPropertyTests.java deleted file mode 100644 index 9e6fdb01b4ee..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentConfigurationPropertyTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; -import org.junit.jupiter.api.Assertions; - -public final class JavaComponentConfigurationPropertyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JavaComponentConfigurationProperty model - = BinaryData.fromString("{\"propertyName\":\"paseksgb\",\"value\":\"antuygdhgaqipirp\"}") - .toObject(JavaComponentConfigurationProperty.class); - Assertions.assertEquals("paseksgb", model.propertyName()); - Assertions.assertEquals("antuygdhgaqipirp", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JavaComponentConfigurationProperty model - = new JavaComponentConfigurationProperty().withPropertyName("paseksgb").withValue("antuygdhgaqipirp"); - model = BinaryData.fromObject(model).toObject(JavaComponentConfigurationProperty.class); - Assertions.assertEquals("paseksgb", model.propertyName()); - Assertions.assertEquals("antuygdhgaqipirp", model.value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentIngressTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentIngressTests.java deleted file mode 100644 index d3efb7eb7696..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentIngressTests.java +++ /dev/null @@ -1,21 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JavaComponentIngress; - -public final class JavaComponentIngressTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JavaComponentIngress model = BinaryData.fromString("{\"fqdn\":\"q\"}").toObject(JavaComponentIngress.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JavaComponentIngress model = new JavaComponentIngress(); - model = BinaryData.fromObject(model).toObject(JavaComponentIngress.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentInnerTests.java deleted file mode 100644 index 362edc3649ae..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.JavaComponentInner; -import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.JavaComponentProperties; -import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class JavaComponentInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JavaComponentInner model = BinaryData.fromString( - "{\"properties\":{\"componentType\":\"JavaComponentProperties\",\"provisioningState\":\"Deleting\",\"configurations\":[{\"propertyName\":\"anbwzohmnrxxbso\",\"value\":\"linhmdptysprqs\"},{\"propertyName\":\"zxojpslsv\",\"value\":\"pli\"}],\"serviceBinds\":[{\"name\":\"woyxqvapcohhou\",\"serviceId\":\"pqojxcx\"},{\"name\":\"zdcgdzbenr\",\"serviceId\":\"cawetzqddt\"},{\"name\":\"fljhznamtua\",\"serviceId\":\"zwcjjncqtj\"},{\"name\":\"izvg\",\"serviceId\":\"atzuuv\"}]},\"id\":\"ngrebwg\",\"name\":\"ahttzlswvajqfut\",\"type\":\"x\"}") - .toObject(JavaComponentInner.class); - Assertions.assertEquals("anbwzohmnrxxbso", model.properties().configurations().get(0).propertyName()); - Assertions.assertEquals("linhmdptysprqs", model.properties().configurations().get(0).value()); - Assertions.assertEquals("woyxqvapcohhou", model.properties().serviceBinds().get(0).name()); - Assertions.assertEquals("pqojxcx", model.properties().serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JavaComponentInner model = new JavaComponentInner().withProperties(new JavaComponentProperties() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("anbwzohmnrxxbso") - .withValue("linhmdptysprqs"), - new JavaComponentConfigurationProperty().withPropertyName("zxojpslsv").withValue("pli"))) - .withServiceBinds( - Arrays.asList(new JavaComponentServiceBind().withName("woyxqvapcohhou").withServiceId("pqojxcx"), - new JavaComponentServiceBind().withName("zdcgdzbenr").withServiceId("cawetzqddt"), - new JavaComponentServiceBind().withName("fljhznamtua").withServiceId("zwcjjncqtj"), - new JavaComponentServiceBind().withName("izvg").withServiceId("atzuuv")))); - model = BinaryData.fromObject(model).toObject(JavaComponentInner.class); - Assertions.assertEquals("anbwzohmnrxxbso", model.properties().configurations().get(0).propertyName()); - Assertions.assertEquals("linhmdptysprqs", model.properties().configurations().get(0).value()); - Assertions.assertEquals("woyxqvapcohhou", model.properties().serviceBinds().get(0).name()); - Assertions.assertEquals("pqojxcx", model.properties().serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentPropertiesTests.java deleted file mode 100644 index f31183b21f74..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentPropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.JavaComponentProperties; -import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class JavaComponentPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JavaComponentProperties model = BinaryData.fromString( - "{\"componentType\":\"JavaComponentProperties\",\"provisioningState\":\"Deleting\",\"configurations\":[{\"propertyName\":\"unwqr\",\"value\":\"frgqhaohcm\"},{\"propertyName\":\"oc\",\"value\":\"r\"},{\"propertyName\":\"mbpyryxamebly\",\"value\":\"vkfkmr\"},{\"propertyName\":\"xne\",\"value\":\"sm\"}],\"serviceBinds\":[{\"name\":\"fpyapucygvoavyu\",\"serviceId\":\"sxlghieegjlg\"}]}") - .toObject(JavaComponentProperties.class); - Assertions.assertEquals("unwqr", model.configurations().get(0).propertyName()); - Assertions.assertEquals("frgqhaohcm", model.configurations().get(0).value()); - Assertions.assertEquals("fpyapucygvoavyu", model.serviceBinds().get(0).name()); - Assertions.assertEquals("sxlghieegjlg", model.serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JavaComponentProperties model = new JavaComponentProperties() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("unwqr").withValue("frgqhaohcm"), - new JavaComponentConfigurationProperty().withPropertyName("oc").withValue("r"), - new JavaComponentConfigurationProperty().withPropertyName("mbpyryxamebly").withValue("vkfkmr"), - new JavaComponentConfigurationProperty().withPropertyName("xne").withValue("sm"))) - .withServiceBinds(Arrays - .asList(new JavaComponentServiceBind().withName("fpyapucygvoavyu").withServiceId("sxlghieegjlg"))); - model = BinaryData.fromObject(model).toObject(JavaComponentProperties.class); - Assertions.assertEquals("unwqr", model.configurations().get(0).propertyName()); - Assertions.assertEquals("frgqhaohcm", model.configurations().get(0).value()); - Assertions.assertEquals("fpyapucygvoavyu", model.serviceBinds().get(0).name()); - Assertions.assertEquals("sxlghieegjlg", model.serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentServiceBindTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentServiceBindTests.java deleted file mode 100644 index 25bd718de8d8..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentServiceBindTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; -import org.junit.jupiter.api.Assertions; - -public final class JavaComponentServiceBindTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JavaComponentServiceBind model = BinaryData.fromString("{\"name\":\"rqofulopmjnlexwh\",\"serviceId\":\"jpib\"}") - .toObject(JavaComponentServiceBind.class); - Assertions.assertEquals("rqofulopmjnlexwh", model.name()); - Assertions.assertEquals("jpib", model.serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JavaComponentServiceBind model - = new JavaComponentServiceBind().withName("rqofulopmjnlexwh").withServiceId("jpib"); - model = BinaryData.fromObject(model).toObject(JavaComponentServiceBind.class); - Assertions.assertEquals("rqofulopmjnlexwh", model.name()); - Assertions.assertEquals("jpib", model.serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCollectionTests.java deleted file mode 100644 index e51efc7ae9ba..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCollectionTests.java +++ /dev/null @@ -1,83 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.JavaComponentInner; -import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.JavaComponentProperties; -import com.azure.resourcemanager.appcontainers.models.JavaComponentsCollection; -import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class JavaComponentsCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JavaComponentsCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"componentType\":\"JavaComponentProperties\",\"provisioningState\":\"Succeeded\",\"configurations\":[{\"propertyName\":\"yzqedikdfrd\",\"value\":\"qmrjg\"},{\"propertyName\":\"hfqlgg\",\"value\":\"iwzcxmjpbyeph\"},{\"propertyName\":\"t\",\"value\":\"j\"}],\"serviceBinds\":[{\"name\":\"yfqi\",\"serviceId\":\"xhnpo\"},{\"name\":\"qwcabvnui\",\"serviceId\":\"ey\"},{\"name\":\"wlpaugmrmfjlrxwt\",\"serviceId\":\"ukhfkvc\"},{\"name\":\"izmoaeds\",\"serviceId\":\"wuived\"}]},\"id\":\"gyeewxeiq\",\"name\":\"psmgo\",\"type\":\"guamlj\"},{\"properties\":{\"componentType\":\"JavaComponentProperties\",\"provisioningState\":\"Succeeded\",\"configurations\":[{\"propertyName\":\"lzgaufcshhvnew\",\"value\":\"xkym\"},{\"propertyName\":\"anxrj\",\"value\":\"xtwbta\"}],\"serviceBinds\":[{\"name\":\"yghs\",\"serviceId\":\"cyl\"},{\"name\":\"gmnsghpxy\",\"serviceId\":\"hdrwjjkh\"}]},\"id\":\"omacluzvxnqmhr\",\"name\":\"qpd\",\"type\":\"wmkoisq\"},{\"properties\":{\"componentType\":\"JavaComponentProperties\",\"provisioningState\":\"Canceled\",\"configurations\":[{\"propertyName\":\"ifmcsypobkdqzr\",\"value\":\"sylollgtr\"},{\"propertyName\":\"zydmxzjijpvuaurk\",\"value\":\"ci\"},{\"propertyName\":\"defxrdc\",\"value\":\"nbkkjanurnnq\"},{\"propertyName\":\"q\",\"value\":\"izxqltgrd\"}],\"serviceBinds\":[{\"name\":\"xrxvbfi\",\"serviceId\":\"u\"},{\"name\":\"ctafsrbxrblm\",\"serviceId\":\"owxih\"}]},\"id\":\"nxw\",\"name\":\"agnepzwaklsb\",\"type\":\"bqqqagwwrxa\"},{\"properties\":{\"componentType\":\"JavaComponentProperties\",\"provisioningState\":\"InProgress\",\"configurations\":[{\"propertyName\":\"rrczezkhhltnj\",\"value\":\"hqo\"},{\"propertyName\":\"jqoyueayfbpcm\",\"value\":\"lbyrru\"}],\"serviceBinds\":[{\"name\":\"wmgn\",\"serviceId\":\"scbbxig\"},{\"name\":\"xiidloped\",\"serviceId\":\"dpyqyybxubmd\"},{\"name\":\"fcbqwremjela\",\"serviceId\":\"cigeleohdbvqvw\"}]},\"id\":\"jopwbeonrlkwz\",\"name\":\"qybxceakxcp\",\"type\":\"soqfyiaseqchkrt\"}],\"nextLink\":\"razisg\"}") - .toObject(JavaComponentsCollection.class); - Assertions.assertEquals("yzqedikdfrd", - model.value().get(0).properties().configurations().get(0).propertyName()); - Assertions.assertEquals("qmrjg", model.value().get(0).properties().configurations().get(0).value()); - Assertions.assertEquals("yfqi", model.value().get(0).properties().serviceBinds().get(0).name()); - Assertions.assertEquals("xhnpo", model.value().get(0).properties().serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JavaComponentsCollection model - = new JavaComponentsCollection() - .withValue(Arrays.asList( - new JavaComponentInner().withProperties(new JavaComponentProperties() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("yzqedikdfrd").withValue("qmrjg"), - new JavaComponentConfigurationProperty().withPropertyName("hfqlgg") - .withValue("iwzcxmjpbyeph"), - new JavaComponentConfigurationProperty().withPropertyName("t").withValue("j"))) - .withServiceBinds( - Arrays.asList(new JavaComponentServiceBind().withName("yfqi").withServiceId("xhnpo"), - new JavaComponentServiceBind().withName("qwcabvnui").withServiceId("ey"), - new JavaComponentServiceBind().withName("wlpaugmrmfjlrxwt").withServiceId("ukhfkvc"), - new JavaComponentServiceBind().withName("izmoaeds").withServiceId("wuived")))), - new JavaComponentInner().withProperties(new JavaComponentProperties() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("lzgaufcshhvnew") - .withValue("xkym"), - new JavaComponentConfigurationProperty().withPropertyName("anxrj").withValue("xtwbta"))) - .withServiceBinds( - Arrays.asList(new JavaComponentServiceBind().withName("yghs").withServiceId("cyl"), - new JavaComponentServiceBind().withName("gmnsghpxy").withServiceId("hdrwjjkh")))), - new JavaComponentInner().withProperties(new JavaComponentProperties() - .withConfigurations(Arrays.asList(new JavaComponentConfigurationProperty() - .withPropertyName("ifmcsypobkdqzr") - .withValue("sylollgtr"), - new JavaComponentConfigurationProperty() - .withPropertyName("zydmxzjijpvuaurk") - .withValue("ci"), - new JavaComponentConfigurationProperty().withPropertyName("defxrdc") - .withValue("nbkkjanurnnq"), - new JavaComponentConfigurationProperty().withPropertyName("q").withValue("izxqltgrd"))) - .withServiceBinds( - Arrays.asList(new JavaComponentServiceBind().withName("xrxvbfi").withServiceId("u"), - new JavaComponentServiceBind().withName("ctafsrbxrblm").withServiceId("owxih")))), - new JavaComponentInner().withProperties(new JavaComponentProperties() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("rrczezkhhltnj").withValue("hqo"), - new JavaComponentConfigurationProperty().withPropertyName("jqoyueayfbpcm") - .withValue("lbyrru"))) - .withServiceBinds( - Arrays.asList(new JavaComponentServiceBind().withName("wmgn").withServiceId("scbbxig"), - new JavaComponentServiceBind().withName("xiidloped").withServiceId("dpyqyybxubmd"), - new JavaComponentServiceBind().withName("fcbqwremjela") - .withServiceId("cigeleohdbvqvw")))))); - model = BinaryData.fromObject(model).toObject(JavaComponentsCollection.class); - Assertions.assertEquals("yzqedikdfrd", - model.value().get(0).properties().configurations().get(0).propertyName()); - Assertions.assertEquals("qmrjg", model.value().get(0).properties().configurations().get(0).value()); - Assertions.assertEquals("yfqi", model.value().get(0).properties().serviceBinds().get(0).name()); - Assertions.assertEquals("xhnpo", model.value().get(0).properties().serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCreateOrUpdateMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCreateOrUpdateMockTests.java deleted file mode 100644 index e63639536a20..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,54 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.JavaComponent; -import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.JavaComponentProperties; -import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; -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 JavaComponentsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"componentType\":\"JavaComponentProperties\",\"provisioningState\":\"Succeeded\",\"configurations\":[{\"propertyName\":\"zzfopu\",\"value\":\"qusvwlujopwnib\"}],\"serviceBinds\":[{\"name\":\"zt\",\"serviceId\":\"qumqvfmwcaddt\"},{\"name\":\"txegtvgwyurbelfn\",\"serviceId\":\"ryizwbxgde\"}]},\"id\":\"layunomirhpfabe\",\"name\":\"qlamwmgewayxfl\",\"type\":\"bcpjstbhem\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - JavaComponent response = manager.javaComponents() - .define("zx") - .withExistingManagedEnvironment("glaqjsg", "zstuj") - .withProperties(new JavaComponentProperties() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("lduyehiiittugyuq").withValue("lda"))) - .withServiceBinds( - Arrays.asList(new JavaComponentServiceBind().withName("qa").withServiceId("sozjvxdzciggbnv"), - new JavaComponentServiceBind().withName("o").withServiceId("alzyxwhoeamo"), - new JavaComponentServiceBind().withName("bdoeysf").withServiceId("imtwuuhau")))) - .create(); - - Assertions.assertEquals("zzfopu", response.properties().configurations().get(0).propertyName()); - Assertions.assertEquals("qusvwlujopwnib", response.properties().configurations().get(0).value()); - Assertions.assertEquals("zt", response.properties().serviceBinds().get(0).name()); - Assertions.assertEquals("qumqvfmwcaddt", response.properties().serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsGetWithResponseMockTests.java deleted file mode 100644 index e205157c182d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsGetWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.JavaComponent; -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 JavaComponentsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"componentType\":\"JavaComponentProperties\",\"provisioningState\":\"Failed\",\"configurations\":[{\"propertyName\":\"wmhlymgnukx\",\"value\":\"emjpequ\"}],\"serviceBinds\":[{\"name\":\"audgjtfbclakkucd\",\"serviceId\":\"nhczbutoucgjt\"},{\"name\":\"jwayhi\",\"serviceId\":\"qwwvgwkslvl\"}]},\"id\":\"edvbiabvnsrge\",\"name\":\"zyqxadyfhbmwkh\",\"type\":\"jqttbspvk\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - JavaComponent response = manager.javaComponents() - .getWithResponse("nhkgq", "goxsstci", "rak", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("wmhlymgnukx", response.properties().configurations().get(0).propertyName()); - Assertions.assertEquals("emjpequ", response.properties().configurations().get(0).value()); - Assertions.assertEquals("audgjtfbclakkucd", response.properties().serviceBinds().get(0).name()); - Assertions.assertEquals("nhczbutoucgjt", response.properties().serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsListMockTests.java deleted file mode 100644 index 2b205bd85c6d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JavaComponentsListMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.JavaComponent; -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 JavaComponentsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"componentType\":\"JavaComponentProperties\",\"provisioningState\":\"Failed\",\"configurations\":[{\"propertyName\":\"itcdqlhchwhrk\",\"value\":\"l\"},{\"propertyName\":\"fibfiplhx\",\"value\":\"smyc\"}],\"serviceBinds\":[{\"name\":\"yeyzm\",\"serviceId\":\"sqc\"},{\"name\":\"nxlzbuwodmach\",\"serviceId\":\"vnrpbjrmvg\"}]},\"id\":\"plehmumk\",\"name\":\"dllc\",\"type\":\"dpr\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.javaComponents().list("jtgzj", "xlfejlzuqloiwya", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("itcdqlhchwhrk", - response.iterator().next().properties().configurations().get(0).propertyName()); - Assertions.assertEquals("l", response.iterator().next().properties().configurations().get(0).value()); - Assertions.assertEquals("yeyzm", response.iterator().next().properties().serviceBinds().get(0).name()); - Assertions.assertEquals("sqc", response.iterator().next().properties().serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobConfigurationManualTriggerConfigTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobConfigurationManualTriggerConfigTests.java deleted file mode 100644 index 517febc63ce6..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobConfigurationManualTriggerConfigTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JobConfigurationManualTriggerConfig; -import org.junit.jupiter.api.Assertions; - -public final class JobConfigurationManualTriggerConfigTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobConfigurationManualTriggerConfig model - = BinaryData.fromString("{\"replicaCompletionCount\":1484888018,\"parallelism\":1961385254}") - .toObject(JobConfigurationManualTriggerConfig.class); - Assertions.assertEquals(1484888018, model.replicaCompletionCount()); - Assertions.assertEquals(1961385254, model.parallelism()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobConfigurationManualTriggerConfig model - = new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(1484888018) - .withParallelism(1961385254); - model = BinaryData.fromObject(model).toObject(JobConfigurationManualTriggerConfig.class); - Assertions.assertEquals(1484888018, model.replicaCompletionCount()); - Assertions.assertEquals(1961385254, model.parallelism()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobConfigurationScheduleTriggerConfigTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobConfigurationScheduleTriggerConfigTests.java deleted file mode 100644 index a686ad6bf07c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobConfigurationScheduleTriggerConfigTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JobConfigurationScheduleTriggerConfig; -import org.junit.jupiter.api.Assertions; - -public final class JobConfigurationScheduleTriggerConfigTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobConfigurationScheduleTriggerConfig model = BinaryData - .fromString( - "{\"replicaCompletionCount\":2045449859,\"cronExpression\":\"ejylmbkzu\",\"parallelism\":1007245359}") - .toObject(JobConfigurationScheduleTriggerConfig.class); - Assertions.assertEquals(2045449859, model.replicaCompletionCount()); - Assertions.assertEquals("ejylmbkzu", model.cronExpression()); - Assertions.assertEquals(1007245359, model.parallelism()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobConfigurationScheduleTriggerConfig model - = new JobConfigurationScheduleTriggerConfig().withReplicaCompletionCount(2045449859) - .withCronExpression("ejylmbkzu") - .withParallelism(1007245359); - model = BinaryData.fromObject(model).toObject(JobConfigurationScheduleTriggerConfig.class); - Assertions.assertEquals(2045449859, model.replicaCompletionCount()); - Assertions.assertEquals("ejylmbkzu", model.cronExpression()); - Assertions.assertEquals(1007245359, model.parallelism()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobExecutionBaseInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobExecutionBaseInnerTests.java deleted file mode 100644 index bca8fc3db5fc..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobExecutionBaseInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionBaseInner; -import org.junit.jupiter.api.Assertions; - -public final class JobExecutionBaseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobExecutionBaseInner model = BinaryData.fromString("{\"name\":\"peuknijd\",\"id\":\"yespydjfbocyv\"}") - .toObject(JobExecutionBaseInner.class); - Assertions.assertEquals("peuknijd", model.name()); - Assertions.assertEquals("yespydjfbocyv", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobExecutionBaseInner model = new JobExecutionBaseInner().withName("peuknijd").withId("yespydjfbocyv"); - model = BinaryData.fromObject(model).toObject(JobExecutionBaseInner.class); - Assertions.assertEquals("peuknijd", model.name()); - Assertions.assertEquals("yespydjfbocyv", model.id()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobExecutionInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobExecutionInnerTests.java deleted file mode 100644 index 468ec5a006d0..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobExecutionInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionInner; -import com.azure.resourcemanager.appcontainers.models.ContainerExecutionStatus; -import com.azure.resourcemanager.appcontainers.models.ContainerResources; -import com.azure.resourcemanager.appcontainers.models.EnvironmentVar; -import com.azure.resourcemanager.appcontainers.models.ExecutionStatus; -import com.azure.resourcemanager.appcontainers.models.JobExecutionContainer; -import com.azure.resourcemanager.appcontainers.models.JobExecutionTemplate; -import com.azure.resourcemanager.appcontainers.models.ReplicaExecutionStatus; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class JobExecutionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobExecutionInner model = BinaryData.fromString( - "{\"name\":\"txpnrupza\",\"id\":\"rdixt\",\"type\":\"kidswys\",\"properties\":{\"status\":\"Succeeded\",\"startTime\":\"2021-09-17T17:15:37Z\",\"endTime\":\"2021-10-21T15:00:18Z\",\"template\":{\"containers\":[{\"image\":\"utvlxhr\",\"name\":\"hvmblcouqehbhbc\",\"command\":[\"iryr\",\"ndo\",\"pmbltoormkfql\"],\"args\":[\"dykalsygaolnjpnn\",\"m\",\"ksibjgsjjxx\",\"hmrnadzyqegxy\"],\"env\":[{},{},{},{}],\"resources\":{\"cpu\":17.229341989191948,\"memory\":\"wbjijkgq\",\"ephemeralStorage\":\"h\"}}],\"initContainers\":[{\"image\":\"znj\",\"name\":\"jvaannggiycwkd\",\"command\":[\"wxwfekaumrr\",\"mbzmqk\"],\"args\":[\"bnxwbjsidbirkf\",\"kso\",\"dgo\"],\"env\":[{},{}],\"resources\":{\"cpu\":9.06822637742738,\"memory\":\"hbguzo\",\"ephemeralStorage\":\"yewnfnzhhhqos\"}},{\"image\":\"fjkutycyarnroo\",\"name\":\"uabzoghkt\",\"command\":[\"czhcoeocnh\",\"qr\"],\"args\":[\"jzcfyjzptwr\",\"ohapqinfsz\",\"yglqdhmrjzral\"],\"env\":[{}],\"resources\":{\"cpu\":46.62900167875854,\"memory\":\"sjoqcjenkyhfqzvs\",\"ephemeralStorage\":\"fxjelg\"}},{\"image\":\"pzqjhhhq\",\"name\":\"w\",\"command\":[\"acoyvivbsizusjs\",\"lbscmnlz\",\"jiu\"],\"args\":[\"gmvflnwyvqkx\"],\"env\":[{},{}],\"resources\":{\"cpu\":49.010491721008606,\"memory\":\"yl\",\"ephemeralStorage\":\"wxzut\"}}]},\"detailedStatus\":{\"replicas\":[{\"name\":\"hghmupgxyj\",\"containers\":[{},{},{}]},{\"name\":\"abbujftabenb\",\"containers\":[{}]},{\"name\":\"pxzuca\",\"containers\":[{},{},{},{}]},{\"name\":\"wwnlzafwxudgnh\",\"containers\":[{},{},{}]}]}}}") - .toObject(JobExecutionInner.class); - Assertions.assertEquals("txpnrupza", model.name()); - Assertions.assertEquals("rdixt", model.id()); - Assertions.assertEquals("kidswys", model.type()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-17T17:15:37Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T15:00:18Z"), model.endTime()); - Assertions.assertEquals("utvlxhr", model.template().containers().get(0).image()); - Assertions.assertEquals("hvmblcouqehbhbc", model.template().containers().get(0).name()); - Assertions.assertEquals("iryr", model.template().containers().get(0).command().get(0)); - Assertions.assertEquals("dykalsygaolnjpnn", model.template().containers().get(0).args().get(0)); - Assertions.assertEquals(17.229341989191948D, model.template().containers().get(0).resources().cpu()); - Assertions.assertEquals("wbjijkgq", model.template().containers().get(0).resources().memory()); - Assertions.assertEquals("znj", model.template().initContainers().get(0).image()); - Assertions.assertEquals("jvaannggiycwkd", model.template().initContainers().get(0).name()); - Assertions.assertEquals("wxwfekaumrr", model.template().initContainers().get(0).command().get(0)); - Assertions.assertEquals("bnxwbjsidbirkf", model.template().initContainers().get(0).args().get(0)); - Assertions.assertEquals(9.06822637742738D, model.template().initContainers().get(0).resources().cpu()); - Assertions.assertEquals("hbguzo", model.template().initContainers().get(0).resources().memory()); - Assertions.assertEquals("hghmupgxyj", model.detailedStatus().replicas().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobExecutionInner model = new JobExecutionInner().withName("txpnrupza") - .withId("rdixt") - .withType("kidswys") - .withStartTime(OffsetDateTime.parse("2021-09-17T17:15:37Z")) - .withEndTime(OffsetDateTime.parse("2021-10-21T15:00:18Z")) - .withTemplate(new JobExecutionTemplate() - .withContainers(Arrays.asList(new JobExecutionContainer().withImage("utvlxhr") - .withName("hvmblcouqehbhbc") - .withCommand(Arrays.asList("iryr", "ndo", "pmbltoormkfql")) - .withArgs(Arrays.asList("dykalsygaolnjpnn", "m", "ksibjgsjjxx", "hmrnadzyqegxy")) - .withEnv(Arrays.asList(new EnvironmentVar(), new EnvironmentVar(), new EnvironmentVar(), - new EnvironmentVar())) - .withResources(new ContainerResources().withCpu(17.229341989191948D).withMemory("wbjijkgq")))) - .withInitContainers(Arrays.asList( - new JobExecutionContainer().withImage("znj") - .withName("jvaannggiycwkd") - .withCommand(Arrays.asList("wxwfekaumrr", "mbzmqk")) - .withArgs(Arrays.asList("bnxwbjsidbirkf", "kso", "dgo")) - .withEnv(Arrays.asList(new EnvironmentVar(), new EnvironmentVar())) - .withResources(new ContainerResources().withCpu(9.06822637742738D).withMemory("hbguzo")), - new JobExecutionContainer().withImage("fjkutycyarnroo") - .withName("uabzoghkt") - .withCommand(Arrays.asList("czhcoeocnh", "qr")) - .withArgs(Arrays.asList("jzcfyjzptwr", "ohapqinfsz", "yglqdhmrjzral")) - .withEnv(Arrays.asList(new EnvironmentVar())) - .withResources( - new ContainerResources().withCpu(46.62900167875854D).withMemory("sjoqcjenkyhfqzvs")), - new JobExecutionContainer().withImage("pzqjhhhq") - .withName("w") - .withCommand(Arrays.asList("acoyvivbsizusjs", "lbscmnlz", "jiu")) - .withArgs(Arrays.asList("gmvflnwyvqkx")) - .withEnv(Arrays.asList(new EnvironmentVar(), new EnvironmentVar())) - .withResources(new ContainerResources().withCpu(49.010491721008606D).withMemory("yl"))))) - .withDetailedStatus(new ExecutionStatus().withReplicas(Arrays.asList( - new ReplicaExecutionStatus().withName("hghmupgxyj") - .withContainers(Arrays.asList(new ContainerExecutionStatus(), new ContainerExecutionStatus(), - new ContainerExecutionStatus())), - new ReplicaExecutionStatus().withName("abbujftabenb") - .withContainers(Arrays.asList(new ContainerExecutionStatus())), - new ReplicaExecutionStatus().withName("pxzuca") - .withContainers(Arrays.asList(new ContainerExecutionStatus(), new ContainerExecutionStatus(), - new ContainerExecutionStatus(), new ContainerExecutionStatus())), - new ReplicaExecutionStatus().withName("wwnlzafwxudgnh") - .withContainers(Arrays.asList(new ContainerExecutionStatus(), new ContainerExecutionStatus(), - new ContainerExecutionStatus()))))); - model = BinaryData.fromObject(model).toObject(JobExecutionInner.class); - Assertions.assertEquals("txpnrupza", model.name()); - Assertions.assertEquals("rdixt", model.id()); - Assertions.assertEquals("kidswys", model.type()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-17T17:15:37Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T15:00:18Z"), model.endTime()); - Assertions.assertEquals("utvlxhr", model.template().containers().get(0).image()); - Assertions.assertEquals("hvmblcouqehbhbc", model.template().containers().get(0).name()); - Assertions.assertEquals("iryr", model.template().containers().get(0).command().get(0)); - Assertions.assertEquals("dykalsygaolnjpnn", model.template().containers().get(0).args().get(0)); - Assertions.assertEquals(17.229341989191948D, model.template().containers().get(0).resources().cpu()); - Assertions.assertEquals("wbjijkgq", model.template().containers().get(0).resources().memory()); - Assertions.assertEquals("znj", model.template().initContainers().get(0).image()); - Assertions.assertEquals("jvaannggiycwkd", model.template().initContainers().get(0).name()); - Assertions.assertEquals("wxwfekaumrr", model.template().initContainers().get(0).command().get(0)); - Assertions.assertEquals("bnxwbjsidbirkf", model.template().initContainers().get(0).args().get(0)); - Assertions.assertEquals(9.06822637742738D, model.template().initContainers().get(0).resources().cpu()); - Assertions.assertEquals("hbguzo", model.template().initContainers().get(0).resources().memory()); - Assertions.assertEquals("hghmupgxyj", model.detailedStatus().replicas().get(0).name()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteMockTests.java deleted file mode 100644 index b39f5ab86fda..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsDeleteMockTests.java +++ /dev/null @@ -1,33 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class JobsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.jobs().delete("ml", "feothxu", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListMockTests.java deleted file mode 100644 index 5e10682e10b2..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsExecutionsListMockTests.java +++ /dev/null @@ -1,53 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.JobExecution; -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 JobsExecutionsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"ulpodkaxpf\",\"id\":\"kzhmhj\",\"type\":\"lt\",\"properties\":{\"status\":\"Running\",\"startTime\":\"2021-01-28T22:25:44Z\",\"endTime\":\"2021-03-24T14:24:46Z\",\"template\":{\"containers\":[{\"image\":\"ztlraysrkgz\",\"name\":\"hudbkuwpzqxlcw\",\"command\":[\"fecjvxf\",\"qufqizj\"],\"args\":[\"wo\",\"a\",\"eyyjmjj\"],\"env\":[{},{}],\"resources\":{}}],\"initContainers\":[{\"image\":\"nzlslekc\",\"name\":\"gzkj\",\"command\":[\"p\",\"wadeghzt\"],\"args\":[\"vczdjiahuqymjzu\",\"wwmejjqhddwvmqx\",\"yookyfozkbnzxby\"],\"env\":[{},{},{}],\"resources\":{}},{\"image\":\"aix\",\"name\":\"grkkderfrswq\",\"command\":[\"epwoggg\",\"cwn\"],\"args\":[\"fmcqb\",\"udzpgchz\",\"gfqumjdjxhzghgo\",\"kynrceqavf\"],\"env\":[{},{},{},{}],\"resources\":{}},{\"image\":\"mxjdnaju\",\"name\":\"jyyqmkw\",\"command\":[\"cwlo\",\"dejkluxxrwzobuz\"],\"args\":[\"g\"],\"env\":[{},{},{}],\"resources\":{}},{\"image\":\"kwppthuzdprmimr\",\"name\":\"dpoqfxyem\",\"command\":[\"tbaewhte\"],\"args\":[\"amfmxtllfl\",\"ymqcnrrfijhgga\",\"qbgamkli\",\"irw\"],\"env\":[{},{},{}],\"resources\":{}}]},\"detailedStatus\":{\"replicas\":[{\"name\":\"zouhktqrxq\",\"containers\":[{},{}]},{\"name\":\"xrdfddtu\",\"containers\":[{}]},{\"name\":\"tavczc\",\"containers\":[{},{},{}]},{\"name\":\"eapyfmlxrlj\",\"containers\":[{},{},{}]}]}}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.jobsExecutions().list("cucsqsnxfbxu", "eapdrbzyv", "su", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ulpodkaxpf", response.iterator().next().name()); - Assertions.assertEquals("kzhmhj", response.iterator().next().id()); - Assertions.assertEquals("lt", response.iterator().next().type()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-28T22:25:44Z"), response.iterator().next().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-24T14:24:46Z"), response.iterator().next().endTime()); - Assertions.assertEquals("ztlraysrkgz", response.iterator().next().template().containers().get(0).image()); - Assertions.assertEquals("hudbkuwpzqxlcw", response.iterator().next().template().containers().get(0).name()); - Assertions.assertEquals("fecjvxf", response.iterator().next().template().containers().get(0).command().get(0)); - Assertions.assertEquals("wo", response.iterator().next().template().containers().get(0).args().get(0)); - Assertions.assertEquals("nzlslekc", response.iterator().next().template().initContainers().get(0).image()); - Assertions.assertEquals("gzkj", response.iterator().next().template().initContainers().get(0).name()); - Assertions.assertEquals("p", response.iterator().next().template().initContainers().get(0).command().get(0)); - Assertions.assertEquals("vczdjiahuqymjzu", - response.iterator().next().template().initContainers().get(0).args().get(0)); - Assertions.assertEquals("zouhktqrxq", response.iterator().next().detailedStatus().replicas().get(0).name()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsGetDetectorWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsGetDetectorWithResponseMockTests.java deleted file mode 100644 index 69f332b4c87e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsGetDetectorWithResponseMockTests.java +++ /dev/null @@ -1,51 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.Diagnostics; -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 JobsGetDetectorWithResponseMockTests { - @Test - public void testGetDetectorWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"metadata\":{\"id\":\"fcnlrtbfi\",\"name\":\"z\",\"description\":\"o\",\"author\":\"olbuauktwieope\",\"category\":\"lxqdwr\",\"supportTopicList\":[{\"id\":\"ljpibkgxyxyauxre\",\"pesId\":\"obmc\"}],\"analysisTypes\":[\"mwytkuj\",\"qycmmoxf\",\"bl\",\"gpwb\"],\"type\":\"hr\",\"score\":10.586852},\"dataset\":[{\"table\":{\"tableName\":\"cgnwplrrbphcts\",\"columns\":[{},{},{}],\"rows\":[\"dataicuhqvumspb\",\"datasfeqbbe\",\"dataf\"]},\"renderingProperties\":{\"type\":627484217,\"title\":\"yyxmzrmtmvwituw\",\"description\":\"yjshcyb\",\"isVisible\":false}},{\"table\":{\"tableName\":\"oxpr\",\"columns\":[{}],\"rows\":[\"dataujx\",\"dataiikmoxrezsvavlrx\"]},\"renderingProperties\":{\"type\":1467273879,\"title\":\"ywlunpipcwybs\",\"description\":\"ncnpat\",\"isVisible\":true}},{\"table\":{\"tableName\":\"ebwf\",\"columns\":[{},{}],\"rows\":[\"datapwal\"]},\"renderingProperties\":{\"type\":1305887513,\"title\":\"exojfccy\",\"description\":\"trhthvazjpwex\",\"isVisible\":true}}],\"status\":{\"message\":\"robzzxezmnrkjgpj\",\"statusId\":1803427824},\"dataProviderMetadata\":{\"providerName\":\"hlokfpmijpdvzv\",\"propertyBag\":[{\"name\":\"bd\",\"value\":\"fvcgnrglaqr\"}]}},\"id\":\"ambhbafebzxf\",\"name\":\"jqut\",\"type\":\"bhlenntrvrkpsab\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Diagnostics response = manager.jobs() - .getDetectorWithResponse("pblalhhez", "fkissaidqzsaa", "qdsgptotxj", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mwytkuj", response.properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("cgnwplrrbphcts", response.properties().dataset().get(0).table().tableName()); - Assertions.assertEquals(627484217, response.properties().dataset().get(0).renderingProperties().type()); - Assertions.assertEquals("yyxmzrmtmvwituw", - response.properties().dataset().get(0).renderingProperties().title()); - Assertions.assertEquals("yjshcyb", response.properties().dataset().get(0).renderingProperties().description()); - Assertions.assertEquals(false, response.properties().dataset().get(0).renderingProperties().isVisible()); - Assertions.assertEquals("robzzxezmnrkjgpj", response.properties().status().message()); - Assertions.assertEquals(1803427824, response.properties().status().statusId()); - Assertions.assertEquals("hlokfpmijpdvzv", response.properties().dataProviderMetadata().providerName()); - Assertions.assertEquals("bd", response.properties().dataProviderMetadata().propertyBag().get(0).name()); - Assertions.assertEquals("fvcgnrglaqr", - response.properties().dataProviderMetadata().propertyBag().get(0).value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsListDetectorsMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsListDetectorsMockTests.java deleted file mode 100644 index 20bb4150cdea..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsListDetectorsMockTests.java +++ /dev/null @@ -1,57 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.Diagnostics; -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 JobsListDetectorsMockTests { - @Test - public void testListDetectors() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"metadata\":{\"id\":\"tqgkujd\",\"name\":\"oxrqw\",\"description\":\"urbti\",\"author\":\"pdyarikeejdpd\",\"category\":\"twmmkfqbriqu\",\"supportTopicList\":[{\"id\":\"rjmeqkvyhz\",\"pesId\":\"poyu\"},{\"id\":\"uensn\",\"pesId\":\"jphmpoejnglpws\"},{\"id\":\"axj\",\"pesId\":\"mxpezco\"},{\"id\":\"yjrmfqzwqd\",\"pesId\":\"keedcnw\"}],\"analysisTypes\":[\"xfqzkvemyzd\"],\"type\":\"zaqpqi\",\"score\":58.71759},\"dataset\":[{\"table\":{\"tableName\":\"wtxzuisam\",\"columns\":[{}],\"rows\":[\"dataizexroqsqj\"]},\"renderingProperties\":{\"type\":1289621459,\"title\":\"hsplwsttxsrgxf\",\"description\":\"aniceovxgzwh\",\"isVisible\":false}},{\"table\":{\"tableName\":\"jmtikes\",\"columns\":[{},{}],\"rows\":[\"datahzixyqhfnkvy\",\"dataqqqdseipnquwz\",\"datahrptyodlhkfktltd\",\"datasobjop\"]},\"renderingProperties\":{\"type\":777460932,\"title\":\"qezkqxs\",\"description\":\"uzyigfcvcewbwqhd\",\"isVisible\":false}},{\"table\":{\"tableName\":\"tmrncma\",\"columns\":[{}],\"rows\":[\"dataxhyqmr\",\"datajparnpvgrszrbwt\"]},\"renderingProperties\":{\"type\":1077805593,\"title\":\"zwllxzlhhf\",\"description\":\"acfculzjrmhpf\",\"isVisible\":true}},{\"table\":{\"tableName\":\"dqpz\",\"columns\":[{},{}],\"rows\":[\"dataxi\",\"dataunjlzkdrocq\",\"dataxytqq\"]},\"renderingProperties\":{\"type\":1957395389,\"title\":\"dwisvnmeyl\",\"description\":\"amcajyhftpzcrryk\",\"isVisible\":false}}],\"status\":{\"message\":\"qanhkigg\",\"statusId\":1710211884},\"dataProviderMetadata\":{\"providerName\":\"lhv\",\"propertyBag\":[{\"name\":\"zphetxdqcm\",\"value\":\"tajqzj\"}]}},\"id\":\"lecxbibiwks\",\"name\":\"egyxsbfpzvoik\",\"type\":\"ntwczfzwushlc\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.jobs().listDetectors("qmawzjdrpizfu", "gyc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xfqzkvemyzd", - response.iterator().next().properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("wtxzuisam", - response.iterator().next().properties().dataset().get(0).table().tableName()); - Assertions.assertEquals(1289621459, - response.iterator().next().properties().dataset().get(0).renderingProperties().type()); - Assertions.assertEquals("hsplwsttxsrgxf", - response.iterator().next().properties().dataset().get(0).renderingProperties().title()); - Assertions.assertEquals("aniceovxgzwh", - response.iterator().next().properties().dataset().get(0).renderingProperties().description()); - Assertions.assertEquals(false, - response.iterator().next().properties().dataset().get(0).renderingProperties().isVisible()); - Assertions.assertEquals("qanhkigg", response.iterator().next().properties().status().message()); - Assertions.assertEquals(1710211884, response.iterator().next().properties().status().statusId()); - Assertions.assertEquals("lhv", response.iterator().next().properties().dataProviderMetadata().providerName()); - Assertions.assertEquals("zphetxdqcm", - response.iterator().next().properties().dataProviderMetadata().propertyBag().get(0).name()); - Assertions.assertEquals("tajqzj", - response.iterator().next().properties().dataProviderMetadata().propertyBag().get(0).value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionMockTests.java deleted file mode 100644 index 9b63083f0d7c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsStopExecutionMockTests.java +++ /dev/null @@ -1,33 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class JobsStopExecutionMockTests { - @Test - public void testStopExecution() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.jobs().stopExecution("jvlirk", "ucosawrdt", "agzlgpyai", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsMockTests.java deleted file mode 100644 index 924fc73d7f3c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JobsStopMultipleExecutionsMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.ContainerAppJobExecutions; -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 JobsStopMultipleExecutionsMockTests { - @Test - public void testStopMultipleExecutions() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"dcpks\",\"id\":\"ojermhzicsbfdjhy\",\"type\":\"knyuki\",\"properties\":{\"status\":\"Unknown\",\"startTime\":\"2021-04-30T04:52:05Z\",\"endTime\":\"2021-04-28T16:27:01Z\",\"template\":{\"containers\":[{},{},{}],\"initContainers\":[{}]},\"detailedStatus\":{\"replicas\":[{},{},{}]}}},{\"name\":\"ilhvtozyagjj\",\"id\":\"k\",\"type\":\"lh\",\"properties\":{\"status\":\"Unknown\",\"startTime\":\"2021-06-20T06:55:53Z\",\"endTime\":\"2020-12-31T17:44:18Z\",\"template\":{\"containers\":[{}],\"initContainers\":[{},{}]},\"detailedStatus\":{\"replicas\":[{},{},{},{}]}}},{\"name\":\"s\",\"id\":\"vq\",\"type\":\"nsgnwxlwmez\",\"properties\":{\"status\":\"Stopped\",\"startTime\":\"2021-02-19T17:59:35Z\",\"endTime\":\"2020-12-21T20:32:13Z\",\"template\":{\"containers\":[{},{}],\"initContainers\":[{},{},{},{}]},\"detailedStatus\":{\"replicas\":[{},{},{}]}}}],\"nextLink\":\"vesob\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ContainerAppJobExecutions response - = manager.jobs().stopMultipleExecutions("ihzqjjtsmuy", "qfttkacybdueur", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dcpks", response.value().get(0).name()); - Assertions.assertEquals("ojermhzicsbfdjhy", response.value().get(0).id()); - Assertions.assertEquals("knyuki", response.value().get(0).type()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-30T04:52:05Z"), response.value().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-28T16:27:01Z"), response.value().get(0).endTime()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JwtClaimChecksTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JwtClaimChecksTests.java deleted file mode 100644 index 4b359efc6ac8..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/JwtClaimChecksTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JwtClaimChecks; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class JwtClaimChecksTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JwtClaimChecks model = BinaryData - .fromString("{\"allowedGroups\":[\"klj\",\"vbqid\"],\"allowedClientApplications\":[\"jzyulpk\",\"dj\"]}") - .toObject(JwtClaimChecks.class); - Assertions.assertEquals("klj", model.allowedGroups().get(0)); - Assertions.assertEquals("jzyulpk", model.allowedClientApplications().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JwtClaimChecks model = new JwtClaimChecks().withAllowedGroups(Arrays.asList("klj", "vbqid")) - .withAllowedClientApplications(Arrays.asList("jzyulpk", "dj")); - model = BinaryData.fromObject(model).toObject(JwtClaimChecks.class); - Assertions.assertEquals("klj", model.allowedGroups().get(0)); - Assertions.assertEquals("jzyulpk", model.allowedClientApplications().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/KedaConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/KedaConfigurationTests.java deleted file mode 100644 index 317b25fd96a0..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/KedaConfigurationTests.java +++ /dev/null @@ -1,21 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.KedaConfiguration; - -public final class KedaConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KedaConfiguration model = BinaryData.fromString("{\"version\":\"knapq\"}").toObject(KedaConfiguration.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KedaConfiguration model = new KedaConfiguration(); - model = BinaryData.fromObject(model).toObject(KedaConfiguration.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ListUsagesResultTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ListUsagesResultTests.java deleted file mode 100644 index a8bc854264e8..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ListUsagesResultTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.UsageInner; -import com.azure.resourcemanager.appcontainers.models.ListUsagesResult; -import com.azure.resourcemanager.appcontainers.models.UsageName; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ListUsagesResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListUsagesResult model = BinaryData.fromString( - "{\"value\":[{\"currentValue\":38.06893,\"limit\":13.099998,\"name\":{\"value\":\"kvhd\",\"localizedValue\":\"wyojbfqzdkfnjyi\"}}],\"nextLink\":\"afr\"}") - .toObject(ListUsagesResult.class); - Assertions.assertEquals(38.06893f, model.value().get(0).currentValue()); - Assertions.assertEquals(13.099998f, model.value().get(0).limit()); - Assertions.assertEquals("kvhd", model.value().get(0).name().value()); - Assertions.assertEquals("wyojbfqzdkfnjyi", model.value().get(0).name().localizedValue()); - Assertions.assertEquals("afr", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListUsagesResult model = new ListUsagesResult() - .withValue(Arrays.asList(new UsageInner().withCurrentValue(38.06893f) - .withLimit(13.099998f) - .withName(new UsageName().withValue("kvhd").withLocalizedValue("wyojbfqzdkfnjyi")))) - .withNextLink("afr"); - model = BinaryData.fromObject(model).toObject(ListUsagesResult.class); - Assertions.assertEquals(38.06893f, model.value().get(0).currentValue()); - Assertions.assertEquals(13.099998f, model.value().get(0).limit()); - Assertions.assertEquals("kvhd", model.value().get(0).name().value()); - Assertions.assertEquals("wyojbfqzdkfnjyi", model.value().get(0).name().localizedValue()); - Assertions.assertEquals("afr", model.nextLink()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LoggerSettingTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LoggerSettingTests.java deleted file mode 100644 index 2c24ade73bc1..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LoggerSettingTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Level; -import com.azure.resourcemanager.appcontainers.models.LoggerSetting; -import org.junit.jupiter.api.Assertions; - -public final class LoggerSettingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LoggerSetting model - = BinaryData.fromString("{\"logger\":\"k\",\"level\":\"error\"}").toObject(LoggerSetting.class); - Assertions.assertEquals("k", model.logger()); - Assertions.assertEquals(Level.ERROR, model.level()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LoggerSetting model = new LoggerSetting().withLogger("k").withLevel(Level.ERROR); - model = BinaryData.fromObject(model).toObject(LoggerSetting.class); - Assertions.assertEquals("k", model.logger()); - Assertions.assertEquals(Level.ERROR, model.level()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppInnerTests.java deleted file mode 100644 index d1dad4f32cd5..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.LogicAppInner; - -public final class LogicAppInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogicAppInner model = BinaryData - .fromString( - "{\"properties\":\"datad\",\"id\":\"llgryfqiuasigr\",\"name\":\"wsocnequygdjbo\",\"type\":\"grmtqjk\"}") - .toObject(LogicAppInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogicAppInner model = new LogicAppInner().withProperties("datad"); - model = BinaryData.fromObject(model).toObject(LogicAppInner.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsCreateOrUpdateWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 0a07f700d8a3..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsCreateOrUpdateWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.LogicApp; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LogicAppsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":\"datawny\",\"id\":\"xuprrxyxwjezb\",\"name\":\"qployu\",\"type\":\"kdcpvu\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - LogicApp response = manager.logicApps() - .define("cdiiisklbonx") - .withExistingContainerApp("rdytzfslxizhq", "kmgobliqe") - .withProperties("datapjxvtrkfkg") - .create(); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeleteWithResponseMockTests.java deleted file mode 100644 index 24175beb12b3..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LogicAppsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.logicApps() - .deleteWithResponse("uxlvrhprrvbwonl", "qflvtlrvbst", "huy", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeployWorkflowArtifactsWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeployWorkflowArtifactsWithResponseMockTests.java deleted file mode 100644 index d2f97b946b8f..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsDeployWorkflowArtifactsWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.WorkflowArtifacts; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LogicAppsDeployWorkflowArtifactsWithResponseMockTests { - @Test - public void testDeployWorkflowArtifactsWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.logicApps() - .deployWorkflowArtifactsWithResponse("swtvd", "xbqssgfenffdxbvw", "qjchivd", - new WorkflowArtifacts().withAppSettings("dataj") - .withFiles("dataxndmuvar") - .withFilesToDelete(Arrays.asList("zj", "tp", "rmuhcuhtuzlx")), - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetWithResponseMockTests.java deleted file mode 100644 index 125a66579268..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsGetWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.LogicApp; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LogicAppsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":\"datas\",\"id\":\"ewuvcysjeuf\",\"name\":\"x\",\"type\":\"lpditfnonpi\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - LogicApp response = manager.logicApps() - .getWithResponse("w", "pkvegeatt", "zkgtzqn", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsInvokeWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsInvokeWithResponseMockTests.java deleted file mode 100644 index c2d5ca3c9a0c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogicAppsInvokeWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.LogicAppsProxyMethod; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class LogicAppsInvokeWithResponseMockTests { - @Test - public void testInvokeWithResponse() throws Exception { - String responseStr = "\"dataspimtcvvf\""; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Object response = manager.logicApps() - .invokeWithResponse("teyrqshi", "bcejopylbl", "sp", "r", LogicAppsProxyMethod.POST, - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LoginRoutesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LoginRoutesTests.java deleted file mode 100644 index c33d27beef8e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LoginRoutesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.LoginRoutes; -import org.junit.jupiter.api.Assertions; - -public final class LoginRoutesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LoginRoutes model - = BinaryData.fromString("{\"logoutEndpoint\":\"qvpkvlrxnjeaseip\"}").toObject(LoginRoutes.class); - Assertions.assertEquals("qvpkvlrxnjeaseip", model.logoutEndpoint()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LoginRoutes model = new LoginRoutes().withLogoutEndpoint("qvpkvlrxnjeaseip"); - model = BinaryData.fromObject(model).toObject(LoginRoutes.class); - Assertions.assertEquals("qvpkvlrxnjeaseip", model.logoutEndpoint()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LoginScopesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LoginScopesTests.java deleted file mode 100644 index 5a453060b946..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LoginScopesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.LoginScopes; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LoginScopesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LoginScopes model = BinaryData.fromString("{\"scopes\":[\"exhd\",\"xibqeojnx\"]}").toObject(LoginScopes.class); - Assertions.assertEquals("exhd", model.scopes().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LoginScopes model = new LoginScopes().withScopes(Arrays.asList("exhd", "xibqeojnx")); - model = BinaryData.fromObject(model).toObject(LoginScopes.class); - Assertions.assertEquals("exhd", model.scopes().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogsConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogsConfigurationTests.java deleted file mode 100644 index 8457dca6af76..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/LogsConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.LogsConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LogsConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LogsConfiguration model - = BinaryData.fromString("{\"destinations\":[\"uxvnsasbcrymodi\",\"rxklobdxnazpmk\",\"lmv\"]}") - .toObject(LogsConfiguration.class); - Assertions.assertEquals("uxvnsasbcrymodi", model.destinations().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LogsConfiguration model - = new LogsConfiguration().withDestinations(Arrays.asList("uxvnsasbcrymodi", "rxklobdxnazpmk", "lmv")); - model = BinaryData.fromObject(model).toObject(LogsConfiguration.class); - Assertions.assertEquals("uxvnsasbcrymodi", model.destinations().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatePatchTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatePatchTests.java deleted file mode 100644 index eea7193839d7..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatePatchTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ManagedCertificatePatch; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedCertificatePatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedCertificatePatch model - = BinaryData.fromString("{\"tags\":{\"tgroesh\":\"ugtywatmqaqkue\",\"yf\":\"ygzc\",\"faoytehqpuv\":\"x\"}}") - .toObject(ManagedCertificatePatch.class); - Assertions.assertEquals("ugtywatmqaqkue", model.tags().get("tgroesh")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedCertificatePatch model = new ManagedCertificatePatch() - .withTags(mapOf("tgroesh", "ugtywatmqaqkue", "yf", "ygzc", "faoytehqpuv", "x")); - model = BinaryData.fromObject(model).toObject(ManagedCertificatePatch.class); - Assertions.assertEquals("ugtywatmqaqkue", model.tags().get("tgroesh")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteWithResponseMockTests.java deleted file mode 100644 index 780572825f7d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedCertificatesDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedCertificatesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.managedCertificates() - .deleteWithResponse("kclbtxluevsol", "wil", "ngojfsqebuuxjx", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorWithResponseMockTests.java deleted file mode 100644 index 3583076f7dbc..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsGetDetectorWithResponseMockTests.java +++ /dev/null @@ -1,51 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.Diagnostics; -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 ManagedEnvironmentDiagnosticsGetDetectorWithResponseMockTests { - @Test - public void testGetDetectorWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"metadata\":{\"id\":\"ctsfaeuhwwsknst\",\"name\":\"uzhasupmlppdpgz\",\"description\":\"qazvbkarkptgo\",\"author\":\"ruatsyiysjqhen\",\"category\":\"beqngubabyjde\",\"supportTopicList\":[{\"id\":\"se\",\"pesId\":\"zjemexmnvkvm\"}],\"analysisTypes\":[\"xlniwmcpm\"],\"type\":\"dlhvdv\",\"score\":54.403477},\"dataset\":[{\"table\":{\"tableName\":\"eqjzm\",\"columns\":[{},{},{},{}],\"rows\":[\"dataacroczfmu\",\"dataerkeluxzsh\"]},\"renderingProperties\":{\"type\":348446577,\"title\":\"zuzudlevzskejc\",\"description\":\"fsgqkstyecupyuij\",\"isVisible\":true}},{\"table\":{\"tableName\":\"vs\",\"columns\":[{},{},{}],\"rows\":[\"datazpzdqwuzvcmcokx\",\"datazeku\",\"datafrjwucaon\"]},\"renderingProperties\":{\"type\":66680980,\"title\":\"vbnkrdemdidac\",\"description\":\"idgzwdydamis\",\"isVisible\":true}}],\"status\":{\"message\":\"ivykp\",\"statusId\":1452092456},\"dataProviderMetadata\":{\"providerName\":\"tpjfojiunrlshxuk\",\"propertyBag\":[{\"name\":\"dtoiboancdrcoanv\",\"value\":\"ldxonckb\"}]}},\"id\":\"blfxlupibaqzi\",\"name\":\"xz\",\"type\":\"zweghlwwbogvg\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Diagnostics response = manager.managedEnvironmentDiagnostics() - .getDetectorWithResponse("wepgqvqokql", "jqgir", "bwlyvxc", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xlniwmcpm", response.properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("eqjzm", response.properties().dataset().get(0).table().tableName()); - Assertions.assertEquals(348446577, response.properties().dataset().get(0).renderingProperties().type()); - Assertions.assertEquals("zuzudlevzskejc", response.properties().dataset().get(0).renderingProperties().title()); - Assertions.assertEquals("fsgqkstyecupyuij", - response.properties().dataset().get(0).renderingProperties().description()); - Assertions.assertEquals(true, response.properties().dataset().get(0).renderingProperties().isVisible()); - Assertions.assertEquals("ivykp", response.properties().status().message()); - Assertions.assertEquals(1452092456, response.properties().status().statusId()); - Assertions.assertEquals("tpjfojiunrlshxuk", response.properties().dataProviderMetadata().providerName()); - Assertions.assertEquals("dtoiboancdrcoanv", - response.properties().dataProviderMetadata().propertyBag().get(0).name()); - Assertions.assertEquals("ldxonckb", response.properties().dataProviderMetadata().propertyBag().get(0).value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsWithResponseMockTests.java deleted file mode 100644 index e5047880b328..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentDiagnosticsListDetectorsWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.DiagnosticsCollection; -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 ManagedEnvironmentDiagnosticsListDetectorsWithResponseMockTests { - @Test - public void testListDetectorsWithResponse() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"metadata\":{\"id\":\"cefiqdkt\",\"name\":\"kvi\",\"description\":\"pfliwo\",\"author\":\"guuzh\",\"category\":\"ladpcmhjha\",\"supportTopicList\":[{},{}],\"analysisTypes\":[\"ekymffztsilscvqs\",\"eiihfymko\",\"ihyeseu\",\"gcigzh\"],\"type\":\"smg\",\"score\":10.501915},\"dataset\":[{},{}],\"status\":{\"message\":\"qbe\",\"statusId\":1386199066},\"dataProviderMetadata\":{\"providerName\":\"eglabtvkbiwznhtf\",\"propertyBag\":[{},{},{}]}},\"id\":\"udy\",\"name\":\"izpacz\",\"type\":\"uhbcak\"},{\"properties\":{\"metadata\":{\"id\":\"khoitw\",\"name\":\"jsdmm\",\"description\":\"dnckidbjpglhz\",\"author\":\"xzbawkikc\",\"category\":\"fhbssdpjeyoqxded\",\"supportTopicList\":[{}],\"analysisTypes\":[\"hagxsure\"],\"type\":\"rshzzbgullcxiqqz\",\"score\":23.802269},\"dataset\":[{},{},{}],\"status\":{\"message\":\"n\",\"statusId\":469087656},\"dataProviderMetadata\":{\"providerName\":\"ouigdmfivjqte\",\"propertyBag\":[{}]}},\"id\":\"igdyd\",\"name\":\"ghpcvrwqirvt\",\"type\":\"tyhhmvfxlapja\"}],\"nextLink\":\"dmkr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DiagnosticsCollection response = manager.managedEnvironmentDiagnostics() - .listDetectorsWithResponse("fshksnyzmspamwb", "m", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ekymffztsilscvqs", - response.value().get(0).properties().metadata().analysisTypes().get(0)); - Assertions.assertEquals("qbe", response.value().get(0).properties().status().message()); - Assertions.assertEquals(1386199066, response.value().get(0).properties().status().statusId()); - Assertions.assertEquals("eglabtvkbiwznhtf", - response.value().get(0).properties().dataProviderMetadata().providerName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateMockTests.java deleted file mode 100644 index f68b5b651f0d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,51 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpoint; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointConnection; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnectionState; -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 ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"groupIds\":[\"jwd\",\"dl\",\"mkxerxxxoteeh\",\"howgomvvhxo\"],\"privateEndpoint\":{\"id\":\"bap\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"aqawbmpspfeylql\",\"actionsRequired\":\"vvujex\"},\"provisioningState\":\"Succeeded\"},\"id\":\"xrkgjn\",\"name\":\"zpaslavxjfiuo\",\"type\":\"pieidzlvssqy\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnection response = manager.managedEnvironmentPrivateEndpointConnections() - .define("hefr") - .withExistingManagedEnvironment("ryldsxeb", "hsxrznmgsdaluyc") - .withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("ewouxl") - .withActionsRequired("s")) - .create(); - - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, - response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("aqawbmpspfeylql", response.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("vvujex", response.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsGetWithResponseMockTests.java deleted file mode 100644 index 94ace63b8eed..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsGetWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointConnection; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointServiceConnectionStatus; -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 ManagedEnvironmentPrivateEndpointConnectionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"groupIds\":[\"vmzrq\",\"azad\"],\"privateEndpoint\":{\"id\":\"nllaslkskh\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"vbaihxjt\",\"actionsRequired\":\"gtaiywbq\"},\"provisioningState\":\"Waiting\"},\"id\":\"gbsfsgsaenwldf\",\"name\":\"hljqlxsp\",\"type\":\"rjc\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnection response = manager.managedEnvironmentPrivateEndpointConnections() - .getWithResponse("kft", "mcxqqxmyzklao", "n", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, - response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("vbaihxjt", response.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("gtaiywbq", response.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsListMockTests.java deleted file mode 100644 index 03dae9999fe5..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateEndpointConnectionsListMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointConnection; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointServiceConnectionStatus; -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 ManagedEnvironmentPrivateEndpointConnectionsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"groupIds\":[\"nhwhhnoyrzaao\",\"e\"],\"privateEndpoint\":{\"id\":\"jenvjeateaxx\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"xdjxldn\",\"actionsRequired\":\"yyi\"},\"provisioningState\":\"Waiting\"},\"id\":\"olrndwdb\",\"name\":\"xvzaledoy\",\"type\":\"xlu\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.managedEnvironmentPrivateEndpointConnections() - .list("foc", "hapejov", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.DISCONNECTED, - response.iterator().next().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xdjxldn", - response.iterator().next().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("yyi", - response.iterator().next().privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateLinkResourcesListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateLinkResourcesListMockTests.java deleted file mode 100644 index c1c3d2d6fef7..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPrivateLinkResourcesListMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.PrivateLinkResource; -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 ManagedEnvironmentPrivateLinkResourcesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"wgsoriobijeiydy\",\"requiredMembers\":[\"nhbokayrgwybrio\",\"dweoftnorwaigsi\",\"ctqkmvjanx\"],\"requiredZoneNames\":[\"ffhtjnw\",\"sstfjxtvlxx\",\"qfcwr\"]},\"id\":\"omxeezwyhjmb\",\"name\":\"iqegm\",\"type\":\"db\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.managedEnvironmentPrivateLinkResources() - .list("jopackyhydv", "kmfngpmillxgjs", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ffhtjnw", response.iterator().next().requiredZoneNames().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPropertiesPeerAuthenticationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPropertiesPeerAuthenticationTests.java deleted file mode 100644 index 5e7b39d3ab48..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPropertiesPeerAuthenticationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication; -import com.azure.resourcemanager.appcontainers.models.Mtls; -import org.junit.jupiter.api.Assertions; - -public final class ManagedEnvironmentPropertiesPeerAuthenticationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedEnvironmentPropertiesPeerAuthentication model = BinaryData.fromString("{\"mtls\":{\"enabled\":true}}") - .toObject(ManagedEnvironmentPropertiesPeerAuthentication.class); - Assertions.assertEquals(true, model.mtls().enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedEnvironmentPropertiesPeerAuthentication model - = new ManagedEnvironmentPropertiesPeerAuthentication().withMtls(new Mtls().withEnabled(true)); - model = BinaryData.fromObject(model).toObject(ManagedEnvironmentPropertiesPeerAuthentication.class); - Assertions.assertEquals(true, model.mtls().enabled()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryptionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryptionTests.java deleted file mode 100644 index 359c7c91e0b4..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryptionTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption; -import org.junit.jupiter.api.Assertions; - -public final class ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryptionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption model - = BinaryData.fromString("{\"enabled\":false}") - .toObject(ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption.class); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption model - = new ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption().withEnabled(false); - model = BinaryData.fromObject(model) - .toObject(ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption.class); - Assertions.assertEquals(false, model.enabled()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPropertiesPeerTrafficConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPropertiesPeerTrafficConfigurationTests.java deleted file mode 100644 index fa5a7e9e6d9e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentPropertiesPeerTrafficConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration; -import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption; -import org.junit.jupiter.api.Assertions; - -public final class ManagedEnvironmentPropertiesPeerTrafficConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedEnvironmentPropertiesPeerTrafficConfiguration model - = BinaryData.fromString("{\"encryption\":{\"enabled\":false}}") - .toObject(ManagedEnvironmentPropertiesPeerTrafficConfiguration.class); - Assertions.assertEquals(false, model.encryption().enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedEnvironmentPropertiesPeerTrafficConfiguration model - = new ManagedEnvironmentPropertiesPeerTrafficConfiguration().withEncryption( - new ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption().withEnabled(false)); - model = BinaryData.fromObject(model).toObject(ManagedEnvironmentPropertiesPeerTrafficConfiguration.class); - Assertions.assertEquals(false, model.encryption().enabled()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentUsagesListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentUsagesListMockTests.java deleted file mode 100644 index 35f00a19c126..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentUsagesListMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.Usage; -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 ManagedEnvironmentUsagesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"currentValue\":42.167175,\"limit\":67.46842,\"name\":{\"value\":\"czdquurbo\",\"localizedValue\":\"vhvzielbprnqu\"}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.managedEnvironmentUsages().list("pfduiol", "gyqvpbfjpoqzuc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(42.167175f, response.iterator().next().currentValue()); - Assertions.assertEquals(67.46842f, response.iterator().next().limit()); - Assertions.assertEquals("czdquurbo", response.iterator().next().name().value()); - Assertions.assertEquals("vhvzielbprnqu", response.iterator().next().name().localizedValue()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteMockTests.java deleted file mode 100644 index e502e88236f8..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsDeleteMockTests.java +++ /dev/null @@ -1,33 +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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedEnvironmentsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.managedEnvironments().delete("bxiqahragpxmibpl", "upoyryefqm", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesMockTests.java deleted file mode 100644 index 7a91138c1bfb..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsListWorkloadProfileStatesMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.WorkloadProfileStates; -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 ManagedEnvironmentsListWorkloadProfileStatesMockTests { - @Test - public void testListWorkloadProfileStates() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"minimumCount\":407747956,\"maximumCount\":578702715,\"currentCount\":2127681631},\"id\":\"aryrvj\",\"name\":\"gdezvjqwahoy\",\"type\":\"yaxqvjweiwtczkd\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.managedEnvironments() - .listWorkloadProfileStates("llukkreh", "htmjo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(407747956, response.iterator().next().properties().minimumCount()); - Assertions.assertEquals(578702715, response.iterator().next().properties().maximumCount()); - Assertions.assertEquals(2127681631, response.iterator().next().properties().currentCount()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteWithResponseMockTests.java deleted file mode 100644 index 8ea83baa9a0c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedEnvironmentsStoragesDeleteWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ManagedEnvironmentsStoragesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.managedEnvironmentsStorages() - .deleteWithResponse("rletndqlmf", "ggnbbuypwovvvsfl", "evnoqayrehjuqwva", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedServiceIdentityTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedServiceIdentityTests.java deleted file mode 100644 index 9f18bd7b0e51..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ManagedServiceIdentityTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentity; -import com.azure.resourcemanager.appcontainers.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedServiceIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"a48bee7a-ec22-4313-bfd5-d9af92b4ff2e\",\"tenantId\":\"9529ca00-5f90-47e2-abab-e6fc52c0c7a6\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"wgxhn\":{\"principalId\":\"6e2421e4-b763-4a85-9d29-a6d823227b53\",\"clientId\":\"35316ff8-50d8-41ab-b5f6-160f742aee80\"},\"x\":{\"principalId\":\"f39cbe12-3855-4e0f-9270-0cfcac855f06\",\"clientId\":\"5a1a96a1-b988-43fe-94b4-154f97bce62a\"}}}") - .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("wgxhn", new UserAssignedIdentity(), "x", new UserAssignedIdentity())); - model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/MetricsConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/MetricsConfigurationTests.java deleted file mode 100644 index b627b31d63d3..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/MetricsConfigurationTests.java +++ /dev/null @@ -1,26 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.MetricsConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MetricsConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MetricsConfiguration model - = BinaryData.fromString("{\"destinations\":[\"xzopjhbzxl\"]}").toObject(MetricsConfiguration.class); - Assertions.assertEquals("xzopjhbzxl", model.destinations().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetricsConfiguration model = new MetricsConfiguration().withDestinations(Arrays.asList("xzopjhbzxl")); - model = BinaryData.fromObject(model).toObject(MetricsConfiguration.class); - Assertions.assertEquals("xzopjhbzxl", model.destinations().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/MtlsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/MtlsTests.java deleted file mode 100644 index ab133ecdb6d4..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/MtlsTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Mtls; -import org.junit.jupiter.api.Assertions; - -public final class MtlsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Mtls model = BinaryData.fromString("{\"enabled\":false}").toObject(Mtls.class); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Mtls model = new Mtls().withEnabled(false); - model = BinaryData.fromObject(model).toObject(Mtls.class); - Assertions.assertEquals(false, model.enabled()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NacosComponentTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NacosComponentTests.java deleted file mode 100644 index b635af6e5a12..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NacosComponentTests.java +++ /dev/null @@ -1,46 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.JavaComponentIngress; -import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; -import com.azure.resourcemanager.appcontainers.models.NacosComponent; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NacosComponentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NacosComponent model = BinaryData.fromString( - "{\"componentType\":\"Nacos\",\"ingress\":{\"fqdn\":\"uhvajmailfemjjza\"},\"provisioningState\":\"InProgress\",\"configurations\":[{\"propertyName\":\"ullqxbdmvrscm\",\"value\":\"rndb\"},{\"propertyName\":\"yeofltfnnxrkad\",\"value\":\"ynnfmuiii\"},{\"propertyName\":\"pfoh\",\"value\":\"fkx\"}],\"serviceBinds\":[{\"name\":\"r\",\"serviceId\":\"iutgnjizbeewoiy\"},{\"name\":\"vzbjuyrsrzi\",\"serviceId\":\"tixgbd\"},{\"name\":\"ifrevk\",\"serviceId\":\"pezkis\"},{\"name\":\"jm\",\"serviceId\":\"hsyparybjuf\"}]}") - .toObject(NacosComponent.class); - Assertions.assertEquals("ullqxbdmvrscm", model.configurations().get(0).propertyName()); - Assertions.assertEquals("rndb", model.configurations().get(0).value()); - Assertions.assertEquals("r", model.serviceBinds().get(0).name()); - Assertions.assertEquals("iutgnjizbeewoiy", model.serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NacosComponent model = new NacosComponent() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("ullqxbdmvrscm").withValue("rndb"), - new JavaComponentConfigurationProperty().withPropertyName("yeofltfnnxrkad").withValue("ynnfmuiii"), - new JavaComponentConfigurationProperty().withPropertyName("pfoh").withValue("fkx"))) - .withServiceBinds( - Arrays.asList(new JavaComponentServiceBind().withName("r").withServiceId("iutgnjizbeewoiy"), - new JavaComponentServiceBind().withName("vzbjuyrsrzi").withServiceId("tixgbd"), - new JavaComponentServiceBind().withName("ifrevk").withServiceId("pezkis"), - new JavaComponentServiceBind().withName("jm").withServiceId("hsyparybjuf"))) - .withIngress(new JavaComponentIngress()); - model = BinaryData.fromObject(model).toObject(NacosComponent.class); - Assertions.assertEquals("ullqxbdmvrscm", model.configurations().get(0).propertyName()); - Assertions.assertEquals("rndb", model.configurations().get(0).value()); - Assertions.assertEquals("r", model.serviceBinds().get(0).name()); - Assertions.assertEquals("iutgnjizbeewoiy", model.serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilityWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index e3c03eac8ac0..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NamespacesCheckNameAvailabilityWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityReason; -import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityRequest; -import com.azure.resourcemanager.appcontainers.models.CheckNameAvailabilityResponse; -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 NamespacesCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"nameAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"v\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameAvailabilityResponse response = manager.namespaces() - .checkNameAvailabilityWithResponse("v", "yjz", - new CheckNameAvailabilityRequest().withName("vfwjlo").withType("ekfsrm"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals(CheckNameAvailabilityReason.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("v", response.message()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NfsAzureFilePropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NfsAzureFilePropertiesTests.java deleted file mode 100644 index dff82305569b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NfsAzureFilePropertiesTests.java +++ /dev/null @@ -1,33 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.AccessMode; -import com.azure.resourcemanager.appcontainers.models.NfsAzureFileProperties; -import org.junit.jupiter.api.Assertions; - -public final class NfsAzureFilePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NfsAzureFileProperties model = BinaryData - .fromString("{\"server\":\"qswbqerzwx\",\"accessMode\":\"ReadOnly\",\"shareName\":\"tdgukvlbp\"}") - .toObject(NfsAzureFileProperties.class); - Assertions.assertEquals("qswbqerzwx", model.server()); - Assertions.assertEquals(AccessMode.READ_ONLY, model.accessMode()); - Assertions.assertEquals("tdgukvlbp", model.shareName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NfsAzureFileProperties model = new NfsAzureFileProperties().withServer("qswbqerzwx") - .withAccessMode(AccessMode.READ_ONLY) - .withShareName("tdgukvlbp"); - model = BinaryData.fromObject(model).toObject(NfsAzureFileProperties.class); - Assertions.assertEquals("qswbqerzwx", model.server()); - Assertions.assertEquals(AccessMode.READ_ONLY, model.accessMode()); - Assertions.assertEquals("tdgukvlbp", model.shareName()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NonceTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NonceTests.java deleted file mode 100644 index 1dd4cbc2e2c6..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/NonceTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Nonce; -import org.junit.jupiter.api.Assertions; - -public final class NonceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Nonce model = BinaryData.fromString("{\"validateNonce\":true,\"nonceExpirationInterval\":\"asxazjpqyegualhb\"}") - .toObject(Nonce.class); - Assertions.assertEquals(true, model.validateNonce()); - Assertions.assertEquals("asxazjpqyegualhb", model.nonceExpirationInterval()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Nonce model = new Nonce().withValidateNonce(true).withNonceExpirationInterval("asxazjpqyegualhb"); - model = BinaryData.fromObject(model).toObject(Nonce.class); - Assertions.assertEquals(true, model.validateNonce()); - Assertions.assertEquals("asxazjpqyegualhb", model.nonceExpirationInterval()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OpenIdConnectLoginTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OpenIdConnectLoginTests.java deleted file mode 100644 index 1364879d004a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OpenIdConnectLoginTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.OpenIdConnectLogin; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OpenIdConnectLoginTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OpenIdConnectLogin model = BinaryData - .fromString("{\"nameClaimType\":\"nfnbacfionlebxe\",\"scopes\":[\"tzxdpnqbqqwx\",\"jfeallnwsub\"]}") - .toObject(OpenIdConnectLogin.class); - Assertions.assertEquals("nfnbacfionlebxe", model.nameClaimType()); - Assertions.assertEquals("tzxdpnqbqqwx", model.scopes().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OpenIdConnectLogin model = new OpenIdConnectLogin().withNameClaimType("nfnbacfionlebxe") - .withScopes(Arrays.asList("tzxdpnqbqqwx", "jfeallnwsub")); - model = BinaryData.fromObject(model).toObject(OpenIdConnectLogin.class); - Assertions.assertEquals("nfnbacfionlebxe", model.nameClaimType()); - Assertions.assertEquals("tzxdpnqbqqwx", model.scopes().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OperationDetailInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OperationDetailInnerTests.java deleted file mode 100644 index d08ed4a96552..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OperationDetailInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.OperationDetailInner; -import com.azure.resourcemanager.appcontainers.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDetailInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDetailInner model = BinaryData.fromString( - "{\"name\":\"wslmiiiovgqcg\",\"isDataAction\":true,\"display\":{\"provider\":\"kctotiowlxteq\",\"resource\":\"tjgwdtguk\",\"operation\":\"nblwphqlkcc\",\"description\":\"gygqwah\"},\"origin\":\"ulwgniiprglvawuw\"}") - .toObject(OperationDetailInner.class); - Assertions.assertEquals("wslmiiiovgqcg", model.name()); - Assertions.assertEquals(true, model.isDataAction()); - Assertions.assertEquals("kctotiowlxteq", model.display().provider()); - Assertions.assertEquals("tjgwdtguk", model.display().resource()); - Assertions.assertEquals("nblwphqlkcc", model.display().operation()); - Assertions.assertEquals("gygqwah", model.display().description()); - Assertions.assertEquals("ulwgniiprglvawuw", model.origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDetailInner model = new OperationDetailInner().withName("wslmiiiovgqcg") - .withIsDataAction(true) - .withDisplay(new OperationDisplay().withProvider("kctotiowlxteq") - .withResource("tjgwdtguk") - .withOperation("nblwphqlkcc") - .withDescription("gygqwah")) - .withOrigin("ulwgniiprglvawuw"); - model = BinaryData.fromObject(model).toObject(OperationDetailInner.class); - Assertions.assertEquals("wslmiiiovgqcg", model.name()); - Assertions.assertEquals(true, model.isDataAction()); - Assertions.assertEquals("kctotiowlxteq", model.display().provider()); - Assertions.assertEquals("tjgwdtguk", model.display().resource()); - Assertions.assertEquals("nblwphqlkcc", model.display().operation()); - Assertions.assertEquals("gygqwah", model.display().description()); - Assertions.assertEquals("ulwgniiprglvawuw", model.origin()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OperationDisplayTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OperationDisplayTests.java deleted file mode 100644 index 922d1a3d6b00..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OperationDisplayTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"ufypiv\",\"resource\":\"bbjpmcubkmif\",\"operation\":\"xkubvphavpmhbrbq\",\"description\":\"govpbbtte\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("ufypiv", model.provider()); - Assertions.assertEquals("bbjpmcubkmif", model.resource()); - Assertions.assertEquals("xkubvphavpmhbrbq", model.operation()); - Assertions.assertEquals("govpbbtte", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay().withProvider("ufypiv") - .withResource("bbjpmcubkmif") - .withOperation("xkubvphavpmhbrbq") - .withDescription("govpbbtte"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("ufypiv", model.provider()); - Assertions.assertEquals("bbjpmcubkmif", model.resource()); - Assertions.assertEquals("xkubvphavpmhbrbq", model.operation()); - Assertions.assertEquals("govpbbtte", model.description()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OperationsListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OperationsListMockTests.java deleted file mode 100644 index 0dd2d0aaad0e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/OperationsListMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.OperationDetail; -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 OperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"trotpvclpofyrl\",\"isDataAction\":true,\"display\":{\"provider\":\"skwxj\",\"resource\":\"hxccbmkakmko\",\"operation\":\"bputmgvmuyakml\",\"description\":\"tfowzkroyrdurx\"},\"origin\":\"zqjim\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.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); - - Assertions.assertEquals("trotpvclpofyrl", response.iterator().next().name()); - Assertions.assertEquals(true, response.iterator().next().isDataAction()); - Assertions.assertEquals("skwxj", response.iterator().next().display().provider()); - Assertions.assertEquals("hxccbmkakmko", response.iterator().next().display().resource()); - Assertions.assertEquals("bputmgvmuyakml", response.iterator().next().display().operation()); - Assertions.assertEquals("tfowzkroyrdurx", response.iterator().next().display().description()); - Assertions.assertEquals("zqjim", response.iterator().next().origin()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchCollectionTests.java deleted file mode 100644 index cf281b9625c3..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchCollectionTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.ContainerAppsPatchResourceInner; -import com.azure.resourcemanager.appcontainers.models.PatchCollection; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PatchCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PatchCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"targetEnvironmentId\":\"gv\",\"targetContainerAppId\":\"r\",\"targetRevisionId\":\"hriypoqeyhlqhy\",\"patchApplyStatus\":\"Succeeded\",\"createdAt\":\"2021-01-09T17:59:01Z\",\"lastModifiedAt\":\"2021-04-06T19:11:34Z\",\"patchDetails\":[{\"targetContainerName\":\"ciqdsme\",\"targetImage\":\"iitdfuxt\",\"lastDetectionTime\":\"2021-01-27T12:03:12Z\",\"detectionStatus\":\"Succeeded\",\"newImageName\":\"ibmi\",\"newLayer\":{},\"oldLayer\":{},\"patchType\":\"Other\"},{\"targetContainerName\":\"stgnl\",\"targetImage\":\"hnmgixhcm\",\"lastDetectionTime\":\"2021-09-23T01:58:36Z\",\"detectionStatus\":\"Failed\",\"newImageName\":\"foudor\",\"newLayer\":{},\"oldLayer\":{},\"patchType\":\"OSSecurity\"}]},\"id\":\"rotwypundmbxhugc\",\"name\":\"jkavl\",\"type\":\"or\"}],\"nextLink\":\"ftpmdtzfjltfv\"}") - .toObject(PatchCollection.class); - Assertions.assertEquals("ftpmdtzfjltfv", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PatchCollection model = new PatchCollection().withValue(Arrays.asList(new ContainerAppsPatchResourceInner())) - .withNextLink("ftpmdtzfjltfv"); - model = BinaryData.fromObject(model).toObject(PatchCollection.class); - Assertions.assertEquals("ftpmdtzfjltfv", model.nextLink()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchDetailsNewLayerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchDetailsNewLayerTests.java deleted file mode 100644 index 3abae7884424..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchDetailsNewLayerTests.java +++ /dev/null @@ -1,33 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.PatchDetailsNewLayer; -import org.junit.jupiter.api.Assertions; - -public final class PatchDetailsNewLayerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PatchDetailsNewLayer model = BinaryData - .fromString( - "{\"name\":\"xkbsazgakgac\",\"frameworkAndVersion\":\"cmjdmspof\",\"osAndVersion\":\"vuhrylni\"}") - .toObject(PatchDetailsNewLayer.class); - Assertions.assertEquals("xkbsazgakgac", model.name()); - Assertions.assertEquals("cmjdmspof", model.frameworkAndVersion()); - Assertions.assertEquals("vuhrylni", model.osAndVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PatchDetailsNewLayer model = new PatchDetailsNewLayer().withName("xkbsazgakgac") - .withFrameworkAndVersion("cmjdmspof") - .withOsAndVersion("vuhrylni"); - model = BinaryData.fromObject(model).toObject(PatchDetailsNewLayer.class); - Assertions.assertEquals("xkbsazgakgac", model.name()); - Assertions.assertEquals("cmjdmspof", model.frameworkAndVersion()); - Assertions.assertEquals("vuhrylni", model.osAndVersion()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchDetailsOldLayerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchDetailsOldLayerTests.java deleted file mode 100644 index 4fbef982b0cd..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchDetailsOldLayerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.PatchDetailsOldLayer; -import org.junit.jupiter.api.Assertions; - -public final class PatchDetailsOldLayerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PatchDetailsOldLayer model - = BinaryData.fromString("{\"name\":\"rz\",\"frameworkAndVersion\":\"zjedmstkvnlv\",\"osAndVersion\":\"c\"}") - .toObject(PatchDetailsOldLayer.class); - Assertions.assertEquals("rz", model.name()); - Assertions.assertEquals("zjedmstkvnlv", model.frameworkAndVersion()); - Assertions.assertEquals("c", model.osAndVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PatchDetailsOldLayer model - = new PatchDetailsOldLayer().withName("rz").withFrameworkAndVersion("zjedmstkvnlv").withOsAndVersion("c"); - model = BinaryData.fromObject(model).toObject(PatchDetailsOldLayer.class); - Assertions.assertEquals("rz", model.name()); - Assertions.assertEquals("zjedmstkvnlv", model.frameworkAndVersion()); - Assertions.assertEquals("c", model.osAndVersion()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchDetailsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchDetailsTests.java deleted file mode 100644 index 06f5e03f8b7e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchDetailsTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.PatchDetails; - -public final class PatchDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PatchDetails model = BinaryData.fromString( - "{\"targetContainerName\":\"ltnzoibgsxg\",\"targetImage\":\"xfyqonmpqoxwdo\",\"lastDetectionTime\":\"2021-07-30T17:53:09Z\",\"detectionStatus\":\"RegistryLoginFailed\",\"newImageName\":\"iqxeiiqbimht\",\"newLayer\":{\"name\":\"inheh\",\"frameworkAndVersion\":\"pofvwb\",\"osAndVersion\":\"lembnkbwvqvxkdi\"},\"oldLayer\":{\"name\":\"heb\",\"frameworkAndVersion\":\"swbzuwfmdurage\",\"osAndVersion\":\"zvcjfelisdjubggb\"},\"patchType\":\"FrameworkAndOSSecurity\"}") - .toObject(PatchDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PatchDetails model = new PatchDetails(); - model = BinaryData.fromObject(model).toObject(PatchDetails.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchPropertiesTests.java deleted file mode 100644 index 90544584fd30..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchPropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.PatchProperties; -import org.junit.jupiter.api.Assertions; - -public final class PatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PatchProperties model = BinaryData.fromString( - "{\"targetEnvironmentId\":\"vzidsxwaab\",\"targetContainerAppId\":\"ifrygzn\",\"targetRevisionId\":\"axri\",\"patchApplyStatus\":\"CreatingRevision\",\"createdAt\":\"2021-07-14T03:47:36Z\",\"lastModifiedAt\":\"2021-04-29T04:04:36Z\",\"patchDetails\":[{\"targetContainerName\":\"lhslnelxieixyn\",\"targetImage\":\"lxecwcrojphslh\",\"lastDetectionTime\":\"2021-08-31T01:01:22Z\",\"detectionStatus\":\"RegistryLoginFailed\",\"newImageName\":\"u\",\"newLayer\":{\"name\":\"dwfmvigorqjb\",\"frameworkAndVersion\":\"zhraglkafh\",\"osAndVersion\":\"qjujeickpzvcp\"},\"oldLayer\":{\"name\":\"xelnwc\",\"frameworkAndVersion\":\"yjede\",\"osAndVersion\":\"mlfmkqs\"},\"patchType\":\"Other\"},{\"targetContainerName\":\"uawxtzx\",\"targetImage\":\"uamwabzxrvxc\",\"lastDetectionTime\":\"2021-08-01T16:52:04Z\",\"detectionStatus\":\"RegistryLoginFailed\",\"newImageName\":\"phai\",\"newLayer\":{\"name\":\"yasflvgsgzwy\",\"frameworkAndVersion\":\"koih\",\"osAndVersion\":\"smjblmljhlnym\"},\"oldLayer\":{\"name\":\"qyryuzcbmqqvxm\",\"frameworkAndVersion\":\"fgtayxonsup\",\"osAndVersion\":\"jlzqnhc\"},\"patchType\":\"FrameworkSecurity\"}]}") - .toObject(PatchProperties.class); - Assertions.assertEquals("vzidsxwaab", model.targetEnvironmentId()); - Assertions.assertEquals("ifrygzn", model.targetContainerAppId()); - Assertions.assertEquals("axri", model.targetRevisionId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PatchProperties model = new PatchProperties().withTargetEnvironmentId("vzidsxwaab") - .withTargetContainerAppId("ifrygzn") - .withTargetRevisionId("axri"); - model = BinaryData.fromObject(model).toObject(PatchProperties.class); - Assertions.assertEquals("vzidsxwaab", model.targetEnvironmentId()); - Assertions.assertEquals("ifrygzn", model.targetContainerAppId()); - Assertions.assertEquals("axri", model.targetRevisionId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchSkipConfigTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchSkipConfigTests.java deleted file mode 100644 index e579f88d12b6..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PatchSkipConfigTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.PatchSkipConfig; -import org.junit.jupiter.api.Assertions; - -public final class PatchSkipConfigTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PatchSkipConfig model = BinaryData.fromString("{\"skip\":false}").toObject(PatchSkipConfig.class); - Assertions.assertEquals(false, model.skip()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PatchSkipConfig model = new PatchSkipConfig().withSkip(false); - model = BinaryData.fromObject(model).toObject(PatchSkipConfig.class); - Assertions.assertEquals(false, model.skip()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PreBuildStepTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PreBuildStepTests.java deleted file mode 100644 index c50a483b5ba3..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PreBuildStepTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.HttpGet; -import com.azure.resourcemanager.appcontainers.models.PreBuildStep; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PreBuildStepTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PreBuildStep model = BinaryData.fromString( - "{\"description\":\"iexpbtgiwbwo\",\"scripts\":[\"ashrt\",\"tkcnqxwb\"],\"httpGet\":{\"url\":\"kulpiujwaasi\",\"fileName\":\"i\",\"headers\":[\"yuq\",\"rpqlp\",\"wcciuqgbdbu\"]}}") - .toObject(PreBuildStep.class); - Assertions.assertEquals("iexpbtgiwbwo", model.description()); - Assertions.assertEquals("ashrt", model.scripts().get(0)); - Assertions.assertEquals("kulpiujwaasi", model.httpGet().url()); - Assertions.assertEquals("i", model.httpGet().fileName()); - Assertions.assertEquals("yuq", model.httpGet().headers().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PreBuildStep model = new PreBuildStep().withDescription("iexpbtgiwbwo") - .withScripts(Arrays.asList("ashrt", "tkcnqxwb")) - .withHttpGet(new HttpGet().withUrl("kulpiujwaasi") - .withFileName("i") - .withHeaders(Arrays.asList("yuq", "rpqlp", "wcciuqgbdbu"))); - model = BinaryData.fromObject(model).toObject(PreBuildStep.class); - Assertions.assertEquals("iexpbtgiwbwo", model.description()); - Assertions.assertEquals("ashrt", model.scripts().get(0)); - Assertions.assertEquals("kulpiujwaasi", model.httpGet().url()); - Assertions.assertEquals("i", model.httpGet().fileName()); - Assertions.assertEquals("yuq", model.httpGet().headers().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointConnectionInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointConnectionInnerTests.java deleted file mode 100644 index 2f2089dcf078..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointConnectionInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.PrivateEndpointConnectionInner; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpoint; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionInner model = BinaryData.fromString( - "{\"properties\":{\"groupIds\":[\"wffplfmuvapc\"],\"privateEndpoint\":{\"id\":\"rrvwey\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"yukphaimmoiroq\",\"actionsRequired\":\"shbraga\"},\"provisioningState\":\"Updating\"},\"id\":\"mfsvbpav\",\"name\":\"opfppdbwnupgah\",\"type\":\"kuma\"}") - .toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, - model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("yukphaimmoiroq", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("shbraga", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionInner model - = new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("yukphaimmoiroq") - .withActionsRequired("shbraga")); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, - model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("yukphaimmoiroq", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("shbraga", model.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointConnectionListResultTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointConnectionListResultTests.java deleted file mode 100644 index 158391197991..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointConnectionListResultTests.java +++ /dev/null @@ -1,55 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.PrivateEndpointConnectionInner; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpoint; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointConnectionListResult; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnectionState; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupIds\":[\"grq\",\"dgkkile\",\"lkcsmknhwtbbae\"],\"privateEndpoint\":{\"id\":\"vv\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"oygbdgwumgxd\",\"actionsRequired\":\"hpabgdexjddvjs\"},\"provisioningState\":\"Failed\"},\"id\":\"tm\",\"name\":\"wllcolsr\",\"type\":\"xaptefhexcgjok\"},{\"properties\":{\"groupIds\":[\"hv\",\"qjbek\",\"eeksnbksdqhjvyk\"],\"privateEndpoint\":{\"id\":\"sl\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"stcpoqmavnwqjw\",\"actionsRequired\":\"knlejjjkxybwfd\"},\"provisioningState\":\"Pending\"},\"id\":\"ztensvkzykjtj\",\"name\":\"nsxfwu\",\"type\":\"hcdpkupnqrmgj\"},{\"properties\":{\"groupIds\":[\"uwxeoiojfizf\",\"vkjzwfbcyaykm\",\"fz\",\"bfw\"],\"privateEndpoint\":{\"id\":\"xmdewsrsxkrplbj\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"wwviyo\",\"actionsRequired\":\"suhbrnn\"},\"provisioningState\":\"Canceled\"},\"id\":\"qwjhqkbiwetpozyc\",\"name\":\"qiqyhgfsetzlexbs\",\"type\":\"ledynojpz\"}],\"nextLink\":\"wfbzkkdt\"}") - .toObject(PrivateEndpointConnectionListResult.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, - model.value().get(0).privateLinkServiceConnectionState().status()); - Assertions.assertEquals("oygbdgwumgxd", model.value().get(0).privateLinkServiceConnectionState().description()); - Assertions.assertEquals("hpabgdexjddvjs", - model.value().get(0).privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionListResult model - = new PrivateEndpointConnectionListResult().withValue(Arrays.asList( - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) - .withDescription("oygbdgwumgxd") - .withActionsRequired("hpabgdexjddvjs")), - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.DISCONNECTED) - .withDescription("stcpoqmavnwqjw") - .withActionsRequired("knlejjjkxybwfd")), - new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) - .withDescription("wwviyo") - .withActionsRequired("suhbrnn")))); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResult.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, - model.value().get(0).privateLinkServiceConnectionState().status()); - Assertions.assertEquals("oygbdgwumgxd", model.value().get(0).privateLinkServiceConnectionState().description()); - Assertions.assertEquals("hpabgdexjddvjs", - model.value().get(0).privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointConnectionPropertiesTests.java deleted file mode 100644 index 604bc8f2d558..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointConnectionPropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpoint; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionProperties model = BinaryData.fromString( - "{\"groupIds\":[\"aacfdmmc\"],\"privateEndpoint\":{\"id\":\"mehqepvufh\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"ewhoqh\",\"actionsRequired\":\"bqnbl\"},\"provisioningState\":\"Succeeded\"}") - .toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, - model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ewhoqh", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("bqnbl", model.privateLinkServiceConnectionState().actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionProperties model - = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("ewhoqh") - .withActionsRequired("bqnbl")); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, - model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ewhoqh", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("bqnbl", model.privateLinkServiceConnectionState().actionsRequired()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointTests.java deleted file mode 100644 index 33c09d77fef9..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateEndpointTests.java +++ /dev/null @@ -1,21 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpoint; - -public final class PrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"clgsc\"}").toObject(PrivateEndpoint.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint(); - model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkResourceInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkResourceInnerTests.java deleted file mode 100644 index 18a6bb0d0a55..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkResourceInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.PrivateLinkResourceInner; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceInner model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"hmpejtlkexaonw\",\"requiredMembers\":[\"cqhrxhxknlccrmm\"],\"requiredZoneNames\":[\"pijubyq\",\"fkak\",\"qfrkemyildudxj\",\"sco\"]},\"id\":\"f\",\"name\":\"jkpdxphlkksnm\",\"type\":\"zvyfijdkzuqnwsi\"}") - .toObject(PrivateLinkResourceInner.class); - Assertions.assertEquals("pijubyq", model.requiredZoneNames().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceInner model = new PrivateLinkResourceInner() - .withRequiredZoneNames(Arrays.asList("pijubyq", "fkak", "qfrkemyildudxj", "sco")); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceInner.class); - Assertions.assertEquals("pijubyq", model.requiredZoneNames().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkResourceListResultTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkResourceListResultTests.java deleted file mode 100644 index b84bf03972f0..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkResourceListResultTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.PrivateLinkResourceInner; -import com.azure.resourcemanager.appcontainers.models.PrivateLinkResourceListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"cljse\",\"requiredMembers\":[\"pbafvafhlbylc\",\"bevxrhyzd\",\"wrso\"],\"requiredZoneNames\":[\"td\"]},\"id\":\"airrhvhfnracw\",\"name\":\"pqigtuujwouhd\",\"type\":\"wsigrbjbxsj\"},{\"properties\":{\"groupId\":\"i\",\"requiredMembers\":[\"kjyaznumtg\"],\"requiredZoneNames\":[\"wdchozfn\",\"fexl\"]},\"id\":\"noakiz\",\"name\":\"oaiknaqlnuwig\",\"type\":\"yxl\"}],\"nextLink\":\"wphvxz\"}") - .toObject(PrivateLinkResourceListResult.class); - Assertions.assertEquals("td", model.value().get(0).requiredZoneNames().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceListResult model = new PrivateLinkResourceListResult() - .withValue(Arrays.asList(new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList("td")), - new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList("wdchozfn", "fexl")))); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceListResult.class); - Assertions.assertEquals("td", model.value().get(0).requiredZoneNames().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkResourcePropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkResourcePropertiesTests.java deleted file mode 100644 index 44d3cd438397..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkResourcePropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.PrivateLinkResourceProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceProperties model = BinaryData - .fromString( - "{\"groupId\":\"uqoly\",\"requiredMembers\":[\"uqwqulsutrjbhxyk\"],\"requiredZoneNames\":[\"qezv\"]}") - .toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("qezv", model.requiredZoneNames().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceProperties model - = new PrivateLinkResourceProperties().withRequiredZoneNames(Arrays.asList("qezv")); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("qezv", model.requiredZoneNames().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkServiceConnectionStateTests.java deleted file mode 100644 index 6c670b944533..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/PrivateLinkServiceConnectionStateTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.appcontainers.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkServiceConnectionStateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkServiceConnectionState model = BinaryData - .fromString( - "{\"status\":\"Pending\",\"description\":\"mkrsrrmoucsofl\",\"actionsRequired\":\"uviyfcaabeo\"}") - .toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("mkrsrrmoucsofl", model.description()); - Assertions.assertEquals("uviyfcaabeo", model.actionsRequired()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkServiceConnectionState model - = new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("mkrsrrmoucsofl") - .withActionsRequired("uviyfcaabeo"); - model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("mkrsrrmoucsofl", model.description()); - Assertions.assertEquals("uviyfcaabeo", model.actionsRequired()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaCollectionInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaCollectionInnerTests.java deleted file mode 100644 index b7ee1773b055..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaCollectionInnerTests.java +++ /dev/null @@ -1,79 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.ReplicaCollectionInner; -import com.azure.resourcemanager.appcontainers.fluent.models.ReplicaInner; -import com.azure.resourcemanager.appcontainers.models.ReplicaContainer; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ReplicaCollectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicaCollectionInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"createdTime\":\"2021-02-06T14:48:02Z\",\"runningState\":\"NotRunning\",\"runningStateDetails\":\"qovekqvgqou\",\"containers\":[{\"name\":\"mpjw\",\"containerId\":\"vqikfxcvhrfsphu\",\"ready\":true,\"started\":true,\"restartCount\":95880088,\"runningState\":\"Terminated\",\"runningStateDetails\":\"sqczkvyklxubyj\",\"logStreamEndpoint\":\"fmmfblcqcu\",\"execEndpoint\":\"gqibrtalmetttw\"},{\"name\":\"slqxi\",\"containerId\":\"rmooizqse\",\"ready\":false,\"started\":true,\"restartCount\":719616130,\"runningState\":\"Terminated\",\"runningStateDetails\":\"zhyrpeto\",\"logStreamEndpoint\":\"bjoxs\",\"execEndpoint\":\"vnh\"},{\"name\":\"brqnkkzjcjb\",\"containerId\":\"gaehvvibrxjjst\",\"ready\":false,\"started\":false,\"restartCount\":774286462,\"runningState\":\"Waiting\",\"runningStateDetails\":\"tmo\",\"logStreamEndpoint\":\"klf\",\"execEndpoint\":\"dgfcwqmp\"}],\"initContainers\":[{\"name\":\"xzhemjyh\",\"containerId\":\"uj\",\"ready\":false,\"started\":true,\"restartCount\":1064188609,\"runningState\":\"Running\",\"runningStateDetails\":\"ulkb\",\"logStreamEndpoint\":\"pfajnjwltlwtjj\",\"execEndpoint\":\"ktalhsnvkcdmxz\"},{\"name\":\"oaimlnw\",\"containerId\":\"aomylwea\",\"ready\":true,\"started\":false,\"restartCount\":1226042956,\"runningState\":\"Running\",\"runningStateDetails\":\"npjhlfzswpchwahf\",\"logStreamEndpoint\":\"usnfepgfewet\",\"execEndpoint\":\"yxgncxykxhdjhli\"},{\"name\":\"bcxf\",\"containerId\":\"cporxvxcjz\",\"ready\":false,\"started\":true,\"restartCount\":444626662,\"runningState\":\"Waiting\",\"runningStateDetails\":\"qscjavftjuh\",\"logStreamEndpoint\":\"azkmtgguwp\",\"execEndpoint\":\"r\"}]},\"id\":\"civmmg\",\"name\":\"f\",\"type\":\"fiwrxgkn\"}]}") - .toObject(ReplicaCollectionInner.class); - Assertions.assertEquals("mpjw", model.value().get(0).containers().get(0).name()); - Assertions.assertEquals("vqikfxcvhrfsphu", model.value().get(0).containers().get(0).containerId()); - Assertions.assertEquals(true, model.value().get(0).containers().get(0).ready()); - Assertions.assertEquals(true, model.value().get(0).containers().get(0).started()); - Assertions.assertEquals(95880088, model.value().get(0).containers().get(0).restartCount()); - Assertions.assertEquals("xzhemjyh", model.value().get(0).initContainers().get(0).name()); - Assertions.assertEquals("uj", model.value().get(0).initContainers().get(0).containerId()); - Assertions.assertEquals(false, model.value().get(0).initContainers().get(0).ready()); - Assertions.assertEquals(true, model.value().get(0).initContainers().get(0).started()); - Assertions.assertEquals(1064188609, model.value().get(0).initContainers().get(0).restartCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicaCollectionInner model = new ReplicaCollectionInner().withValue(Arrays.asList(new ReplicaInner() - .withContainers(Arrays.asList( - new ReplicaContainer().withName("mpjw") - .withContainerId("vqikfxcvhrfsphu") - .withReady(true) - .withStarted(true) - .withRestartCount(95880088), - new ReplicaContainer().withName("slqxi") - .withContainerId("rmooizqse") - .withReady(false) - .withStarted(true) - .withRestartCount(719616130), - new ReplicaContainer().withName("brqnkkzjcjb") - .withContainerId("gaehvvibrxjjst") - .withReady(false) - .withStarted(false) - .withRestartCount(774286462))) - .withInitContainers(Arrays.asList( - new ReplicaContainer().withName("xzhemjyh") - .withContainerId("uj") - .withReady(false) - .withStarted(true) - .withRestartCount(1064188609), - new ReplicaContainer().withName("oaimlnw") - .withContainerId("aomylwea") - .withReady(true) - .withStarted(false) - .withRestartCount(1226042956), - new ReplicaContainer().withName("bcxf") - .withContainerId("cporxvxcjz") - .withReady(false) - .withStarted(true) - .withRestartCount(444626662))))); - model = BinaryData.fromObject(model).toObject(ReplicaCollectionInner.class); - Assertions.assertEquals("mpjw", model.value().get(0).containers().get(0).name()); - Assertions.assertEquals("vqikfxcvhrfsphu", model.value().get(0).containers().get(0).containerId()); - Assertions.assertEquals(true, model.value().get(0).containers().get(0).ready()); - Assertions.assertEquals(true, model.value().get(0).containers().get(0).started()); - Assertions.assertEquals(95880088, model.value().get(0).containers().get(0).restartCount()); - Assertions.assertEquals("xzhemjyh", model.value().get(0).initContainers().get(0).name()); - Assertions.assertEquals("uj", model.value().get(0).initContainers().get(0).containerId()); - Assertions.assertEquals(false, model.value().get(0).initContainers().get(0).ready()); - Assertions.assertEquals(true, model.value().get(0).initContainers().get(0).started()); - Assertions.assertEquals(1064188609, model.value().get(0).initContainers().get(0).restartCount()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaContainerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaContainerTests.java deleted file mode 100644 index 43a22755558e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaContainerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ReplicaContainer; -import org.junit.jupiter.api.Assertions; - -public final class ReplicaContainerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicaContainer model = BinaryData.fromString( - "{\"name\":\"isofieypefojyqd\",\"containerId\":\"u\",\"ready\":false,\"started\":true,\"restartCount\":1554312221,\"runningState\":\"Terminated\",\"runningStateDetails\":\"hihlhzdsqtzbs\",\"logStreamEndpoint\":\"nowc\",\"execEndpoint\":\"fgmvecactxmwo\"}") - .toObject(ReplicaContainer.class); - Assertions.assertEquals("isofieypefojyqd", model.name()); - Assertions.assertEquals("u", model.containerId()); - Assertions.assertEquals(false, model.ready()); - Assertions.assertEquals(true, model.started()); - Assertions.assertEquals(1554312221, model.restartCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicaContainer model = new ReplicaContainer().withName("isofieypefojyqd") - .withContainerId("u") - .withReady(false) - .withStarted(true) - .withRestartCount(1554312221); - model = BinaryData.fromObject(model).toObject(ReplicaContainer.class); - Assertions.assertEquals("isofieypefojyqd", model.name()); - Assertions.assertEquals("u", model.containerId()); - Assertions.assertEquals(false, model.ready()); - Assertions.assertEquals(true, model.started()); - Assertions.assertEquals(1554312221, model.restartCount()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaInnerTests.java deleted file mode 100644 index 7f7dc3f02e47..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaInnerTests.java +++ /dev/null @@ -1,62 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.ReplicaInner; -import com.azure.resourcemanager.appcontainers.models.ReplicaContainer; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ReplicaInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicaInner model = BinaryData.fromString( - "{\"properties\":{\"createdTime\":\"2021-02-18T17:11:23Z\",\"runningState\":\"Running\",\"runningStateDetails\":\"pvz\",\"containers\":[{\"name\":\"mldgxobfirc\",\"containerId\":\"pkc\",\"ready\":false,\"started\":true,\"restartCount\":2022094145,\"runningState\":\"Running\",\"runningStateDetails\":\"awfvjlboxqvkjl\",\"logStreamEndpoint\":\"ho\",\"execEndpoint\":\"ynhdwdigum\"},{\"name\":\"raauzzpt\",\"containerId\":\"zysdzh\",\"ready\":true,\"started\":true,\"restartCount\":1899705757,\"runningState\":\"Running\",\"runningStateDetails\":\"vv\",\"logStreamEndpoint\":\"nk\",\"execEndpoint\":\"hqyikvy\"}],\"initContainers\":[{\"name\":\"avluwmncs\",\"containerId\":\"ijf\",\"ready\":false,\"started\":false,\"restartCount\":1661659645,\"runningState\":\"Waiting\",\"runningStateDetails\":\"sgbdhuz\",\"logStreamEndpoint\":\"njdgkynscliq\",\"execEndpoint\":\"vhxnk\"}]},\"id\":\"tkubotppn\",\"name\":\"dxzxhi\",\"type\":\"frbbc\"}") - .toObject(ReplicaInner.class); - Assertions.assertEquals("mldgxobfirc", model.containers().get(0).name()); - Assertions.assertEquals("pkc", model.containers().get(0).containerId()); - Assertions.assertEquals(false, model.containers().get(0).ready()); - Assertions.assertEquals(true, model.containers().get(0).started()); - Assertions.assertEquals(2022094145, model.containers().get(0).restartCount()); - Assertions.assertEquals("avluwmncs", model.initContainers().get(0).name()); - Assertions.assertEquals("ijf", model.initContainers().get(0).containerId()); - Assertions.assertEquals(false, model.initContainers().get(0).ready()); - Assertions.assertEquals(false, model.initContainers().get(0).started()); - Assertions.assertEquals(1661659645, model.initContainers().get(0).restartCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicaInner model = new ReplicaInner() - .withContainers(Arrays.asList( - new ReplicaContainer().withName("mldgxobfirc") - .withContainerId("pkc") - .withReady(false) - .withStarted(true) - .withRestartCount(2022094145), - new ReplicaContainer().withName("raauzzpt") - .withContainerId("zysdzh") - .withReady(true) - .withStarted(true) - .withRestartCount(1899705757))) - .withInitContainers(Arrays.asList(new ReplicaContainer().withName("avluwmncs") - .withContainerId("ijf") - .withReady(false) - .withStarted(false) - .withRestartCount(1661659645))); - model = BinaryData.fromObject(model).toObject(ReplicaInner.class); - Assertions.assertEquals("mldgxobfirc", model.containers().get(0).name()); - Assertions.assertEquals("pkc", model.containers().get(0).containerId()); - Assertions.assertEquals(false, model.containers().get(0).ready()); - Assertions.assertEquals(true, model.containers().get(0).started()); - Assertions.assertEquals(2022094145, model.containers().get(0).restartCount()); - Assertions.assertEquals("avluwmncs", model.initContainers().get(0).name()); - Assertions.assertEquals("ijf", model.initContainers().get(0).containerId()); - Assertions.assertEquals(false, model.initContainers().get(0).ready()); - Assertions.assertEquals(false, model.initContainers().get(0).started()); - Assertions.assertEquals(1661659645, model.initContainers().get(0).restartCount()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaPropertiesTests.java deleted file mode 100644 index 88364609d96b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ReplicaPropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.ReplicaProperties; -import com.azure.resourcemanager.appcontainers.models.ReplicaContainer; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ReplicaPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicaProperties model = BinaryData.fromString( - "{\"createdTime\":\"2021-01-24T22:47:35Z\",\"runningState\":\"Running\",\"runningStateDetails\":\"ltd\",\"containers\":[{\"name\":\"qojpy\",\"containerId\":\"gtrd\",\"ready\":false,\"started\":false,\"restartCount\":2043504503,\"runningState\":\"Terminated\",\"runningStateDetails\":\"m\",\"logStreamEndpoint\":\"nysuxmprafwgckh\",\"execEndpoint\":\"xvd\"},{\"name\":\"fwafqrouda\",\"containerId\":\"avehhrvkbunzo\",\"ready\":true,\"started\":true,\"restartCount\":2097383102,\"runningState\":\"Terminated\",\"runningStateDetails\":\"yxcdyuibhmfdnbzy\",\"logStreamEndpoint\":\"f\",\"execEndpoint\":\"cjnaeoisrvhmgor\"}],\"initContainers\":[{\"name\":\"is\",\"containerId\":\"w\",\"ready\":true,\"started\":false,\"restartCount\":157711526,\"runningState\":\"Waiting\",\"runningStateDetails\":\"vxilcbt\",\"logStreamEndpoint\":\"hnze\",\"execEndpoint\":\"xtjjfzqlqhycav\"},{\"name\":\"ggxdb\",\"containerId\":\"smieknlra\",\"ready\":true,\"started\":true,\"restartCount\":1541326221,\"runningState\":\"Waiting\",\"runningStateDetails\":\"dwqf\",\"logStreamEndpoint\":\"lyr\",\"execEndpoint\":\"iagtc\"},{\"name\":\"ocqwogfnzjvus\",\"containerId\":\"ld\",\"ready\":true,\"started\":false,\"restartCount\":1126537021,\"runningState\":\"Waiting\",\"runningStateDetails\":\"tkad\",\"logStreamEndpoint\":\"s\",\"execEndpoint\":\"nbtgkbugrjqctoj\"}]}") - .toObject(ReplicaProperties.class); - Assertions.assertEquals("qojpy", model.containers().get(0).name()); - Assertions.assertEquals("gtrd", model.containers().get(0).containerId()); - Assertions.assertEquals(false, model.containers().get(0).ready()); - Assertions.assertEquals(false, model.containers().get(0).started()); - Assertions.assertEquals(2043504503, model.containers().get(0).restartCount()); - Assertions.assertEquals("is", model.initContainers().get(0).name()); - Assertions.assertEquals("w", model.initContainers().get(0).containerId()); - Assertions.assertEquals(true, model.initContainers().get(0).ready()); - Assertions.assertEquals(false, model.initContainers().get(0).started()); - Assertions.assertEquals(157711526, model.initContainers().get(0).restartCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicaProperties model = new ReplicaProperties() - .withContainers(Arrays.asList( - new ReplicaContainer().withName("qojpy") - .withContainerId("gtrd") - .withReady(false) - .withStarted(false) - .withRestartCount(2043504503), - new ReplicaContainer().withName("fwafqrouda") - .withContainerId("avehhrvkbunzo") - .withReady(true) - .withStarted(true) - .withRestartCount(2097383102))) - .withInitContainers(Arrays.asList( - new ReplicaContainer().withName("is") - .withContainerId("w") - .withReady(true) - .withStarted(false) - .withRestartCount(157711526), - new ReplicaContainer().withName("ggxdb") - .withContainerId("smieknlra") - .withReady(true) - .withStarted(true) - .withRestartCount(1541326221), - new ReplicaContainer().withName("ocqwogfnzjvus") - .withContainerId("ld") - .withReady(true) - .withStarted(false) - .withRestartCount(1126537021))); - model = BinaryData.fromObject(model).toObject(ReplicaProperties.class); - Assertions.assertEquals("qojpy", model.containers().get(0).name()); - Assertions.assertEquals("gtrd", model.containers().get(0).containerId()); - Assertions.assertEquals(false, model.containers().get(0).ready()); - Assertions.assertEquals(false, model.containers().get(0).started()); - Assertions.assertEquals(2043504503, model.containers().get(0).restartCount()); - Assertions.assertEquals("is", model.initContainers().get(0).name()); - Assertions.assertEquals("w", model.initContainers().get(0).containerId()); - Assertions.assertEquals(true, model.initContainers().get(0).ready()); - Assertions.assertEquals(false, model.initContainers().get(0).started()); - Assertions.assertEquals(157711526, model.initContainers().get(0).restartCount()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ResourceProvidersGetCustomDomainVerificationIdWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ResourceProvidersGetCustomDomainVerificationIdWithResponseMockTests.java deleted file mode 100644 index e769ebf07a34..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ResourceProvidersGetCustomDomainVerificationIdWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -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 ResourceProvidersGetCustomDomainVerificationIdWithResponseMockTests { - @Test - public void testGetCustomDomainVerificationIdWithResponse() throws Exception { - String responseStr = "\"orimmo\""; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - String response = manager.resourceProviders() - .getCustomDomainVerificationIdWithResponse(com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("orimmo", response); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ResourceProvidersJobExecutionWithResponseMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ResourceProvidersJobExecutionWithResponseMockTests.java deleted file mode 100644 index 731b7cfc6b3d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ResourceProvidersJobExecutionWithResponseMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.JobExecution; -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 ResourceProvidersJobExecutionWithResponseMockTests { - @Test - public void testJobExecutionWithResponse() throws Exception { - String responseStr - = "{\"name\":\"uq\",\"id\":\"xtokljmtz\",\"type\":\"axwfqtyyqip\",\"properties\":{\"status\":\"Unknown\",\"startTime\":\"2021-11-04T03:06:38Z\",\"endTime\":\"2021-04-11T00:28:24Z\",\"template\":{\"containers\":[{\"image\":\"ckmiig\",\"name\":\"kuckgkdskswtiiq\",\"command\":[\"ikclsm\",\"lnssw\",\"ykdnonaaxwmg\"],\"args\":[\"jlqcwny\",\"lleiq\",\"cbgvsbt\"],\"env\":[{},{},{},{}],\"resources\":{}},{\"image\":\"xa\",\"name\":\"xuvj\",\"command\":[\"nrqstjcmetwmlg\",\"cvnpv\",\"dhgjnaqyqi\",\"slz\"],\"args\":[\"dsvmwbitekdtf\",\"bvfiybxqi\",\"hgybfzdqekivycpz\"],\"env\":[{}],\"resources\":{}},{\"image\":\"ulrqtbht\",\"name\":\"zpzlpryf\",\"command\":[\"dutzfkg\",\"lnoud\"],\"args\":[\"nd\"],\"env\":[{},{}],\"resources\":{}}],\"initContainers\":[{\"image\":\"gqqyeqfcbuulpyuf\",\"name\":\"jfshtujcyo\",\"command\":[\"imwdcsklkqnqvki\",\"nmbzmecuy\",\"zwimbzayspz\",\"rietvfp\"],\"args\":[\"zxplgtpvdvatlz\",\"gschnzrsbk\"],\"env\":[{},{}],\"resources\":{}}]},\"detailedStatus\":{\"replicas\":[{\"name\":\"nfmf\",\"containers\":[{},{},{},{}]},{\"name\":\"fo\",\"containers\":[{},{},{},{}]}]}}}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - JobExecution response = manager.resourceProviders() - .jobExecutionWithResponse("aspiflei", "ixlmdbgic", "hfgsmd", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("uq", response.name()); - Assertions.assertEquals("xtokljmtz", response.id()); - Assertions.assertEquals("axwfqtyyqip", response.type()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-04T03:06:38Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-11T00:28:24Z"), response.endTime()); - Assertions.assertEquals("ckmiig", response.template().containers().get(0).image()); - Assertions.assertEquals("kuckgkdskswtiiq", response.template().containers().get(0).name()); - Assertions.assertEquals("ikclsm", response.template().containers().get(0).command().get(0)); - Assertions.assertEquals("jlqcwny", response.template().containers().get(0).args().get(0)); - Assertions.assertEquals("gqqyeqfcbuulpyuf", response.template().initContainers().get(0).image()); - Assertions.assertEquals("jfshtujcyo", response.template().initContainers().get(0).name()); - Assertions.assertEquals("imwdcsklkqnqvki", response.template().initContainers().get(0).command().get(0)); - Assertions.assertEquals("zxplgtpvdvatlz", response.template().initContainers().get(0).args().get(0)); - Assertions.assertEquals("nfmf", response.detailedStatus().replicas().get(0).name()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RevisionCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RevisionCollectionTests.java deleted file mode 100644 index fe6685576aee..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RevisionCollectionTests.java +++ /dev/null @@ -1,26 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.RevisionInner; -import com.azure.resourcemanager.appcontainers.models.RevisionCollection; -import java.util.Arrays; - -public final class RevisionCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RevisionCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"createdTime\":\"2021-08-22T03:17:23Z\",\"lastActiveTime\":\"2021-07-28T11:28:52Z\",\"fqdn\":\"ip\",\"template\":{\"revisionSuffix\":\"w\",\"terminationGracePeriodSeconds\":2436750194722502720,\"initContainers\":[{},{}],\"containers\":[{},{},{}],\"scale\":{\"minReplicas\":476153181,\"maxReplicas\":1041711441,\"rules\":[{},{},{},{}]},\"volumes\":[{},{}],\"serviceBinds\":[{},{}]},\"active\":false,\"replicas\":1050222716,\"trafficWeight\":1733722494,\"provisioningError\":\"b\",\"healthState\":\"None\",\"provisioningState\":\"Provisioning\",\"runningState\":\"Degraded\"},\"id\":\"dxsm\",\"name\":\"ccwr\",\"type\":\"fscjfnynszquji\"},{\"properties\":{\"createdTime\":\"2021-10-24T13:53:39Z\",\"lastActiveTime\":\"2021-02-17T03:53:58Z\",\"fqdn\":\"ibyowbblgyavutp\",\"template\":{\"revisionSuffix\":\"oxoismsksbpim\",\"terminationGracePeriodSeconds\":8899981785273447033,\"initContainers\":[{},{},{},{}],\"containers\":[{},{}],\"scale\":{\"minReplicas\":601502455,\"maxReplicas\":255902242,\"rules\":[{},{},{}]},\"volumes\":[{},{},{},{}],\"serviceBinds\":[{},{}]},\"active\":false,\"replicas\":1820797792,\"trafficWeight\":514804559,\"provisioningError\":\"vwlyoup\",\"healthState\":\"Unhealthy\",\"provisioningState\":\"Provisioned\",\"runningState\":\"Degraded\"},\"id\":\"dyhgkfminsg\",\"name\":\"wzf\",\"type\":\"tsttktlahbq\"},{\"properties\":{\"createdTime\":\"2021-06-23T01:08:47Z\",\"lastActiveTime\":\"2021-10-13T12:53:05Z\",\"fqdn\":\"ukxit\",\"template\":{\"revisionSuffix\":\"tg\",\"terminationGracePeriodSeconds\":1103543038740951284,\"initContainers\":[{},{}],\"containers\":[{}],\"scale\":{\"minReplicas\":1873190222,\"maxReplicas\":978629087,\"rules\":[{},{}]},\"volumes\":[{}],\"serviceBinds\":[{},{},{}]},\"active\":true,\"replicas\":1487761087,\"trafficWeight\":51225186,\"provisioningError\":\"zivj\",\"healthState\":\"Unhealthy\",\"provisioningState\":\"Provisioned\",\"runningState\":\"Processing\"},\"id\":\"jlkatnwxy\",\"name\":\"opidkqqfkuv\",\"type\":\"cxkdmligovi\"}],\"nextLink\":\"xk\"}") - .toObject(RevisionCollection.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RevisionCollection model = new RevisionCollection() - .withValue(Arrays.asList(new RevisionInner(), new RevisionInner(), new RevisionInner())); - model = BinaryData.fromObject(model).toObject(RevisionCollection.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeDotnetTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeDotnetTests.java deleted file mode 100644 index 506313096ff0..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeDotnetTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.RuntimeDotnet; -import org.junit.jupiter.api.Assertions; - -public final class RuntimeDotnetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RuntimeDotnet model - = BinaryData.fromString("{\"autoConfigureDataProtection\":false}").toObject(RuntimeDotnet.class); - Assertions.assertEquals(false, model.autoConfigureDataProtection()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RuntimeDotnet model = new RuntimeDotnet().withAutoConfigureDataProtection(false); - model = BinaryData.fromObject(model).toObject(RuntimeDotnet.class); - Assertions.assertEquals(false, model.autoConfigureDataProtection()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeJavaAgentLoggingTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeJavaAgentLoggingTests.java deleted file mode 100644 index d857b97510fb..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeJavaAgentLoggingTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Level; -import com.azure.resourcemanager.appcontainers.models.LoggerSetting; -import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgentLogging; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RuntimeJavaAgentLoggingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RuntimeJavaAgentLogging model = BinaryData.fromString( - "{\"loggerSettings\":[{\"logger\":\"vrwxkv\",\"level\":\"error\"},{\"logger\":\"k\",\"level\":\"off\"},{\"logger\":\"lqwjygvjayvblm\",\"level\":\"error\"}]}") - .toObject(RuntimeJavaAgentLogging.class); - Assertions.assertEquals("vrwxkv", model.loggerSettings().get(0).logger()); - Assertions.assertEquals(Level.ERROR, model.loggerSettings().get(0).level()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RuntimeJavaAgentLogging model = new RuntimeJavaAgentLogging() - .withLoggerSettings(Arrays.asList(new LoggerSetting().withLogger("vrwxkv").withLevel(Level.ERROR), - new LoggerSetting().withLogger("k").withLevel(Level.OFF), - new LoggerSetting().withLogger("lqwjygvjayvblm").withLevel(Level.ERROR))); - model = BinaryData.fromObject(model).toObject(RuntimeJavaAgentLogging.class); - Assertions.assertEquals("vrwxkv", model.loggerSettings().get(0).logger()); - Assertions.assertEquals(Level.ERROR, model.loggerSettings().get(0).level()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeJavaAgentTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeJavaAgentTests.java deleted file mode 100644 index cb07e65db565..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeJavaAgentTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Level; -import com.azure.resourcemanager.appcontainers.models.LoggerSetting; -import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgent; -import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgentLogging; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RuntimeJavaAgentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RuntimeJavaAgent model = BinaryData.fromString( - "{\"enabled\":true,\"logging\":{\"loggerSettings\":[{\"logger\":\"vqqaatjinrvgo\",\"level\":\"trace\"},{\"logger\":\"mfiibfggj\",\"level\":\"off\"}]}}") - .toObject(RuntimeJavaAgent.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals("vqqaatjinrvgo", model.logging().loggerSettings().get(0).logger()); - Assertions.assertEquals(Level.TRACE, model.logging().loggerSettings().get(0).level()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RuntimeJavaAgent model = new RuntimeJavaAgent().withEnabled(true) - .withLogging(new RuntimeJavaAgentLogging().withLoggerSettings( - Arrays.asList(new LoggerSetting().withLogger("vqqaatjinrvgo").withLevel(Level.TRACE), - new LoggerSetting().withLogger("mfiibfggj").withLevel(Level.OFF)))); - model = BinaryData.fromObject(model).toObject(RuntimeJavaAgent.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals("vqqaatjinrvgo", model.logging().loggerSettings().get(0).logger()); - Assertions.assertEquals(Level.TRACE, model.logging().loggerSettings().get(0).level()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeJavaTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeJavaTests.java deleted file mode 100644 index 82a249f01307..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeJavaTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Level; -import com.azure.resourcemanager.appcontainers.models.LoggerSetting; -import com.azure.resourcemanager.appcontainers.models.RuntimeJava; -import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgent; -import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgentLogging; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RuntimeJavaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RuntimeJava model = BinaryData.fromString( - "{\"enableMetrics\":true,\"javaAgent\":{\"enabled\":false,\"logging\":{\"loggerSettings\":[{\"logger\":\"pgikdgszywkb\",\"level\":\"info\"},{\"logger\":\"ryuzh\",\"level\":\"warn\"}]}}}") - .toObject(RuntimeJava.class); - Assertions.assertEquals(true, model.enableMetrics()); - Assertions.assertEquals(false, model.javaAgent().enabled()); - Assertions.assertEquals("pgikdgszywkb", model.javaAgent().logging().loggerSettings().get(0).logger()); - Assertions.assertEquals(Level.INFO, model.javaAgent().logging().loggerSettings().get(0).level()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RuntimeJava model = new RuntimeJava().withEnableMetrics(true) - .withJavaAgent(new RuntimeJavaAgent().withEnabled(false) - .withLogging(new RuntimeJavaAgentLogging().withLoggerSettings( - Arrays.asList(new LoggerSetting().withLogger("pgikdgszywkb").withLevel(Level.INFO), - new LoggerSetting().withLogger("ryuzh").withLevel(Level.WARN))))); - model = BinaryData.fromObject(model).toObject(RuntimeJava.class); - Assertions.assertEquals(true, model.enableMetrics()); - Assertions.assertEquals(false, model.javaAgent().enabled()); - Assertions.assertEquals("pgikdgszywkb", model.javaAgent().logging().loggerSettings().get(0).logger()); - Assertions.assertEquals(Level.INFO, model.javaAgent().logging().loggerSettings().get(0).level()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeTests.java deleted file mode 100644 index 3a53e9d0847f..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/RuntimeTests.java +++ /dev/null @@ -1,46 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Level; -import com.azure.resourcemanager.appcontainers.models.LoggerSetting; -import com.azure.resourcemanager.appcontainers.models.Runtime; -import com.azure.resourcemanager.appcontainers.models.RuntimeDotnet; -import com.azure.resourcemanager.appcontainers.models.RuntimeJava; -import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgent; -import com.azure.resourcemanager.appcontainers.models.RuntimeJavaAgentLogging; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Runtime model = BinaryData.fromString( - "{\"java\":{\"enableMetrics\":false,\"javaAgent\":{\"enabled\":true,\"logging\":{\"loggerSettings\":[{\"logger\":\"nkhtjsyingw\",\"level\":\"warn\"}]}}},\"dotnet\":{\"autoConfigureDataProtection\":false}}") - .toObject(Runtime.class); - Assertions.assertEquals(false, model.java().enableMetrics()); - Assertions.assertEquals(true, model.java().javaAgent().enabled()); - Assertions.assertEquals("nkhtjsyingw", model.java().javaAgent().logging().loggerSettings().get(0).logger()); - Assertions.assertEquals(Level.WARN, model.java().javaAgent().logging().loggerSettings().get(0).level()); - Assertions.assertEquals(false, model.dotnet().autoConfigureDataProtection()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Runtime model = new Runtime() - .withJava(new RuntimeJava().withEnableMetrics(false) - .withJavaAgent(new RuntimeJavaAgent().withEnabled(true) - .withLogging(new RuntimeJavaAgentLogging().withLoggerSettings( - Arrays.asList(new LoggerSetting().withLogger("nkhtjsyingw").withLevel(Level.WARN)))))) - .withDotnet(new RuntimeDotnet().withAutoConfigureDataProtection(false)); - model = BinaryData.fromObject(model).toObject(Runtime.class); - Assertions.assertEquals(false, model.java().enableMetrics()); - Assertions.assertEquals(true, model.java().javaAgent().enabled()); - Assertions.assertEquals("nkhtjsyingw", model.java().javaAgent().logging().loggerSettings().get(0).logger()); - Assertions.assertEquals(Level.WARN, model.java().javaAgent().logging().loggerSettings().get(0).level()); - Assertions.assertEquals(false, model.dotnet().autoConfigureDataProtection()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ScaleConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ScaleConfigurationTests.java deleted file mode 100644 index bcb1383bfa3b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ScaleConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.ScaleConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class ScaleConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScaleConfiguration model - = BinaryData.fromString("{\"maxConcurrentSessions\":1728300209,\"readySessionInstances\":1151499002}") - .toObject(ScaleConfiguration.class); - Assertions.assertEquals(1728300209, model.maxConcurrentSessions()); - Assertions.assertEquals(1151499002, model.readySessionInstances()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScaleConfiguration model - = new ScaleConfiguration().withMaxConcurrentSessions(1728300209).withReadySessionInstances(1151499002); - model = BinaryData.fromObject(model).toObject(ScaleConfiguration.class); - Assertions.assertEquals(1728300209, model.maxConcurrentSessions()); - Assertions.assertEquals(1151499002, model.readySessionInstances()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ServiceTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ServiceTests.java deleted file mode 100644 index 7be06b529e35..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/ServiceTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.Service; -import org.junit.jupiter.api.Assertions; - -public final class ServiceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Service model = BinaryData.fromString("{\"type\":\"xvvy\"}").toObject(Service.class); - Assertions.assertEquals("xvvy", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Service model = new Service().withType("xvvy"); - model = BinaryData.fromObject(model).toObject(Service.class); - Assertions.assertEquals("xvvy", model.type()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionContainerResourcesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionContainerResourcesTests.java deleted file mode 100644 index aac2cfba74fb..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionContainerResourcesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.SessionContainerResources; -import org.junit.jupiter.api.Assertions; - -public final class SessionContainerResourcesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SessionContainerResources model - = BinaryData.fromString("{\"cpu\":22.35631256315147,\"memory\":\"clamgglvlmfejdoq\"}") - .toObject(SessionContainerResources.class); - Assertions.assertEquals(22.35631256315147D, model.cpu()); - Assertions.assertEquals("clamgglvlmfejdoq", model.memory()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SessionContainerResources model - = new SessionContainerResources().withCpu(22.35631256315147D).withMemory("clamgglvlmfejdoq"); - model = BinaryData.fromObject(model).toObject(SessionContainerResources.class); - Assertions.assertEquals(22.35631256315147D, model.cpu()); - Assertions.assertEquals("clamgglvlmfejdoq", model.memory()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionIngressTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionIngressTests.java deleted file mode 100644 index 0cc0d1b243c5..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionIngressTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.SessionIngress; -import org.junit.jupiter.api.Assertions; - -public final class SessionIngressTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SessionIngress model = BinaryData.fromString("{\"targetPort\":1426048048}").toObject(SessionIngress.class); - Assertions.assertEquals(1426048048, model.targetPort()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SessionIngress model = new SessionIngress().withTargetPort(1426048048); - model = BinaryData.fromObject(model).toObject(SessionIngress.class); - Assertions.assertEquals(1426048048, model.targetPort()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionNetworkConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionNetworkConfigurationTests.java deleted file mode 100644 index 2cb5ce525aa7..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionNetworkConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.SessionNetworkConfiguration; -import com.azure.resourcemanager.appcontainers.models.SessionNetworkStatus; -import org.junit.jupiter.api.Assertions; - -public final class SessionNetworkConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SessionNetworkConfiguration model - = BinaryData.fromString("{\"status\":\"EgressDisabled\"}").toObject(SessionNetworkConfiguration.class); - Assertions.assertEquals(SessionNetworkStatus.EGRESS_DISABLED, model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SessionNetworkConfiguration model - = new SessionNetworkConfiguration().withStatus(SessionNetworkStatus.EGRESS_DISABLED); - model = BinaryData.fromObject(model).toObject(SessionNetworkConfiguration.class); - Assertions.assertEquals(SessionNetworkStatus.EGRESS_DISABLED, model.status()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionPoolSecretTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionPoolSecretTests.java deleted file mode 100644 index 59d0c57a1906..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SessionPoolSecretTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.SessionPoolSecret; -import org.junit.jupiter.api.Assertions; - -public final class SessionPoolSecretTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SessionPoolSecret model = BinaryData.fromString("{\"name\":\"lszerqzevx\",\"value\":\"eintxwaljglzobl\"}") - .toObject(SessionPoolSecret.class); - Assertions.assertEquals("lszerqzevx", model.name()); - Assertions.assertEquals("eintxwaljglzobl", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SessionPoolSecret model = new SessionPoolSecret().withName("lszerqzevx").withValue("eintxwaljglzobl"); - model = BinaryData.fromObject(model).toObject(SessionPoolSecret.class); - Assertions.assertEquals("lszerqzevx", model.name()); - Assertions.assertEquals("eintxwaljglzobl", model.value()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SpringBootAdminComponentTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SpringBootAdminComponentTests.java deleted file mode 100644 index e730aae759f9..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SpringBootAdminComponentTests.java +++ /dev/null @@ -1,46 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.JavaComponentIngress; -import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; -import com.azure.resourcemanager.appcontainers.models.SpringBootAdminComponent; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SpringBootAdminComponentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SpringBootAdminComponent model = BinaryData.fromString( - "{\"componentType\":\"SpringBootAdmin\",\"ingress\":{\"fqdn\":\"rgnawbabgfbk\"},\"provisioningState\":\"Deleting\",\"configurations\":[{\"propertyName\":\"zlfsyqkfrbzgowo\",\"value\":\"mj\"},{\"propertyName\":\"jcx\",\"value\":\"qg\"},{\"propertyName\":\"lusrv\",\"value\":\"simjceagbjqvlsu\"},{\"propertyName\":\"wzas\",\"value\":\"gon\"}],\"serviceBinds\":[{\"name\":\"qipubyz\",\"serviceId\":\"lkfk\"},{\"name\":\"bgvopemt\",\"serviceId\":\"qujlyegqa\"},{\"name\":\"igflqqbtnyjp\",\"serviceId\":\"xdb\"},{\"name\":\"abmvmsxbaevwjc\",\"serviceId\":\"ot\"}]}") - .toObject(SpringBootAdminComponent.class); - Assertions.assertEquals("zlfsyqkfrbzgowo", model.configurations().get(0).propertyName()); - Assertions.assertEquals("mj", model.configurations().get(0).value()); - Assertions.assertEquals("qipubyz", model.serviceBinds().get(0).name()); - Assertions.assertEquals("lkfk", model.serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SpringBootAdminComponent model = new SpringBootAdminComponent() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("zlfsyqkfrbzgowo").withValue("mj"), - new JavaComponentConfigurationProperty().withPropertyName("jcx").withValue("qg"), - new JavaComponentConfigurationProperty().withPropertyName("lusrv").withValue("simjceagbjqvlsu"), - new JavaComponentConfigurationProperty().withPropertyName("wzas").withValue("gon"))) - .withServiceBinds(Arrays.asList(new JavaComponentServiceBind().withName("qipubyz").withServiceId("lkfk"), - new JavaComponentServiceBind().withName("bgvopemt").withServiceId("qujlyegqa"), - new JavaComponentServiceBind().withName("igflqqbtnyjp").withServiceId("xdb"), - new JavaComponentServiceBind().withName("abmvmsxbaevwjc").withServiceId("ot"))) - .withIngress(new JavaComponentIngress()); - model = BinaryData.fromObject(model).toObject(SpringBootAdminComponent.class); - Assertions.assertEquals("zlfsyqkfrbzgowo", model.configurations().get(0).propertyName()); - Assertions.assertEquals("mj", model.configurations().get(0).value()); - Assertions.assertEquals("qipubyz", model.serviceBinds().get(0).name()); - Assertions.assertEquals("lkfk", model.serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SpringCloudConfigComponentTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SpringCloudConfigComponentTests.java deleted file mode 100644 index d4cce4452f58..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SpringCloudConfigComponentTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; -import com.azure.resourcemanager.appcontainers.models.SpringCloudConfigComponent; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SpringCloudConfigComponentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SpringCloudConfigComponent model = BinaryData.fromString( - "{\"componentType\":\"SpringCloudConfig\",\"provisioningState\":\"InProgress\",\"configurations\":[{\"propertyName\":\"dj\",\"value\":\"dcadwvpsozjiihjr\"},{\"propertyName\":\"bmrzoepnx\",\"value\":\"v\"}],\"serviceBinds\":[{\"name\":\"gv\",\"serviceId\":\"mxaursqftibtyi\"}]}") - .toObject(SpringCloudConfigComponent.class); - Assertions.assertEquals("dj", model.configurations().get(0).propertyName()); - Assertions.assertEquals("dcadwvpsozjiihjr", model.configurations().get(0).value()); - Assertions.assertEquals("gv", model.serviceBinds().get(0).name()); - Assertions.assertEquals("mxaursqftibtyi", model.serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SpringCloudConfigComponent model = new SpringCloudConfigComponent() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("dj").withValue("dcadwvpsozjiihjr"), - new JavaComponentConfigurationProperty().withPropertyName("bmrzoepnx").withValue("v"))) - .withServiceBinds( - Arrays.asList(new JavaComponentServiceBind().withName("gv").withServiceId("mxaursqftibtyi"))); - model = BinaryData.fromObject(model).toObject(SpringCloudConfigComponent.class); - Assertions.assertEquals("dj", model.configurations().get(0).propertyName()); - Assertions.assertEquals("dcadwvpsozjiihjr", model.configurations().get(0).value()); - Assertions.assertEquals("gv", model.serviceBinds().get(0).name()); - Assertions.assertEquals("mxaursqftibtyi", model.serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SpringCloudEurekaComponentTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SpringCloudEurekaComponentTests.java deleted file mode 100644 index a4dd1ea8763a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/SpringCloudEurekaComponentTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.JavaComponentConfigurationProperty; -import com.azure.resourcemanager.appcontainers.models.JavaComponentIngress; -import com.azure.resourcemanager.appcontainers.models.JavaComponentServiceBind; -import com.azure.resourcemanager.appcontainers.models.SpringCloudEurekaComponent; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SpringCloudEurekaComponentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SpringCloudEurekaComponent model = BinaryData.fromString( - "{\"componentType\":\"SpringCloudEureka\",\"ingress\":{\"fqdn\":\"jczjnciuiyqv\"},\"provisioningState\":\"Succeeded\",\"configurations\":[{\"propertyName\":\"ppisqqzlgcndhzx\",\"value\":\"fcfsrhkhgsnx\"},{\"propertyName\":\"wkpphefsb\",\"value\":\"lbzxomeikjc\"}],\"serviceBinds\":[{\"name\":\"cnmwpfsuqtaa\",\"serviceId\":\"qbxyxoyfpuqqi\"}]}") - .toObject(SpringCloudEurekaComponent.class); - Assertions.assertEquals("ppisqqzlgcndhzx", model.configurations().get(0).propertyName()); - Assertions.assertEquals("fcfsrhkhgsnx", model.configurations().get(0).value()); - Assertions.assertEquals("cnmwpfsuqtaa", model.serviceBinds().get(0).name()); - Assertions.assertEquals("qbxyxoyfpuqqi", model.serviceBinds().get(0).serviceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SpringCloudEurekaComponent model - = new SpringCloudEurekaComponent() - .withConfigurations(Arrays.asList( - new JavaComponentConfigurationProperty().withPropertyName("ppisqqzlgcndhzx") - .withValue("fcfsrhkhgsnx"), - new JavaComponentConfigurationProperty().withPropertyName("wkpphefsb").withValue("lbzxomeikjc"))) - .withServiceBinds(Arrays - .asList(new JavaComponentServiceBind().withName("cnmwpfsuqtaa").withServiceId("qbxyxoyfpuqqi"))) - .withIngress(new JavaComponentIngress()); - model = BinaryData.fromObject(model).toObject(SpringCloudEurekaComponent.class); - Assertions.assertEquals("ppisqqzlgcndhzx", model.configurations().get(0).propertyName()); - Assertions.assertEquals("fcfsrhkhgsnx", model.configurations().get(0).value()); - Assertions.assertEquals("cnmwpfsuqtaa", model.serviceBinds().get(0).name()); - Assertions.assertEquals("qbxyxoyfpuqqi", model.serviceBinds().get(0).serviceId()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TcpConnectionPoolTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TcpConnectionPoolTests.java deleted file mode 100644 index 525f953e5e6e..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TcpConnectionPoolTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.TcpConnectionPool; -import org.junit.jupiter.api.Assertions; - -public final class TcpConnectionPoolTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TcpConnectionPool model - = BinaryData.fromString("{\"maxConnections\":171596164}").toObject(TcpConnectionPool.class); - Assertions.assertEquals(171596164, model.maxConnections()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TcpConnectionPool model = new TcpConnectionPool().withMaxConnections(171596164); - model = BinaryData.fromObject(model).toObject(TcpConnectionPool.class); - Assertions.assertEquals(171596164, model.maxConnections()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TcpRetryPolicyTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TcpRetryPolicyTests.java deleted file mode 100644 index aa0e1f0e2019..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TcpRetryPolicyTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.TcpRetryPolicy; -import org.junit.jupiter.api.Assertions; - -public final class TcpRetryPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TcpRetryPolicy model - = BinaryData.fromString("{\"maxConnectAttempts\":56034680}").toObject(TcpRetryPolicy.class); - Assertions.assertEquals(56034680, model.maxConnectAttempts()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TcpRetryPolicy model = new TcpRetryPolicy().withMaxConnectAttempts(56034680); - model = BinaryData.fromObject(model).toObject(TcpRetryPolicy.class); - Assertions.assertEquals(56034680, model.maxConnectAttempts()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TimeoutPolicyTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TimeoutPolicyTests.java deleted file mode 100644 index 22186455269f..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TimeoutPolicyTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.TimeoutPolicy; -import org.junit.jupiter.api.Assertions; - -public final class TimeoutPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TimeoutPolicy model = BinaryData - .fromString("{\"responseTimeoutInSeconds\":2068674986,\"connectionTimeoutInSeconds\":974822937}") - .toObject(TimeoutPolicy.class); - Assertions.assertEquals(2068674986, model.responseTimeoutInSeconds()); - Assertions.assertEquals(974822937, model.connectionTimeoutInSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TimeoutPolicy model - = new TimeoutPolicy().withResponseTimeoutInSeconds(2068674986).withConnectionTimeoutInSeconds(974822937); - model = BinaryData.fromObject(model).toObject(TimeoutPolicy.class); - Assertions.assertEquals(2068674986, model.responseTimeoutInSeconds()); - Assertions.assertEquals(974822937, model.connectionTimeoutInSeconds()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TracesConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TracesConfigurationTests.java deleted file mode 100644 index a324d0e2a44c..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TracesConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.TracesConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TracesConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TracesConfiguration model = BinaryData - .fromString("{\"destinations\":[\"dtddmflh\",\"ytxzvtznapxbanno\",\"voxczytpr\",\"nwvroevytlyokrr\"]}") - .toObject(TracesConfiguration.class); - Assertions.assertEquals("dtddmflh", model.destinations().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TracesConfiguration model = new TracesConfiguration() - .withDestinations(Arrays.asList("dtddmflh", "ytxzvtznapxbanno", "voxczytpr", "nwvroevytlyokrr")); - model = BinaryData.fromObject(model).toObject(TracesConfiguration.class); - Assertions.assertEquals("dtddmflh", model.destinations().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TrafficWeightTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TrafficWeightTests.java deleted file mode 100644 index f3898c48dd76..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/TrafficWeightTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.TrafficWeight; -import org.junit.jupiter.api.Assertions; - -public final class TrafficWeightTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TrafficWeight model = BinaryData.fromString( - "{\"revisionName\":\"wspughftqsxhqx\",\"weight\":318834407,\"latestRevision\":true,\"label\":\"dxdigr\"}") - .toObject(TrafficWeight.class); - Assertions.assertEquals("wspughftqsxhqx", model.revisionName()); - Assertions.assertEquals(318834407, model.weight()); - Assertions.assertEquals(true, model.latestRevision()); - Assertions.assertEquals("dxdigr", model.label()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TrafficWeight model = new TrafficWeight().withRevisionName("wspughftqsxhqx") - .withWeight(318834407) - .withLatestRevision(true) - .withLabel("dxdigr"); - model = BinaryData.fromObject(model).toObject(TrafficWeight.class); - Assertions.assertEquals("wspughftqsxhqx", model.revisionName()); - Assertions.assertEquals(318834407, model.weight()); - Assertions.assertEquals(true, model.latestRevision()); - Assertions.assertEquals("dxdigr", model.label()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UsageInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UsageInnerTests.java deleted file mode 100644 index 6ef3b752083a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UsageInnerTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.UsageInner; -import com.azure.resourcemanager.appcontainers.models.UsageName; -import org.junit.jupiter.api.Assertions; - -public final class UsageInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UsageInner model = BinaryData.fromString( - "{\"currentValue\":32.97602,\"limit\":74.61837,\"name\":{\"value\":\"mbjrou\",\"localizedValue\":\"znv\"}}") - .toObject(UsageInner.class); - Assertions.assertEquals(32.97602f, model.currentValue()); - Assertions.assertEquals(74.61837f, model.limit()); - Assertions.assertEquals("mbjrou", model.name().value()); - Assertions.assertEquals("znv", model.name().localizedValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsageInner model = new UsageInner().withCurrentValue(32.97602f) - .withLimit(74.61837f) - .withName(new UsageName().withValue("mbjrou").withLocalizedValue("znv")); - model = BinaryData.fromObject(model).toObject(UsageInner.class); - Assertions.assertEquals(32.97602f, model.currentValue()); - Assertions.assertEquals(74.61837f, model.limit()); - Assertions.assertEquals("mbjrou", model.name().value()); - Assertions.assertEquals("znv", model.name().localizedValue()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UsageNameTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UsageNameTests.java deleted file mode 100644 index e820ae82ea5a..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UsageNameTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.UsageName; -import org.junit.jupiter.api.Assertions; - -public final class UsageNameTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UsageName model = BinaryData.fromString("{\"value\":\"qjrhuzgfxonj\",\"localizedValue\":\"usllywpvtiotz\"}") - .toObject(UsageName.class); - Assertions.assertEquals("qjrhuzgfxonj", model.value()); - Assertions.assertEquals("usllywpvtiotz", model.localizedValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UsageName model = new UsageName().withValue("qjrhuzgfxonj").withLocalizedValue("usllywpvtiotz"); - model = BinaryData.fromObject(model).toObject(UsageName.class); - Assertions.assertEquals("qjrhuzgfxonj", model.value()); - Assertions.assertEquals("usllywpvtiotz", model.localizedValue()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UsagesListMockTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UsagesListMockTests.java deleted file mode 100644 index f230d8fa1c57..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UsagesListMockTests.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.appcontainers.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.appcontainers.ContainerAppsApiManager; -import com.azure.resourcemanager.appcontainers.models.Usage; -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 UsagesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"currentValue\":87.503876,\"limit\":38.785545,\"name\":{\"value\":\"voupr\",\"localizedValue\":\"tqzsslhmgwfnivr\"}}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ContainerAppsApiManager manager = ContainerAppsApiManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.usages().list("sc", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(87.503876f, response.iterator().next().currentValue()); - Assertions.assertEquals(38.785545f, response.iterator().next().limit()); - Assertions.assertEquals("voupr", response.iterator().next().name().value()); - Assertions.assertEquals("tqzsslhmgwfnivr", response.iterator().next().name().localizedValue()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UserAssignedIdentityTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UserAssignedIdentityTests.java deleted file mode 100644 index 8d7ea189b180..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/UserAssignedIdentityTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.UserAssignedIdentity; - -public final class UserAssignedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"3984f8ea-15c5-4845-949d-d4477d8f5957\",\"clientId\":\"913730cb-4e52-4e62-8590-3af390eab4ca\"}") - .toObject(UserAssignedIdentity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedIdentity model = new UserAssignedIdentity(); - model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/VnetConfigurationTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/VnetConfigurationTests.java deleted file mode 100644 index 6a9baa1f6787..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/VnetConfigurationTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.VnetConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class VnetConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VnetConfiguration model = BinaryData.fromString( - "{\"internal\":false,\"infrastructureSubnetId\":\"yrplrohkpigqfus\",\"dockerBridgeCidr\":\"kzmkwklsnoxaxmqe\",\"platformReservedCidr\":\"lhhjnh\",\"platformReservedDnsIP\":\"ydyynfsvkh\"}") - .toObject(VnetConfiguration.class); - Assertions.assertEquals(false, model.internal()); - Assertions.assertEquals("yrplrohkpigqfus", model.infrastructureSubnetId()); - Assertions.assertEquals("kzmkwklsnoxaxmqe", model.dockerBridgeCidr()); - Assertions.assertEquals("lhhjnh", model.platformReservedCidr()); - Assertions.assertEquals("ydyynfsvkh", model.platformReservedDnsIp()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VnetConfiguration model = new VnetConfiguration().withInternal(false) - .withInfrastructureSubnetId("yrplrohkpigqfus") - .withDockerBridgeCidr("kzmkwklsnoxaxmqe") - .withPlatformReservedCidr("lhhjnh") - .withPlatformReservedDnsIp("ydyynfsvkh"); - model = BinaryData.fromObject(model).toObject(VnetConfiguration.class); - Assertions.assertEquals(false, model.internal()); - Assertions.assertEquals("yrplrohkpigqfus", model.infrastructureSubnetId()); - Assertions.assertEquals("kzmkwklsnoxaxmqe", model.dockerBridgeCidr()); - Assertions.assertEquals("lhhjnh", model.platformReservedCidr()); - Assertions.assertEquals("ydyynfsvkh", model.platformReservedDnsIp()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/VolumeMountTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/VolumeMountTests.java deleted file mode 100644 index a47a836b972d..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/VolumeMountTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.VolumeMount; -import org.junit.jupiter.api.Assertions; - -public final class VolumeMountTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeMount model - = BinaryData.fromString("{\"volumeName\":\"mc\",\"mountPath\":\"hixbjxyfwnyl\",\"subPath\":\"ool\"}") - .toObject(VolumeMount.class); - Assertions.assertEquals("mc", model.volumeName()); - Assertions.assertEquals("hixbjxyfwnyl", model.mountPath()); - Assertions.assertEquals("ool", model.subPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeMount model = new VolumeMount().withVolumeName("mc").withMountPath("hixbjxyfwnyl").withSubPath("ool"); - model = BinaryData.fromObject(model).toObject(VolumeMount.class); - Assertions.assertEquals("mc", model.volumeName()); - Assertions.assertEquals("hixbjxyfwnyl", model.mountPath()); - Assertions.assertEquals("ool", model.subPath()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkflowArtifactsTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkflowArtifactsTests.java deleted file mode 100644 index 893bfdae97bf..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkflowArtifactsTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.WorkflowArtifacts; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class WorkflowArtifactsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkflowArtifacts model = BinaryData.fromString( - "{\"appSettings\":\"datahocn\",\"files\":\"datacmj\",\"filesToDelete\":[\"xnoqrxtdisn\",\"evhdlmydid\",\"hepfwwtjfdoes\"]}") - .toObject(WorkflowArtifacts.class); - Assertions.assertEquals("xnoqrxtdisn", model.filesToDelete().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkflowArtifacts model = new WorkflowArtifacts().withAppSettings("datahocn") - .withFiles("datacmj") - .withFilesToDelete(Arrays.asList("xnoqrxtdisn", "evhdlmydid", "hepfwwtjfdoes")); - model = BinaryData.fromObject(model).toObject(WorkflowArtifacts.class); - Assertions.assertEquals("xnoqrxtdisn", model.filesToDelete().get(0)); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileStatesCollectionTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileStatesCollectionTests.java deleted file mode 100644 index fa03e087f05b..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileStatesCollectionTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.WorkloadProfileStatesInner; -import com.azure.resourcemanager.appcontainers.models.WorkloadProfileStatesCollection; -import com.azure.resourcemanager.appcontainers.models.WorkloadProfileStatesProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class WorkloadProfileStatesCollectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadProfileStatesCollection model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"minimumCount\":841539967,\"maximumCount\":48520989,\"currentCount\":359427084},\"id\":\"bwptdacarvvlf\",\"name\":\"tymtpoiwenazer\",\"type\":\"hzr\"},{\"properties\":{\"minimumCount\":1152478081,\"maximumCount\":182603421,\"currentCount\":1999713581},\"id\":\"wqapfgsdp\",\"name\":\"vessm\",\"type\":\"hhkuuip\"},{\"properties\":{\"minimumCount\":173129276,\"maximumCount\":1276247393,\"currentCount\":611963257},\"id\":\"alblhtjqvq\",\"name\":\"vweht\",\"type\":\"emxhzzy\"}],\"nextLink\":\"vusxiv\"}") - .toObject(WorkloadProfileStatesCollection.class); - Assertions.assertEquals(841539967, model.value().get(0).properties().minimumCount()); - Assertions.assertEquals(48520989, model.value().get(0).properties().maximumCount()); - Assertions.assertEquals(359427084, model.value().get(0).properties().currentCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadProfileStatesCollection model = new WorkloadProfileStatesCollection().withValue(Arrays.asList( - new WorkloadProfileStatesInner() - .withProperties(new WorkloadProfileStatesProperties().withMinimumCount(841539967) - .withMaximumCount(48520989) - .withCurrentCount(359427084)), - new WorkloadProfileStatesInner() - .withProperties(new WorkloadProfileStatesProperties().withMinimumCount(1152478081) - .withMaximumCount(182603421) - .withCurrentCount(1999713581)), - new WorkloadProfileStatesInner() - .withProperties(new WorkloadProfileStatesProperties().withMinimumCount(173129276) - .withMaximumCount(1276247393) - .withCurrentCount(611963257)))); - model = BinaryData.fromObject(model).toObject(WorkloadProfileStatesCollection.class); - Assertions.assertEquals(841539967, model.value().get(0).properties().minimumCount()); - Assertions.assertEquals(48520989, model.value().get(0).properties().maximumCount()); - Assertions.assertEquals(359427084, model.value().get(0).properties().currentCount()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileStatesInnerTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileStatesInnerTests.java deleted file mode 100644 index 635066249bae..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileStatesInnerTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.fluent.models.WorkloadProfileStatesInner; -import com.azure.resourcemanager.appcontainers.models.WorkloadProfileStatesProperties; -import org.junit.jupiter.api.Assertions; - -public final class WorkloadProfileStatesInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadProfileStatesInner model = BinaryData.fromString( - "{\"properties\":{\"minimumCount\":1097433567,\"maximumCount\":1354707820,\"currentCount\":1814019829},\"id\":\"ipsk\",\"name\":\"yzatvfuzkaft\",\"type\":\"vvruxwi\"}") - .toObject(WorkloadProfileStatesInner.class); - Assertions.assertEquals(1097433567, model.properties().minimumCount()); - Assertions.assertEquals(1354707820, model.properties().maximumCount()); - Assertions.assertEquals(1814019829, model.properties().currentCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadProfileStatesInner model = new WorkloadProfileStatesInner() - .withProperties(new WorkloadProfileStatesProperties().withMinimumCount(1097433567) - .withMaximumCount(1354707820) - .withCurrentCount(1814019829)); - model = BinaryData.fromObject(model).toObject(WorkloadProfileStatesInner.class); - Assertions.assertEquals(1097433567, model.properties().minimumCount()); - Assertions.assertEquals(1354707820, model.properties().maximumCount()); - Assertions.assertEquals(1814019829, model.properties().currentCount()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileStatesPropertiesTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileStatesPropertiesTests.java deleted file mode 100644 index f4df703ec0e1..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileStatesPropertiesTests.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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.WorkloadProfileStatesProperties; -import org.junit.jupiter.api.Assertions; - -public final class WorkloadProfileStatesPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadProfileStatesProperties model = BinaryData - .fromString("{\"minimumCount\":1064338012,\"maximumCount\":422626057,\"currentCount\":1747696995}") - .toObject(WorkloadProfileStatesProperties.class); - Assertions.assertEquals(1064338012, model.minimumCount()); - Assertions.assertEquals(422626057, model.maximumCount()); - Assertions.assertEquals(1747696995, model.currentCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadProfileStatesProperties model = new WorkloadProfileStatesProperties().withMinimumCount(1064338012) - .withMaximumCount(422626057) - .withCurrentCount(1747696995); - model = BinaryData.fromObject(model).toObject(WorkloadProfileStatesProperties.class); - Assertions.assertEquals(1064338012, model.minimumCount()); - Assertions.assertEquals(422626057, model.maximumCount()); - Assertions.assertEquals(1747696995, model.currentCount()); - } -} diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileTests.java b/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileTests.java deleted file mode 100644 index 2dbdcd483742..000000000000 --- a/sdk/appcontainers/azure-resourcemanager-appcontainers/src/test/java/com/azure/resourcemanager/appcontainers/generated/WorkloadProfileTests.java +++ /dev/null @@ -1,35 +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.appcontainers.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appcontainers.models.WorkloadProfile; -import org.junit.jupiter.api.Assertions; - -public final class WorkloadProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadProfile model = BinaryData.fromString( - "{\"name\":\"ohrdddt\",\"workloadProfileType\":\"gxqbawpcb\",\"minimumCount\":2068748786,\"maximumCount\":1409471968}") - .toObject(WorkloadProfile.class); - Assertions.assertEquals("ohrdddt", model.name()); - Assertions.assertEquals("gxqbawpcb", model.workloadProfileType()); - Assertions.assertEquals(2068748786, model.minimumCount()); - Assertions.assertEquals(1409471968, model.maximumCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadProfile model = new WorkloadProfile().withName("ohrdddt") - .withWorkloadProfileType("gxqbawpcb") - .withMinimumCount(2068748786) - .withMaximumCount(1409471968); - model = BinaryData.fromObject(model).toObject(WorkloadProfile.class); - Assertions.assertEquals("ohrdddt", model.name()); - Assertions.assertEquals("gxqbawpcb", model.workloadProfileType()); - Assertions.assertEquals(2068748786, model.minimumCount()); - Assertions.assertEquals(1409471968, model.maximumCount()); - } -}