diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/CHANGELOG.md b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/CHANGELOG.md index c27784a662bf..1dfa13352fd2 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/CHANGELOG.md +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/CHANGELOG.md @@ -1,14 +1,224 @@ # Release History -## 1.3.0-beta.2 (Unreleased) +## 1.3.0-beta.2 (2025-12-03) -### Features Added +- Azure Resource Manager Container Service Fleet client library for Java. This package contains Microsoft Azure SDK for Container Service Fleet Management SDK. Azure Kubernetes Fleet Manager api client. Package api-version 2025-08-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.ApiServerAccessProfile` was modified + +* `validate()` was removed + +#### `models.UserAssignedIdentity` was modified + +* `validate()` was removed + +#### `models.AgentProfile` was modified + +* `validate()` was removed + +#### `models.FleetStatus` was modified + +* `validate()` was removed + +#### `models.UpdateStageStatus` was modified + +* `validate()` was removed + +#### `models.ManagedServiceIdentity` was modified + +* `validate()` was removed + +#### `models.UpdateGroupStatus` was modified + +* `validate()` was removed + +#### `models.UpdateRunStrategy` was modified + +* `validate()` was removed + +#### `models.NodeImageSelectionStatus` was modified + +* `validate()` was removed + +#### `models.FleetMemberUpdate` was modified + +* `validate()` was removed + +#### `models.FleetPatch` was modified + +* `validate()` was removed + +#### `models.UpdateGroup` was modified + +* `validate()` was removed + +#### `models.SkipProperties` was modified + +* `validate()` was removed + +#### `models.MemberUpdateStatus` was modified + +* `validate()` was removed + +#### `models.FleetCredentialResult` was modified + +* `validate()` was removed + +#### `models.SkipTarget` was modified + +* `validate()` was removed + +#### `models.UpdateRunStatus` was modified + +* `validate()` was removed + +#### `models.GateConfiguration` was modified + +* `validate()` was removed + +#### `models.WaitStatus` was modified + +* `validate()` was removed + +#### `models.FleetHubProfile` was modified + +* `validate()` was removed + +#### `models.UpdateRunGateStatus` was modified + +* `validate()` was removed + +#### `models.NodeImageSelection` was modified + +* `validate()` was removed + +#### `models.FleetMemberStatus` was modified + +* `validate()` was removed + +#### `models.GatePatch` was modified + +* `validate()` was removed + +#### `models.UpdateStatus` was modified + +* `validate()` was removed + +#### `models.AutoUpgradeNodeImageSelection` was modified + +* `validate()` was removed + +#### `models.GatePatchProperties` was modified + +* `validate()` was removed + +#### `models.ManagedClusterUpgradeSpec` was modified + +* `validate()` was removed + +#### `models.UpdateStage` was modified + +* `validate()` was removed + +#### `models.UpdateRunGateTargetProperties` was modified + +* `validate()` was removed + +#### `models.GateTarget` was modified + +* `validate()` was removed + +#### `models.OperationDisplay` was modified + +* `validate()` was removed + +#### `models.ManagedClusterUpdate` was modified + +* `validate()` was removed + +#### `models.NodeImageVersion` was modified + +* `validate()` was removed + +#### `models.AutoUpgradeProfileStatus` was modified + +* `validate()` was removed + +### Features Added + +* `models.LabelSelector` was added + +* `models.AdoptionPolicy` was added + +* `models.FleetManagedNamespace$DefinitionStages` was added + +* `models.PropagationType` was added + +* `models.FleetManagedNamespaces` was added + +* `models.NetworkPolicy` was added + +* `models.DeletePolicy` was added + +* `models.LabelSelectorRequirement` was added + +* `models.FleetManagedNamespace` was added + +* `models.TolerationOperator` was added + +* `models.FleetManagedNamespaceProvisioningState` was added + +* `models.PlacementType` was added + +* `models.PolicyRule` was added + +* `models.Toleration` was added + +* `models.ClusterSelectorTerm` was added + +* `models.FleetManagedNamespace$UpdateStages` was added + +* `models.LabelSelectorOperator` was added + +* `models.ClusterResourcePlacementSpec` was added + +* `models.PropertySelectorRequirement` was added + +* `models.PlacementProfile` was added + +* `models.FleetManagedNamespace$Definition` was added + +* `models.ManagedNamespaceProperties` was added + +* `models.PropertySelector` was added + +* `models.ClusterAffinity` was added + +* `models.TaintEffect` was added + +* `models.FleetManagedNamespaceStatus` was added + +* `models.FleetManagedNamespacePatch` was added + +* `models.ClusterSelector` was added + +* `models.PropagationPolicy` was added + +* `models.ResourceQuota` was added + +* `models.PropertySelectorOperator` was added + +* `models.PlacementPolicy` was added + +* `models.FleetManagedNamespace$Update` was added + +* `models.Affinity` was added + +#### `ContainerServiceFleetManager` was modified -### Other Changes +* `fleetManagedNamespaces()` was added ## 1.3.0-beta.1 (2025-08-07) diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/README.md b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/README.md index a455248e6434..84ad07adbe11 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/README.md +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Container Service Fleet client library for Java. -This package contains Microsoft Azure SDK for Container Service Fleet Management SDK. Azure Kubernetes Fleet Manager api client. Package api-version 2025-04-01-preview. 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 Container Service Fleet Management SDK. Azure Kubernetes Fleet Manager api client. Package api-version 2025-08-01-preview. 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-containerservicefleet - 1.3.0-beta.1 + 1.3.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/SAMPLE.md b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/SAMPLE.md index 14ebad0df2ac..f36b61b434f5 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/SAMPLE.md +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/SAMPLE.md @@ -12,6 +12,14 @@ - [Get](#autoupgradeprofiles_get) - [ListByFleet](#autoupgradeprofiles_listbyfleet) +## FleetManagedNamespaces + +- [CreateOrUpdate](#fleetmanagednamespaces_createorupdate) +- [Delete](#fleetmanagednamespaces_delete) +- [Get](#fleetmanagednamespaces_get) +- [ListByFleet](#fleetmanagednamespaces_listbyfleet) +- [Update](#fleetmanagednamespaces_update) + ## FleetMembers - [Create](#fleetmembers_create) @@ -64,7 +72,7 @@ */ public final class AutoUpgradeProfileOperationsGenerateUpdateRunSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfileOperations_GenerateUpdateRun_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfileOperations_GenerateUpdateRun_MaximumSet_Gen.json */ /** * Sample code: AutoUpgradeProfileOperations_GenerateUpdateRun_MaximumSet. @@ -91,7 +99,7 @@ import com.azure.resourcemanager.containerservicefleet.models.UpgradeChannel; */ public final class AutoUpgradeProfilesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_CreateOrUpdate.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_CreateOrUpdate.json */ /** * Sample code: Create an AutoUpgradeProfile. @@ -110,7 +118,7 @@ public final class AutoUpgradeProfilesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Create an AutoUpgradeProfile. - generated by [MaximumSet] rule. @@ -143,7 +151,7 @@ public final class AutoUpgradeProfilesCreateOrUpdateSamples { */ public final class AutoUpgradeProfilesDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_Delete_MaximumSet_Gen.json */ /** * Sample code: Delete an AutoUpgradeProfile resource. - generated by [MaximumSet] rule. @@ -157,7 +165,7 @@ public final class AutoUpgradeProfilesDeleteSamples { } /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_Delete.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_Delete.json */ /** * Sample code: Delete an AutoUpgradeProfile resource. @@ -180,7 +188,7 @@ public final class AutoUpgradeProfilesDeleteSamples { */ public final class AutoUpgradeProfilesGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_Get_MaximumSet_Gen.json */ /** * Sample code: Gets an AutoUpgradeProfile resource. - generated by [MaximumSet] rule. @@ -194,7 +202,7 @@ public final class AutoUpgradeProfilesGetSamples { } /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_Get.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_Get.json */ /** * Sample code: Gets an AutoUpgradeProfile resource. @@ -217,7 +225,7 @@ public final class AutoUpgradeProfilesGetSamples { */ public final class AutoUpgradeProfilesListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_ListByFleet.json */ /** * Sample code: Lists the AutoUpgradeProfile resources by fleet. @@ -230,7 +238,7 @@ public final class AutoUpgradeProfilesListByFleetSamples { } /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_ListByFleet_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_ListByFleet_MaximumSet_Gen.json */ /** * Sample code: Lists the AutoUpgradeProfile resources by fleet. - generated by [MaximumSet] rule. @@ -244,6 +252,207 @@ public final class AutoUpgradeProfilesListByFleetSamples { } ``` +### FleetManagedNamespaces_CreateOrUpdate + +```java +import com.azure.resourcemanager.containerservicefleet.models.AdoptionPolicy; +import com.azure.resourcemanager.containerservicefleet.models.Affinity; +import com.azure.resourcemanager.containerservicefleet.models.ClusterAffinity; +import com.azure.resourcemanager.containerservicefleet.models.ClusterResourcePlacementSpec; +import com.azure.resourcemanager.containerservicefleet.models.ClusterSelector; +import com.azure.resourcemanager.containerservicefleet.models.ClusterSelectorTerm; +import com.azure.resourcemanager.containerservicefleet.models.DeletePolicy; +import com.azure.resourcemanager.containerservicefleet.models.LabelSelector; +import com.azure.resourcemanager.containerservicefleet.models.LabelSelectorOperator; +import com.azure.resourcemanager.containerservicefleet.models.LabelSelectorRequirement; +import com.azure.resourcemanager.containerservicefleet.models.ManagedNamespaceProperties; +import com.azure.resourcemanager.containerservicefleet.models.NetworkPolicy; +import com.azure.resourcemanager.containerservicefleet.models.PlacementPolicy; +import com.azure.resourcemanager.containerservicefleet.models.PlacementProfile; +import com.azure.resourcemanager.containerservicefleet.models.PlacementType; +import com.azure.resourcemanager.containerservicefleet.models.PolicyRule; +import com.azure.resourcemanager.containerservicefleet.models.PropagationPolicy; +import com.azure.resourcemanager.containerservicefleet.models.PropagationType; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelector; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelectorOperator; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelectorRequirement; +import com.azure.resourcemanager.containerservicefleet.models.ResourceQuota; +import com.azure.resourcemanager.containerservicefleet.models.TaintEffect; +import com.azure.resourcemanager.containerservicefleet.models.Toleration; +import com.azure.resourcemanager.containerservicefleet.models.TolerationOperator; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for FleetManagedNamespaces CreateOrUpdate. + */ +public final class FleetManagedNamespacesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_CreateOrUpdate.json + */ + /** + * Sample code: FleetManagedNamespaces_CreateOrUpdate. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesCreateOrUpdate( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.fleetManagedNamespaces() + .define("namespace1") + .withRegion("eastus") + .withExistingFleet("rgfleets", "fleet1") + .withManagedNamespaceProperties(new ManagedNamespaceProperties() + .withLabels(mapOf("key1", "fakeTokenPlaceholder")) + .withAnnotations(mapOf("key2", "fakeTokenPlaceholder")) + .withDefaultResourceQuota(new ResourceQuota().withCpuRequest("1") + .withCpuLimit("1") + .withMemoryRequest("10Gi") + .withMemoryLimit("32Gi")) + .withDefaultNetworkPolicy( + new NetworkPolicy().withIngress(PolicyRule.ALLOW_SAME_NAMESPACE).withEgress(PolicyRule.ALLOW_ALL))) + .withAdoptionPolicy(AdoptionPolicy.NEVER) + .withDeletePolicy(DeletePolicy.KEEP) + .withPropagationPolicy( + new PropagationPolicy().withType(PropagationType.PLACEMENT) + .withPlacementProfile( + new PlacementProfile() + .withDefaultClusterResourcePlacement( + new ClusterResourcePlacementSpec() + .withPolicy(new PlacementPolicy().withPlacementType(PlacementType.PICK_ALL) + .withAffinity(new Affinity().withClusterAffinity( + new ClusterAffinity().withRequiredDuringSchedulingIgnoredDuringExecution( + new ClusterSelector() + .withClusterSelectorTerms(Arrays.asList(new ClusterSelectorTerm() + .withLabelSelector( + new LabelSelector().withMatchLabels(mapOf("gpu", "true")) + .withMatchExpressions( + Arrays.asList(new LabelSelectorRequirement() + .withKey("fakeTokenPlaceholder") + .withOperator(LabelSelectorOperator.IN) + .withValues(Arrays.asList("production1", + "production2"))))) + .withPropertySelector( + new PropertySelector().withMatchExpressions(Arrays.asList( + new PropertySelectorRequirement().withName("zones") + .withOperator(PropertySelectorOperator.GT) + .withValues(Arrays.asList("1")))))))))) + .withTolerations(Arrays.asList(new Toleration().withKey("fakeTokenPlaceholder") + .withOperator(TolerationOperator.EXISTS) + .withValue("true") + .withEffect(TaintEffect.NO_SCHEDULE))))))) + .create(); + } + + // 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; + } +} +``` + +### FleetManagedNamespaces_Delete + +```java +/** + * Samples for FleetManagedNamespaces Delete. + */ +public final class FleetManagedNamespacesDeleteSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_Delete.json + */ + /** + * Sample code: FleetManagedNamespaces_Delete. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesDelete( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.fleetManagedNamespaces() + .delete("rgfleets", "fleet1", "namespace1", null, com.azure.core.util.Context.NONE); + } +} +``` + +### FleetManagedNamespaces_Get + +```java +/** + * Samples for FleetManagedNamespaces Get. + */ +public final class FleetManagedNamespacesGetSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_Get.json + */ + /** + * Sample code: FleetManagedNamespaces_Get. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesGet( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.fleetManagedNamespaces() + .getWithResponse("rgfleets", "fleet1", "namespace1", com.azure.core.util.Context.NONE); + } +} +``` + +### FleetManagedNamespaces_ListByFleet + +```java +/** + * Samples for FleetManagedNamespaces ListByFleet. + */ +public final class FleetManagedNamespacesListByFleetSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_ListByFleet.json + */ + /** + * Sample code: FleetManagedNamespaces_ListByFleet. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesListByFleet( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.fleetManagedNamespaces().listByFleet("rgfleets", "fleet1", com.azure.core.util.Context.NONE); + } +} +``` + +### FleetManagedNamespaces_Update + +```java +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespace; + +/** + * Samples for FleetManagedNamespaces Update. + */ +public final class FleetManagedNamespacesUpdateSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_Update.json + */ + /** + * Sample code: FleetManagedNamespaces_Update. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesUpdate( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + FleetManagedNamespace resource = manager.fleetManagedNamespaces() + .getWithResponse("rgfleets", "fleet1", "namespace1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } +} +``` + ### FleetMembers_Create ```java @@ -252,7 +461,7 @@ public final class AutoUpgradeProfilesListByFleetSamples { */ public final class FleetMembersCreateSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Create.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Create.json */ /** * Sample code: Creates a FleetMember resource with a long running operation. @@ -270,7 +479,7 @@ public final class FleetMembersCreateSamples { } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Create_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Create_MaximumSet_Gen.json */ /** * Sample code: Creates a FleetMember resource with a long running operation. - generated by [MaximumSet] rule. @@ -300,7 +509,7 @@ public final class FleetMembersCreateSamples { */ public final class FleetMembersDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Delete_MaximumSet_Gen.json */ /** * Sample code: Deletes a FleetMember resource asynchronously with a long running operation. - generated by @@ -314,7 +523,7 @@ public final class FleetMembersDeleteSamples { } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Delete.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Delete.json */ /** * Sample code: Deletes a FleetMember resource asynchronously with a long running operation. @@ -336,7 +545,7 @@ public final class FleetMembersDeleteSamples { */ public final class FleetMembersGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Get.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Get.json */ /** * Sample code: Gets a FleetMember resource. @@ -349,7 +558,7 @@ public final class FleetMembersGetSamples { } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Get_MaximumSet_Gen.json */ /** * Sample code: Gets a FleetMember resource. - generated by [MaximumSet] rule. @@ -371,7 +580,7 @@ public final class FleetMembersGetSamples { */ public final class FleetMembersListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_ListByFleet_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_ListByFleet_MaximumSet_Gen.json */ /** * Sample code: Lists the members of a Fleet. - generated by [MaximumSet] rule. @@ -384,7 +593,7 @@ public final class FleetMembersListByFleetSamples { } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_ListByFleet.json */ /** * Sample code: Lists the members of a Fleet. @@ -408,7 +617,7 @@ import com.azure.resourcemanager.containerservicefleet.models.FleetMember; */ public final class FleetMembersUpdateAsyncSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Update_MaximumSet_Gen.json */ /** * Sample code: Updates a FleetMember resource synchronously. - generated by [MaximumSet] rule. @@ -424,7 +633,7 @@ public final class FleetMembersUpdateAsyncSamples { } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Update.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Update.json */ /** * Sample code: Updates a FleetMember resource synchronously. @@ -456,7 +665,7 @@ import java.util.Arrays; */ public final class FleetUpdateStrategiesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetUpdateStrategies_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetUpdateStrategies_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Create a FleetUpdateStrategy. - generated by [MaximumSet] rule. @@ -477,7 +686,7 @@ public final class FleetUpdateStrategiesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-04-01-preview/UpdateStrategies_CreateOrUpdate.json + * x-ms-original-file: 2025-08-01-preview/UpdateStrategies_CreateOrUpdate.json */ /** * Sample code: Create a FleetUpdateStrategy. @@ -513,7 +722,7 @@ public final class FleetUpdateStrategiesCreateOrUpdateSamples { */ public final class FleetUpdateStrategiesDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateStrategies_Delete.json + * x-ms-original-file: 2025-08-01-preview/UpdateStrategies_Delete.json */ /** * Sample code: Delete a FleetUpdateStrategy resource. @@ -526,7 +735,7 @@ public final class FleetUpdateStrategiesDeleteSamples { } /* - * x-ms-original-file: 2025-04-01-preview/FleetUpdateStrategies_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetUpdateStrategies_Delete_MaximumSet_Gen.json */ /** * Sample code: Delete a FleetUpdateStrategy resource. - generated by [MaximumSet] rule. @@ -549,7 +758,7 @@ public final class FleetUpdateStrategiesDeleteSamples { */ public final class FleetUpdateStrategiesGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetUpdateStrategies_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetUpdateStrategies_Get_MaximumSet_Gen.json */ /** * Sample code: Get a FleetUpdateStrategy resource. - generated by [MaximumSet] rule. @@ -563,7 +772,7 @@ public final class FleetUpdateStrategiesGetSamples { } /* - * x-ms-original-file: 2025-04-01-preview/UpdateStrategies_Get.json + * x-ms-original-file: 2025-08-01-preview/UpdateStrategies_Get.json */ /** * Sample code: Get a FleetUpdateStrategy resource. @@ -585,7 +794,7 @@ public final class FleetUpdateStrategiesGetSamples { */ public final class FleetUpdateStrategiesListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateStrategies_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/UpdateStrategies_ListByFleet.json */ /** * Sample code: List the FleetUpdateStrategy resources by fleet. @@ -598,7 +807,7 @@ public final class FleetUpdateStrategiesListByFleetSamples { } /* - * x-ms-original-file: 2025-04-01-preview/FleetUpdateStrategies_ListByFleet_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetUpdateStrategies_ListByFleet_MaximumSet_Gen.json */ /** * Sample code: List the FleetUpdateStrategy resources by fleet. - generated by [MaximumSet] rule. @@ -629,7 +838,7 @@ import java.util.Map; */ public final class FleetsCreateSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Creates a Fleet resource with a long running operation. - generated by [MaximumSet] rule. @@ -659,7 +868,7 @@ public final class FleetsCreateSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_CreateOrUpdate.json + * x-ms-original-file: 2025-08-01-preview/Fleets_CreateOrUpdate.json */ /** * Sample code: Creates a Fleet resource with a long running operation. @@ -700,7 +909,7 @@ public final class FleetsCreateSamples { */ public final class FleetsDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Delete.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Delete.json */ /** * Sample code: Deletes a Fleet resource asynchronously with a long running operation. @@ -713,7 +922,7 @@ public final class FleetsDeleteSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Delete_MaximumSet_Gen.json */ /** * Sample code: Deletes a Fleet resource asynchronously with a long running operation. - generated by [MaximumSet] @@ -737,7 +946,7 @@ public final class FleetsDeleteSamples { */ public final class FleetsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Get_MaximumSet_Gen.json */ /** * Sample code: Gets a Fleet resource. - generated by [MaximumSet] rule. @@ -750,7 +959,7 @@ public final class FleetsGetByResourceGroupSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Get.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Get.json */ /** * Sample code: Gets a Fleet resource. @@ -772,7 +981,7 @@ public final class FleetsGetByResourceGroupSamples { */ public final class FleetsListSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: Lists the Fleet resources in a subscription. - generated by [MaximumSet] rule. @@ -785,7 +994,7 @@ public final class FleetsListSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListBySub.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListBySub.json */ /** * Sample code: Lists the Fleet resources in a subscription. @@ -807,7 +1016,7 @@ public final class FleetsListSamples { */ public final class FleetsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListByResourceGroup.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListByResourceGroup.json */ /** * Sample code: Lists the Fleet resources in a resource group. @@ -820,7 +1029,7 @@ public final class FleetsListByResourceGroupSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: Lists the Fleet resources in a resource group. - generated by [MaximumSet] rule. @@ -842,7 +1051,7 @@ public final class FleetsListByResourceGroupSamples { */ public final class FleetsListCredentialsSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListCredentials_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListCredentials_MaximumSet_Gen.json */ /** * Sample code: Lists the user credentials of a Fleet. - generated by [MaximumSet] rule. @@ -855,7 +1064,7 @@ public final class FleetsListCredentialsSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListCredentialsResult.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListCredentialsResult.json */ /** * Sample code: Lists the user credentials of a Fleet. @@ -884,7 +1093,7 @@ import java.util.Map; */ public final class FleetsUpdateAsyncSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_PatchTags.json + * x-ms-original-file: 2025-08-01-preview/Fleets_PatchTags.json */ /** * Sample code: Update a Fleet. @@ -900,7 +1109,7 @@ public final class FleetsUpdateAsyncSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Update_MaximumSet_Gen.json */ /** * Sample code: Update a Fleet. - generated by [MaximumSet] rule. @@ -942,7 +1151,7 @@ public final class FleetsUpdateAsyncSamples { */ public final class GatesGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/Gates_Get.json + * x-ms-original-file: 2025-08-01-preview/Gates_Get.json */ /** * Sample code: Gets a Gate resource. @@ -954,6 +1163,21 @@ public final class GatesGetSamples { manager.gates() .getWithResponse("rg1", "fleet1", "12345678-910a-bcde-f000-000000000000", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-08-01-preview/Gates_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Gates_Get_MaximumSet. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void + gatesGetMaximumSet(com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.gates() + .getWithResponse("rgfleets", "fleet-1", "12345678-910a-bcde-f000-000000000000", + com.azure.core.util.Context.NONE); + } } ``` @@ -965,7 +1189,7 @@ public final class GatesGetSamples { */ public final class GatesListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/Gates_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/Gates_ListByFleet.json */ /** * Sample code: Lists the Gates of a Fleet. @@ -976,6 +1200,19 @@ public final class GatesListByFleetSamples { listsTheGatesOfAFleet(com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { manager.gates().listByFleet("rg1", "fleet1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-08-01-preview/Gates_ListByFleet_MaximumSet_Gen.json + */ + /** + * Sample code: Gates_ListByFleet_MaximumSet. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void gatesListByFleetMaximumSet( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.gates().listByFleet("rgfleets", "fleet-1", com.azure.core.util.Context.NONE); + } } ``` @@ -991,7 +1228,23 @@ import com.azure.resourcemanager.containerservicefleet.models.GateState; */ public final class GatesUpdateSamples { /* - * x-ms-original-file: 2025-04-01-preview/Gates_Update.json + * x-ms-original-file: 2025-08-01-preview/Gates_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Gates_Update_MaximumSet. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void + gatesUpdateMaximumSet(com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.gates() + .update("rgfleets", "fleet-1", "12345678-910a-bcde-f000-000000000000", + new GatePatch().withProperties(new GatePatchProperties().withState(GateState.PENDING)), + "jqongzwjguenncptggiqzxxycakgrj", "fsyp", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-08-01-preview/Gates_Update.json */ /** * Sample code: Updates a Gate resource. @@ -1016,7 +1269,7 @@ public final class GatesUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-04-01-preview/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Operations_List_MinimumSet_Gen.json */ /** * Sample code: List the operations for the provider. - generated by [MinimumSet] rule. @@ -1029,7 +1282,7 @@ public final class OperationsListSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Operations_List.json + * x-ms-original-file: 2025-08-01-preview/Operations_List.json */ /** * Sample code: List the operations for the provider. @@ -1042,7 +1295,7 @@ public final class OperationsListSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Operations_List_MaximumSet_Gen.json */ /** * Sample code: List the operations for the provider. - generated by [MaximumSet] rule. @@ -1077,7 +1330,7 @@ import java.util.Arrays; */ public final class UpdateRunsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Create an UpdateRun. - generated by [MaximumSet] rule. @@ -1105,7 +1358,7 @@ public final class UpdateRunsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_CreateOrUpdate.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_CreateOrUpdate.json */ /** * Sample code: Create an UpdateRun. @@ -1147,7 +1400,7 @@ public final class UpdateRunsCreateOrUpdateSamples { */ public final class UpdateRunsDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Delete_MaximumSet_Gen.json */ /** * Sample code: Delete an updateRun resource. - generated by [MaximumSet] rule. @@ -1161,7 +1414,7 @@ public final class UpdateRunsDeleteSamples { } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Delete.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Delete.json */ /** * Sample code: Delete an updateRun resource. @@ -1183,7 +1436,7 @@ public final class UpdateRunsDeleteSamples { */ public final class UpdateRunsGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Get_MaximumSet_Gen.json */ /** * Sample code: Gets an UpdateRun resource. - generated by [MaximumSet] rule. @@ -1196,7 +1449,7 @@ public final class UpdateRunsGetSamples { } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Get.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Get.json */ /** * Sample code: Gets an UpdateRun resource. @@ -1218,7 +1471,7 @@ public final class UpdateRunsGetSamples { */ public final class UpdateRunsListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_ListByFleet.json */ /** * Sample code: Lists the UpdateRun resources by fleet. @@ -1231,7 +1484,7 @@ public final class UpdateRunsListByFleetSamples { } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_ListByFleet_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_ListByFleet_MaximumSet_Gen.json */ /** * Sample code: Lists the UpdateRun resources by fleet. - generated by [MaximumSet] rule. @@ -1258,7 +1511,7 @@ import java.util.Arrays; */ public final class UpdateRunsSkipSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Skip_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Skip_MaximumSet_Gen.json */ /** * Sample code: Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun. - generated by [MaximumSet] @@ -1277,7 +1530,7 @@ public final class UpdateRunsSkipSamples { } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Skip.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Skip.json */ /** * Sample code: Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun. @@ -1304,7 +1557,7 @@ public final class UpdateRunsSkipSamples { */ public final class UpdateRunsStartSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Start_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Start_MaximumSet_Gen.json */ /** * Sample code: Starts an UpdateRun. - generated by [MaximumSet] rule. @@ -1318,7 +1571,7 @@ public final class UpdateRunsStartSamples { } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Start.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Start.json */ /** * Sample code: Starts an UpdateRun. @@ -1340,7 +1593,7 @@ public final class UpdateRunsStartSamples { */ public final class UpdateRunsStopSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Stop_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Stop_MaximumSet_Gen.json */ /** * Sample code: Stops an UpdateRun. - generated by [MaximumSet] rule. @@ -1353,7 +1606,7 @@ public final class UpdateRunsStopSamples { } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Stop.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Stop.json */ /** * Sample code: Stops an UpdateRun. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/pom.xml b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/pom.xml index fe30ca91ce38..3a7fca1b426d 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/pom.xml +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for Container Service Fleet Management - This package contains Microsoft Azure SDK for Container Service Fleet Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Kubernetes Fleet Manager api client. Package api-version 2025-04-01-preview. + This package contains Microsoft Azure SDK for Container Service Fleet Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Kubernetes Fleet Manager api client. Package api-version 2025-08-01-preview. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/ContainerServiceFleetManager.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/ContainerServiceFleetManager.java index 8183bce6af98..b3798e3a02e1 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/ContainerServiceFleetManager.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/ContainerServiceFleetManager.java @@ -28,6 +28,7 @@ import com.azure.resourcemanager.containerservicefleet.implementation.AutoUpgradeProfileOperationsImpl; import com.azure.resourcemanager.containerservicefleet.implementation.AutoUpgradeProfilesImpl; import com.azure.resourcemanager.containerservicefleet.implementation.ContainerServiceFleetManagementClientBuilder; +import com.azure.resourcemanager.containerservicefleet.implementation.FleetManagedNamespacesImpl; import com.azure.resourcemanager.containerservicefleet.implementation.FleetMembersImpl; import com.azure.resourcemanager.containerservicefleet.implementation.FleetUpdateStrategiesImpl; import com.azure.resourcemanager.containerservicefleet.implementation.FleetsImpl; @@ -36,6 +37,7 @@ import com.azure.resourcemanager.containerservicefleet.implementation.UpdateRunsImpl; import com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeProfileOperations; import com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeProfiles; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaces; import com.azure.resourcemanager.containerservicefleet.models.FleetMembers; import com.azure.resourcemanager.containerservicefleet.models.FleetUpdateStrategies; import com.azure.resourcemanager.containerservicefleet.models.Fleets; @@ -61,6 +63,8 @@ public final class ContainerServiceFleetManager { private FleetMembers fleetMembers; + private FleetManagedNamespaces fleetManagedNamespaces; + private Gates gates; private UpdateRuns updateRuns; @@ -323,6 +327,19 @@ public FleetMembers fleetMembers() { return fleetMembers; } + /** + * Gets the resource collection API of FleetManagedNamespaces. It manages FleetManagedNamespace. + * + * @return Resource collection API of FleetManagedNamespaces. + */ + public FleetManagedNamespaces fleetManagedNamespaces() { + if (this.fleetManagedNamespaces == null) { + this.fleetManagedNamespaces + = new FleetManagedNamespacesImpl(clientObject.getFleetManagedNamespaces(), this); + } + return fleetManagedNamespaces; + } + /** * Gets the resource collection API of Gates. * diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/ContainerServiceFleetManagementClient.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/ContainerServiceFleetManagementClient.java index 60b4a9256b76..2b21a1d60ccb 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/ContainerServiceFleetManagementClient.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/ContainerServiceFleetManagementClient.java @@ -67,6 +67,13 @@ public interface ContainerServiceFleetManagementClient { */ FleetMembersClient getFleetMembers(); + /** + * Gets the FleetManagedNamespacesClient object to access its operations. + * + * @return the FleetManagedNamespacesClient object. + */ + FleetManagedNamespacesClient getFleetManagedNamespaces(); + /** * Gets the GatesClient object to access its operations. * diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetManagedNamespacesClient.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetManagedNamespacesClient.java new file mode 100644 index 000000000000..fee7febc254b --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetManagedNamespacesClient.java @@ -0,0 +1,278 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceInner; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespacePatch; + +/** + * An instance of this class provides access to all the operations defined in FleetManagedNamespacesClient. + */ +public interface FleetManagedNamespacesClient { + /** + * Get a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 a FleetManagedNamespace along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, Context context); + + /** + * Get a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 a FleetManagedNamespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + FleetManagedNamespaceInner get(String resourceGroupName, String fleetName, String managedNamespaceName); + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, FleetManagedNamespaceInner> beginCreateOrUpdate( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespaceInner resource); + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, FleetManagedNamespaceInner> beginCreateOrUpdate( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespaceInner resource, + String ifMatch, String ifNoneMatch, Context context); + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + FleetManagedNamespaceInner createOrUpdate(String resourceGroupName, String fleetName, String managedNamespaceName, + FleetManagedNamespaceInner resource); + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + FleetManagedNamespaceInner createOrUpdate(String resourceGroupName, String fleetName, String managedNamespaceName, + FleetManagedNamespaceInner resource, String ifMatch, String ifNoneMatch, Context context); + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String fleetName, + String managedNamespaceName); + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String fleetName, + String managedNamespaceName, String ifMatch, Context context); + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String fleetName, String managedNamespaceName); + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String fleetName, String managedNamespaceName, String ifMatch, + Context context); + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByFleet(String resourceGroupName, String fleetName); + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context); + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, FleetManagedNamespaceInner> beginUpdate(String resourceGroupName, + String fleetName, String managedNamespaceName, FleetManagedNamespacePatch properties); + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, FleetManagedNamespaceInner> beginUpdate(String resourceGroupName, + String fleetName, String managedNamespaceName, FleetManagedNamespacePatch properties, String ifMatch, + Context context); + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + FleetManagedNamespaceInner update(String resourceGroupName, String fleetName, String managedNamespaceName, + FleetManagedNamespacePatch properties); + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + FleetManagedNamespaceInner update(String resourceGroupName, String fleetName, String managedNamespaceName, + FleetManagedNamespacePatch properties, String ifMatch, Context context); +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetManagedNamespaceInner.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetManagedNamespaceInner.java new file mode 100644 index 000000000000..b464b8e03b70 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetManagedNamespaceInner.java @@ -0,0 +1,320 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservicefleet.models.AdoptionPolicy; +import com.azure.resourcemanager.containerservicefleet.models.DeletePolicy; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceProvisioningState; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceStatus; +import com.azure.resourcemanager.containerservicefleet.models.ManagedNamespaceProperties; +import com.azure.resourcemanager.containerservicefleet.models.PropagationPolicy; +import java.io.IOException; +import java.util.Map; + +/** + * A fleet managed namespace. + */ +@Fluent +public final class FleetManagedNamespaceInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private FleetManagedNamespaceProperties innerProperties; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String etag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of FleetManagedNamespaceInner class. + */ + public FleetManagedNamespaceInner() { + } + + /** + * Get the innerProperties property: The resource-specific properties for this resource. + * + * @return the innerProperties value. + */ + private FleetManagedNamespaceProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the etag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public FleetManagedNamespaceInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public FleetManagedNamespaceInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Get the provisioningState property: The status of the last operation. + * + * @return the provisioningState value. + */ + public FleetManagedNamespaceProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the managedNamespaceProperties property: The namespace properties for the fleet managed namespace. + * + * @return the managedNamespaceProperties value. + */ + public ManagedNamespaceProperties managedNamespaceProperties() { + return this.innerProperties() == null ? null : this.innerProperties().managedNamespaceProperties(); + } + + /** + * Set the managedNamespaceProperties property: The namespace properties for the fleet managed namespace. + * + * @param managedNamespaceProperties the managedNamespaceProperties value to set. + * @return the FleetManagedNamespaceInner object itself. + */ + public FleetManagedNamespaceInner + withManagedNamespaceProperties(ManagedNamespaceProperties managedNamespaceProperties) { + if (this.innerProperties() == null) { + this.innerProperties = new FleetManagedNamespaceProperties(); + } + this.innerProperties().withManagedNamespaceProperties(managedNamespaceProperties); + return this; + } + + /** + * Get the adoptionPolicy property: Action if the managed namespace with the same name already exists. Default is + * Never. + * + * @return the adoptionPolicy value. + */ + public AdoptionPolicy adoptionPolicy() { + return this.innerProperties() == null ? null : this.innerProperties().adoptionPolicy(); + } + + /** + * Set the adoptionPolicy property: Action if the managed namespace with the same name already exists. Default is + * Never. + * + * @param adoptionPolicy the adoptionPolicy value to set. + * @return the FleetManagedNamespaceInner object itself. + */ + public FleetManagedNamespaceInner withAdoptionPolicy(AdoptionPolicy adoptionPolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new FleetManagedNamespaceProperties(); + } + this.innerProperties().withAdoptionPolicy(adoptionPolicy); + return this; + } + + /** + * Get the deletePolicy property: Delete options of a fleet managed namespace. Default is Keep. + * + * @return the deletePolicy value. + */ + public DeletePolicy deletePolicy() { + return this.innerProperties() == null ? null : this.innerProperties().deletePolicy(); + } + + /** + * Set the deletePolicy property: Delete options of a fleet managed namespace. Default is Keep. + * + * @param deletePolicy the deletePolicy value to set. + * @return the FleetManagedNamespaceInner object itself. + */ + public FleetManagedNamespaceInner withDeletePolicy(DeletePolicy deletePolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new FleetManagedNamespaceProperties(); + } + this.innerProperties().withDeletePolicy(deletePolicy); + return this; + } + + /** + * Get the propagationPolicy property: The profile of the propagation to create the namespace. + * + * @return the propagationPolicy value. + */ + public PropagationPolicy propagationPolicy() { + return this.innerProperties() == null ? null : this.innerProperties().propagationPolicy(); + } + + /** + * Set the propagationPolicy property: The profile of the propagation to create the namespace. + * + * @param propagationPolicy the propagationPolicy value to set. + * @return the FleetManagedNamespaceInner object itself. + */ + public FleetManagedNamespaceInner withPropagationPolicy(PropagationPolicy propagationPolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new FleetManagedNamespaceProperties(); + } + this.innerProperties().withPropagationPolicy(propagationPolicy); + return this; + } + + /** + * Get the status property: Status information of the last operation for fleet managed namespace. + * + * @return the status value. + */ + public FleetManagedNamespaceStatus status() { + return this.innerProperties() == null ? null : this.innerProperties().status(); + } + + /** + * Get the portalFqdn property: The Azure Portal FQDN of the Fleet hub. + * + * @return the portalFqdn value. + */ + public String portalFqdn() { + return this.innerProperties() == null ? null : this.innerProperties().portalFqdn(); + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FleetManagedNamespaceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FleetManagedNamespaceInner 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 FleetManagedNamespaceInner. + */ + public static FleetManagedNamespaceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FleetManagedNamespaceInner deserializedFleetManagedNamespaceInner = new FleetManagedNamespaceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedFleetManagedNamespaceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedFleetManagedNamespaceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedFleetManagedNamespaceInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedFleetManagedNamespaceInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedFleetManagedNamespaceInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedFleetManagedNamespaceInner.innerProperties + = FleetManagedNamespaceProperties.fromJson(reader); + } else if ("eTag".equals(fieldName)) { + deserializedFleetManagedNamespaceInner.etag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedFleetManagedNamespaceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedFleetManagedNamespaceInner; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetManagedNamespaceProperties.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetManagedNamespaceProperties.java new file mode 100644 index 000000000000..7215221aac59 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetManagedNamespaceProperties.java @@ -0,0 +1,233 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservicefleet.models.AdoptionPolicy; +import com.azure.resourcemanager.containerservicefleet.models.DeletePolicy; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceProvisioningState; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceStatus; +import com.azure.resourcemanager.containerservicefleet.models.ManagedNamespaceProperties; +import com.azure.resourcemanager.containerservicefleet.models.PropagationPolicy; +import java.io.IOException; + +/** + * The properties of a fleet managed namespace. + */ +@Fluent +public final class FleetManagedNamespaceProperties implements JsonSerializable { + /* + * The status of the last operation. + */ + private FleetManagedNamespaceProvisioningState provisioningState; + + /* + * The namespace properties for the fleet managed namespace. + */ + private ManagedNamespaceProperties managedNamespaceProperties; + + /* + * Action if the managed namespace with the same name already exists. Default is Never. + */ + private AdoptionPolicy adoptionPolicy; + + /* + * Delete options of a fleet managed namespace. Default is Keep. + */ + private DeletePolicy deletePolicy; + + /* + * The profile of the propagation to create the namespace. + */ + private PropagationPolicy propagationPolicy; + + /* + * Status information of the last operation for fleet managed namespace. + */ + private FleetManagedNamespaceStatus status; + + /* + * The Azure Portal FQDN of the Fleet hub. + */ + private String portalFqdn; + + /** + * Creates an instance of FleetManagedNamespaceProperties class. + */ + public FleetManagedNamespaceProperties() { + } + + /** + * Get the provisioningState property: The status of the last operation. + * + * @return the provisioningState value. + */ + public FleetManagedNamespaceProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the managedNamespaceProperties property: The namespace properties for the fleet managed namespace. + * + * @return the managedNamespaceProperties value. + */ + public ManagedNamespaceProperties managedNamespaceProperties() { + return this.managedNamespaceProperties; + } + + /** + * Set the managedNamespaceProperties property: The namespace properties for the fleet managed namespace. + * + * @param managedNamespaceProperties the managedNamespaceProperties value to set. + * @return the FleetManagedNamespaceProperties object itself. + */ + public FleetManagedNamespaceProperties + withManagedNamespaceProperties(ManagedNamespaceProperties managedNamespaceProperties) { + this.managedNamespaceProperties = managedNamespaceProperties; + return this; + } + + /** + * Get the adoptionPolicy property: Action if the managed namespace with the same name already exists. Default is + * Never. + * + * @return the adoptionPolicy value. + */ + public AdoptionPolicy adoptionPolicy() { + return this.adoptionPolicy; + } + + /** + * Set the adoptionPolicy property: Action if the managed namespace with the same name already exists. Default is + * Never. + * + * @param adoptionPolicy the adoptionPolicy value to set. + * @return the FleetManagedNamespaceProperties object itself. + */ + public FleetManagedNamespaceProperties withAdoptionPolicy(AdoptionPolicy adoptionPolicy) { + this.adoptionPolicy = adoptionPolicy; + return this; + } + + /** + * Get the deletePolicy property: Delete options of a fleet managed namespace. Default is Keep. + * + * @return the deletePolicy value. + */ + public DeletePolicy deletePolicy() { + return this.deletePolicy; + } + + /** + * Set the deletePolicy property: Delete options of a fleet managed namespace. Default is Keep. + * + * @param deletePolicy the deletePolicy value to set. + * @return the FleetManagedNamespaceProperties object itself. + */ + public FleetManagedNamespaceProperties withDeletePolicy(DeletePolicy deletePolicy) { + this.deletePolicy = deletePolicy; + return this; + } + + /** + * Get the propagationPolicy property: The profile of the propagation to create the namespace. + * + * @return the propagationPolicy value. + */ + public PropagationPolicy propagationPolicy() { + return this.propagationPolicy; + } + + /** + * Set the propagationPolicy property: The profile of the propagation to create the namespace. + * + * @param propagationPolicy the propagationPolicy value to set. + * @return the FleetManagedNamespaceProperties object itself. + */ + public FleetManagedNamespaceProperties withPropagationPolicy(PropagationPolicy propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Get the status property: Status information of the last operation for fleet managed namespace. + * + * @return the status value. + */ + public FleetManagedNamespaceStatus status() { + return this.status; + } + + /** + * Get the portalFqdn property: The Azure Portal FQDN of the Fleet hub. + * + * @return the portalFqdn value. + */ + public String portalFqdn() { + return this.portalFqdn; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("adoptionPolicy", + this.adoptionPolicy == null ? null : this.adoptionPolicy.toString()); + jsonWriter.writeStringField("deletePolicy", this.deletePolicy == null ? null : this.deletePolicy.toString()); + jsonWriter.writeJsonField("managedNamespaceProperties", this.managedNamespaceProperties); + jsonWriter.writeJsonField("propagationPolicy", this.propagationPolicy); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FleetManagedNamespaceProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FleetManagedNamespaceProperties 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 FleetManagedNamespaceProperties. + */ + public static FleetManagedNamespaceProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FleetManagedNamespaceProperties deserializedFleetManagedNamespaceProperties + = new FleetManagedNamespaceProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("adoptionPolicy".equals(fieldName)) { + deserializedFleetManagedNamespaceProperties.adoptionPolicy + = AdoptionPolicy.fromString(reader.getString()); + } else if ("deletePolicy".equals(fieldName)) { + deserializedFleetManagedNamespaceProperties.deletePolicy + = DeletePolicy.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedFleetManagedNamespaceProperties.provisioningState + = FleetManagedNamespaceProvisioningState.fromString(reader.getString()); + } else if ("managedNamespaceProperties".equals(fieldName)) { + deserializedFleetManagedNamespaceProperties.managedNamespaceProperties + = ManagedNamespaceProperties.fromJson(reader); + } else if ("propagationPolicy".equals(fieldName)) { + deserializedFleetManagedNamespaceProperties.propagationPolicy = PropagationPolicy.fromJson(reader); + } else if ("status".equals(fieldName)) { + deserializedFleetManagedNamespaceProperties.status = FleetManagedNamespaceStatus.fromJson(reader); + } else if ("portalFqdn".equals(fieldName)) { + deserializedFleetManagedNamespaceProperties.portalFqdn = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedFleetManagedNamespaceProperties; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientImpl.java index 8780a37a5b32..83a1f814da90 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientImpl.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientImpl.java @@ -29,6 +29,7 @@ import com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfileOperationsClient; import com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient; import com.azure.resourcemanager.containerservicefleet.fluent.ContainerServiceFleetManagementClient; +import com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient; import com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient; import com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient; import com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient; @@ -175,6 +176,20 @@ public FleetMembersClient getFleetMembers() { return this.fleetMembers; } + /** + * The FleetManagedNamespacesClient object to access its operations. + */ + private final FleetManagedNamespacesClient fleetManagedNamespaces; + + /** + * Gets the FleetManagedNamespacesClient object to access its operations. + * + * @return the FleetManagedNamespacesClient object. + */ + public FleetManagedNamespacesClient getFleetManagedNamespaces() { + return this.fleetManagedNamespaces; + } + /** * The GatesClient object to access its operations. */ @@ -262,10 +277,11 @@ public AutoUpgradeProfileOperationsClient getAutoUpgradeProfileOperations() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-04-01-preview"; + this.apiVersion = "2025-08-01-preview"; this.operations = new OperationsClientImpl(this); this.fleets = new FleetsClientImpl(this); this.fleetMembers = new FleetMembersClientImpl(this); + this.fleetManagedNamespaces = new FleetManagedNamespacesClientImpl(this); this.gates = new GatesClientImpl(this); this.updateRuns = new UpdateRunsClientImpl(this); this.fleetUpdateStrategies = new FleetUpdateStrategiesClientImpl(this); diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespaceImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespaceImpl.java new file mode 100644 index 000000000000..797b7e9a6e4f --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespaceImpl.java @@ -0,0 +1,258 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceInner; +import com.azure.resourcemanager.containerservicefleet.models.AdoptionPolicy; +import com.azure.resourcemanager.containerservicefleet.models.DeletePolicy; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespace; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespacePatch; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceProvisioningState; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceStatus; +import com.azure.resourcemanager.containerservicefleet.models.ManagedNamespaceProperties; +import com.azure.resourcemanager.containerservicefleet.models.PropagationPolicy; +import java.util.Collections; +import java.util.Map; + +public final class FleetManagedNamespaceImpl + implements FleetManagedNamespace, FleetManagedNamespace.Definition, FleetManagedNamespace.Update { + private FleetManagedNamespaceInner innerObject; + + private final com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public String etag() { + return this.innerModel().etag(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public FleetManagedNamespaceProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public ManagedNamespaceProperties managedNamespaceProperties() { + return this.innerModel().managedNamespaceProperties(); + } + + public AdoptionPolicy adoptionPolicy() { + return this.innerModel().adoptionPolicy(); + } + + public DeletePolicy deletePolicy() { + return this.innerModel().deletePolicy(); + } + + public PropagationPolicy propagationPolicy() { + return this.innerModel().propagationPolicy(); + } + + public FleetManagedNamespaceStatus status() { + return this.innerModel().status(); + } + + public String portalFqdn() { + return this.innerModel().portalFqdn(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public FleetManagedNamespaceInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String fleetName; + + private String managedNamespaceName; + + private String createIfMatch; + + private String createIfNoneMatch; + + private String updateIfMatch; + + private FleetManagedNamespacePatch updateProperties; + + public FleetManagedNamespaceImpl withExistingFleet(String resourceGroupName, String fleetName) { + this.resourceGroupName = resourceGroupName; + this.fleetName = fleetName; + return this; + } + + public FleetManagedNamespace create() { + this.innerObject = serviceManager.serviceClient() + .getFleetManagedNamespaces() + .createOrUpdate(resourceGroupName, fleetName, managedNamespaceName, this.innerModel(), createIfMatch, + createIfNoneMatch, Context.NONE); + return this; + } + + public FleetManagedNamespace create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getFleetManagedNamespaces() + .createOrUpdate(resourceGroupName, fleetName, managedNamespaceName, this.innerModel(), createIfMatch, + createIfNoneMatch, context); + return this; + } + + FleetManagedNamespaceImpl(String name, + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager serviceManager) { + this.innerObject = new FleetManagedNamespaceInner(); + this.serviceManager = serviceManager; + this.managedNamespaceName = name; + this.createIfMatch = null; + this.createIfNoneMatch = null; + } + + public FleetManagedNamespaceImpl update() { + this.updateIfMatch = null; + this.updateProperties = new FleetManagedNamespacePatch(); + return this; + } + + public FleetManagedNamespace apply() { + this.innerObject = serviceManager.serviceClient() + .getFleetManagedNamespaces() + .update(resourceGroupName, fleetName, managedNamespaceName, updateProperties, updateIfMatch, Context.NONE); + return this; + } + + public FleetManagedNamespace apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getFleetManagedNamespaces() + .update(resourceGroupName, fleetName, managedNamespaceName, updateProperties, updateIfMatch, context); + return this; + } + + FleetManagedNamespaceImpl(FleetManagedNamespaceInner innerObject, + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.fleetName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "fleets"); + this.managedNamespaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "managedNamespaces"); + } + + public FleetManagedNamespace refresh() { + this.innerObject = serviceManager.serviceClient() + .getFleetManagedNamespaces() + .getWithResponse(resourceGroupName, fleetName, managedNamespaceName, Context.NONE) + .getValue(); + return this; + } + + public FleetManagedNamespace refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getFleetManagedNamespaces() + .getWithResponse(resourceGroupName, fleetName, managedNamespaceName, context) + .getValue(); + return this; + } + + public FleetManagedNamespaceImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public FleetManagedNamespaceImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public FleetManagedNamespaceImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public FleetManagedNamespaceImpl + withManagedNamespaceProperties(ManagedNamespaceProperties managedNamespaceProperties) { + this.innerModel().withManagedNamespaceProperties(managedNamespaceProperties); + return this; + } + + public FleetManagedNamespaceImpl withAdoptionPolicy(AdoptionPolicy adoptionPolicy) { + this.innerModel().withAdoptionPolicy(adoptionPolicy); + return this; + } + + public FleetManagedNamespaceImpl withDeletePolicy(DeletePolicy deletePolicy) { + this.innerModel().withDeletePolicy(deletePolicy); + return this; + } + + public FleetManagedNamespaceImpl withPropagationPolicy(PropagationPolicy propagationPolicy) { + this.innerModel().withPropagationPolicy(propagationPolicy); + return this; + } + + public FleetManagedNamespaceImpl withIfMatch(String ifMatch) { + if (isInCreateMode()) { + this.createIfMatch = ifMatch; + return this; + } else { + this.updateIfMatch = ifMatch; + return this; + } + } + + public FleetManagedNamespaceImpl withIfNoneMatch(String ifNoneMatch) { + this.createIfNoneMatch = ifNoneMatch; + return this; + } + + private boolean isInCreateMode() { + return this.innerModel() == null || this.innerModel().id() == null; + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespacesClientImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespacesClientImpl.java new file mode 100644 index 000000000000..9d94e9823c3c --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespacesClientImpl.java @@ -0,0 +1,1225 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +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.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient; +import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceInner; +import com.azure.resourcemanager.containerservicefleet.implementation.models.FleetManagedNamespaceListResult; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespacePatch; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in FleetManagedNamespacesClient. + */ +public final class FleetManagedNamespacesClientImpl implements FleetManagedNamespacesClient { + /** + * The proxy service used to perform REST calls. + */ + private final FleetManagedNamespacesService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceFleetManagementClientImpl client; + + /** + * Initializes an instance of FleetManagedNamespacesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + FleetManagedNamespacesClientImpl(ContainerServiceFleetManagementClientImpl client) { + this.service = RestProxy.create(FleetManagedNamespacesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceFleetManagementClientFleetManagedNamespaces to be + * used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceFleetManagementClientFleetManagedNamespaces") + public interface FleetManagedNamespacesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fleetName") String fleetName, + @PathParam("managedNamespaceName") String managedNamespaceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fleetName") String fleetName, + @PathParam("managedNamespaceName") String managedNamespaceName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("If-Match") String ifMatch, + @HeaderParam("If-None-Match") String ifNoneMatch, @PathParam("fleetName") String fleetName, + @PathParam("managedNamespaceName") String managedNamespaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FleetManagedNamespaceInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("If-Match") String ifMatch, + @HeaderParam("If-None-Match") String ifNoneMatch, @PathParam("fleetName") String fleetName, + @PathParam("managedNamespaceName") String managedNamespaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FleetManagedNamespaceInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("If-Match") String ifMatch, + @PathParam("fleetName") String fleetName, @PathParam("managedNamespaceName") String managedNamespaceName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("If-Match") String ifMatch, + @PathParam("fleetName") String fleetName, @PathParam("managedNamespaceName") String managedNamespaceName, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByFleet(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fleetName") String fleetName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByFleetSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fleetName") String fleetName, + @HeaderParam("Accept") String accept, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("If-Match") String ifMatch, + @PathParam("fleetName") String fleetName, @PathParam("managedNamespaceName") String managedNamespaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FleetManagedNamespacePatch properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("If-Match") String ifMatch, + @PathParam("fleetName") String fleetName, @PathParam("managedNamespaceName") String managedNamespaceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") FleetManagedNamespacePatch properties, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByFleetNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByFleetNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 a FleetManagedNamespace along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String fleetName, + String managedNamespaceName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fleetName, managedNamespaceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 a FleetManagedNamespace on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String fleetName, + String managedNamespaceName) { + return getWithResponseAsync(resourceGroupName, fleetName, managedNamespaceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 a FleetManagedNamespace along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, fleetName, managedNamespaceName, accept, context); + } + + /** + * Get a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 a FleetManagedNamespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FleetManagedNamespaceInner get(String resourceGroupName, String fleetName, String managedNamespaceName) { + return getWithResponse(resourceGroupName, fleetName, managedNamespaceName, Context.NONE).getValue(); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespaceInner resource, String ifMatch, String ifNoneMatch) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, ifNoneMatch, fleetName, + managedNamespaceName, contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespaceInner resource, String ifMatch, String ifNoneMatch) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, ifNoneMatch, fleetName, managedNamespaceName, + contentType, accept, resource, Context.NONE); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespaceInner resource, String ifMatch, String ifNoneMatch, + Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, ifNoneMatch, fleetName, managedNamespaceName, + contentType, accept, resource, context); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, FleetManagedNamespaceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespaceInner resource, + String ifMatch, String ifNoneMatch) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, fleetName, + managedNamespaceName, resource, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, + this.client.getContext()); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, FleetManagedNamespaceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespaceInner resource) { + final String ifMatch = null; + final String ifNoneMatch = null; + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, fleetName, + managedNamespaceName, resource, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, + this.client.getContext()); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, FleetManagedNamespaceInner> beginCreateOrUpdate( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespaceInner resource, + String ifMatch, String ifNoneMatch) { + Response response = createOrUpdateWithResponse(resourceGroupName, fleetName, managedNamespaceName, + resource, ifMatch, ifNoneMatch); + return this.client.getLroResult(response, + FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, Context.NONE); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, FleetManagedNamespaceInner> beginCreateOrUpdate( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespaceInner resource) { + final String ifMatch = null; + final String ifNoneMatch = null; + Response response = createOrUpdateWithResponse(resourceGroupName, fleetName, managedNamespaceName, + resource, ifMatch, ifNoneMatch); + return this.client.getLroResult(response, + FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, Context.NONE); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, FleetManagedNamespaceInner> beginCreateOrUpdate( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespaceInner resource, + String ifMatch, String ifNoneMatch, Context context) { + Response response = createOrUpdateWithResponse(resourceGroupName, fleetName, managedNamespaceName, + resource, ifMatch, ifNoneMatch, context); + return this.client.getLroResult(response, + FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, context); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespaceInner resource, String ifMatch, String ifNoneMatch) { + return beginCreateOrUpdateAsync(resourceGroupName, fleetName, managedNamespaceName, resource, ifMatch, + ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @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 a fleet managed namespace on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespaceInner resource) { + final String ifMatch = null; + final String ifNoneMatch = null; + return beginCreateOrUpdateAsync(resourceGroupName, fleetName, managedNamespaceName, resource, ifMatch, + ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FleetManagedNamespaceInner createOrUpdate(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespaceInner resource) { + final String ifMatch = null; + final String ifNoneMatch = null; + return beginCreateOrUpdate(resourceGroupName, fleetName, managedNamespaceName, resource, ifMatch, ifNoneMatch) + .getFinalResult(); + } + + /** + * Create a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param resource Resource create parameters. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FleetManagedNamespaceInner createOrUpdate(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespaceInner resource, String ifMatch, String ifNoneMatch, + Context context) { + return beginCreateOrUpdate(resourceGroupName, fleetName, managedNamespaceName, resource, ifMatch, ifNoneMatch, + context).getFinalResult(); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String fleetName, + String managedNamespaceName, String ifMatch) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, fleetName, managedNamespaceName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, String ifMatch) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, fleetName, managedNamespaceName, Context.NONE); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, String ifMatch, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, fleetName, managedNamespaceName, context); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String fleetName, + String managedNamespaceName, String ifMatch) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, fleetName, managedNamespaceName, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String fleetName, + String managedNamespaceName) { + final String ifMatch = null; + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, fleetName, managedNamespaceName, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String fleetName, + String managedNamespaceName, String ifMatch) { + Response response = deleteWithResponse(resourceGroupName, fleetName, managedNamespaceName, ifMatch); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String fleetName, + String managedNamespaceName) { + final String ifMatch = null; + Response response = deleteWithResponse(resourceGroupName, fleetName, managedNamespaceName, ifMatch); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String fleetName, + String managedNamespaceName, String ifMatch, Context context) { + Response response + = deleteWithResponse(resourceGroupName, fleetName, managedNamespaceName, ifMatch, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String fleetName, String managedNamespaceName, + String ifMatch) { + return beginDeleteAsync(resourceGroupName, fleetName, managedNamespaceName, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String fleetName, String managedNamespaceName) { + final String ifMatch = null; + return beginDeleteAsync(resourceGroupName, fleetName, managedNamespaceName, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String fleetName, String managedNamespaceName) { + final String ifMatch = null; + beginDelete(resourceGroupName, fleetName, managedNamespaceName, ifMatch).getFinalResult(); + } + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String fleetName, String managedNamespaceName, String ifMatch, + Context context) { + beginDelete(resourceGroupName, fleetName, managedNamespaceName, ifMatch, context).getFinalResult(); + } + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFleetSinglePageAsync(String resourceGroupName, + String fleetName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByFleet(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fleetName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByFleetAsync(String resourceGroupName, String fleetName) { + return new PagedFlux<>(() -> listByFleetSinglePageAsync(resourceGroupName, fleetName), + nextLink -> listByFleetNextSinglePageAsync(nextLink)); + } + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByFleetSinglePage(String resourceGroupName, + String fleetName) { + final String accept = "application/json"; + Response res + = service.listByFleetSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fleetName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByFleetSinglePage(String resourceGroupName, String fleetName, + Context context) { + final String accept = "application/json"; + Response res + = service.listByFleetSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, fleetName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByFleet(String resourceGroupName, String fleetName) { + return new PagedIterable<>(() -> listByFleetSinglePage(resourceGroupName, fleetName), + nextLink -> listByFleetNextSinglePage(nextLink)); + } + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByFleet(String resourceGroupName, String fleetName, + Context context) { + return new PagedIterable<>(() -> listByFleetSinglePage(resourceGroupName, fleetName, context), + nextLink -> listByFleetNextSinglePage(nextLink, context)); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespacePatch properties, String ifMatch) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, fleetName, managedNamespaceName, + contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespacePatch properties, String ifMatch) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, fleetName, managedNamespaceName, contentType, + accept, properties, Context.NONE); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespacePatch properties, String ifMatch, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, fleetName, managedNamespaceName, contentType, + accept, properties, context); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, FleetManagedNamespaceInner> beginUpdateAsync( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespacePatch properties, + String ifMatch) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, fleetName, managedNamespaceName, properties, ifMatch); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, + this.client.getContext()); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, FleetManagedNamespaceInner> beginUpdateAsync( + String resourceGroupName, String fleetName, String managedNamespaceName, + FleetManagedNamespacePatch properties) { + final String ifMatch = null; + Mono>> mono + = updateWithResponseAsync(resourceGroupName, fleetName, managedNamespaceName, properties, ifMatch); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, + this.client.getContext()); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, FleetManagedNamespaceInner> beginUpdate( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespacePatch properties, + String ifMatch) { + Response response + = updateWithResponse(resourceGroupName, fleetName, managedNamespaceName, properties, ifMatch); + return this.client.getLroResult(response, + FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, Context.NONE); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, FleetManagedNamespaceInner> beginUpdate( + String resourceGroupName, String fleetName, String managedNamespaceName, + FleetManagedNamespacePatch properties) { + final String ifMatch = null; + Response response + = updateWithResponse(resourceGroupName, fleetName, managedNamespaceName, properties, ifMatch); + return this.client.getLroResult(response, + FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, Context.NONE); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, FleetManagedNamespaceInner> beginUpdate( + String resourceGroupName, String fleetName, String managedNamespaceName, FleetManagedNamespacePatch properties, + String ifMatch, Context context) { + Response response + = updateWithResponse(resourceGroupName, fleetName, managedNamespaceName, properties, ifMatch, context); + return this.client.getLroResult(response, + FleetManagedNamespaceInner.class, FleetManagedNamespaceInner.class, context); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespacePatch properties, String ifMatch) { + return beginUpdateAsync(resourceGroupName, fleetName, managedNamespaceName, properties, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @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 a fleet managed namespace on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String fleetName, + String managedNamespaceName, FleetManagedNamespacePatch properties) { + final String ifMatch = null; + return beginUpdateAsync(resourceGroupName, fleetName, managedNamespaceName, properties, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FleetManagedNamespaceInner update(String resourceGroupName, String fleetName, String managedNamespaceName, + FleetManagedNamespacePatch properties) { + final String ifMatch = null; + return beginUpdate(resourceGroupName, fleetName, managedNamespaceName, properties, ifMatch).getFinalResult(); + } + + /** + * Update a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param properties The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 a fleet managed namespace. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FleetManagedNamespaceInner update(String resourceGroupName, String fleetName, String managedNamespaceName, + FleetManagedNamespacePatch properties, String ifMatch, Context context) { + return beginUpdate(resourceGroupName, fleetName, managedNamespaceName, properties, ifMatch, context) + .getFinalResult(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FleetManagedNamespace list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByFleetNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByFleetNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FleetManagedNamespace list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByFleetNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByFleetNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a FleetManagedNamespace list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByFleetNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByFleetNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespacesImpl.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespacesImpl.java new file mode 100644 index 000000000000..a9b9085b9ead --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespacesImpl.java @@ -0,0 +1,161 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient; +import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceInner; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespace; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaces; + +public final class FleetManagedNamespacesImpl implements FleetManagedNamespaces { + private static final ClientLogger LOGGER = new ClientLogger(FleetManagedNamespacesImpl.class); + + private final FleetManagedNamespacesClient innerClient; + + private final com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager serviceManager; + + public FleetManagedNamespacesImpl(FleetManagedNamespacesClient innerClient, + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, fleetName, managedNamespaceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new FleetManagedNamespaceImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public FleetManagedNamespace get(String resourceGroupName, String fleetName, String managedNamespaceName) { + FleetManagedNamespaceInner inner = this.serviceClient().get(resourceGroupName, fleetName, managedNamespaceName); + if (inner != null) { + return new FleetManagedNamespaceImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String fleetName, String managedNamespaceName) { + this.serviceClient().delete(resourceGroupName, fleetName, managedNamespaceName); + } + + public void delete(String resourceGroupName, String fleetName, String managedNamespaceName, String ifMatch, + Context context) { + this.serviceClient().delete(resourceGroupName, fleetName, managedNamespaceName, ifMatch, context); + } + + public PagedIterable listByFleet(String resourceGroupName, String fleetName) { + PagedIterable inner + = this.serviceClient().listByFleet(resourceGroupName, fleetName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FleetManagedNamespaceImpl(inner1, this.manager())); + } + + public PagedIterable listByFleet(String resourceGroupName, String fleetName, + Context context) { + PagedIterable inner + = this.serviceClient().listByFleet(resourceGroupName, fleetName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FleetManagedNamespaceImpl(inner1, this.manager())); + } + + public FleetManagedNamespace getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String fleetName = ResourceManagerUtils.getValueFromIdByName(id, "fleets"); + if (fleetName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'fleets'.", id))); + } + String managedNamespaceName = ResourceManagerUtils.getValueFromIdByName(id, "managedNamespaces"); + if (managedNamespaceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedNamespaces'.", id))); + } + return this.getWithResponse(resourceGroupName, fleetName, managedNamespaceName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String fleetName = ResourceManagerUtils.getValueFromIdByName(id, "fleets"); + if (fleetName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'fleets'.", id))); + } + String managedNamespaceName = ResourceManagerUtils.getValueFromIdByName(id, "managedNamespaces"); + if (managedNamespaceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedNamespaces'.", id))); + } + return this.getWithResponse(resourceGroupName, fleetName, managedNamespaceName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String fleetName = ResourceManagerUtils.getValueFromIdByName(id, "fleets"); + if (fleetName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'fleets'.", id))); + } + String managedNamespaceName = ResourceManagerUtils.getValueFromIdByName(id, "managedNamespaces"); + if (managedNamespaceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedNamespaces'.", id))); + } + String localIfMatch = null; + this.delete(resourceGroupName, fleetName, managedNamespaceName, localIfMatch, Context.NONE); + } + + public void deleteByIdWithResponse(String id, String ifMatch, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String fleetName = ResourceManagerUtils.getValueFromIdByName(id, "fleets"); + if (fleetName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'fleets'.", id))); + } + String managedNamespaceName = ResourceManagerUtils.getValueFromIdByName(id, "managedNamespaces"); + if (managedNamespaceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedNamespaces'.", id))); + } + this.delete(resourceGroupName, fleetName, managedNamespaceName, ifMatch, context); + } + + private FleetManagedNamespacesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager() { + return this.serviceManager; + } + + public FleetManagedNamespaceImpl define(String name) { + return new FleetManagedNamespaceImpl(name, this.manager()); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetManagedNamespaceListResult.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetManagedNamespaceListResult.java new file mode 100644 index 000000000000..8382f486896e --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetManagedNamespaceListResult.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a FleetManagedNamespace list operation. + */ +@Immutable +public final class FleetManagedNamespaceListResult implements JsonSerializable { + /* + * The FleetManagedNamespace items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of FleetManagedNamespaceListResult class. + */ + private FleetManagedNamespaceListResult() { + } + + /** + * Get the value property: The FleetManagedNamespace items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FleetManagedNamespaceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FleetManagedNamespaceListResult 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 FleetManagedNamespaceListResult. + */ + public static FleetManagedNamespaceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FleetManagedNamespaceListResult deserializedFleetManagedNamespaceListResult + = new FleetManagedNamespaceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> FleetManagedNamespaceInner.fromJson(reader1)); + deserializedFleetManagedNamespaceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedFleetManagedNamespaceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedFleetManagedNamespaceListResult; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/AdoptionPolicy.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/AdoptionPolicy.java new file mode 100644 index 000000000000..b9914a131908 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/AdoptionPolicy.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Action if the Namespace with the same name already exists. + */ +public final class AdoptionPolicy extends ExpandableStringEnum { + /** + * If the Namespace already exists, do not take over the existing Namespace to be managed by ARM. + */ + public static final AdoptionPolicy NEVER = fromString("Never"); + + /** + * If there is an identical Namespace, take over the existing Namespace to be managed by ARM. + */ + public static final AdoptionPolicy IF_IDENTICAL = fromString("IfIdentical"); + + /** + * Always take over the existing Namespace to be managed by ARM, even if it is not identical. + */ + public static final AdoptionPolicy ALWAYS = fromString("Always"); + + /** + * Creates a new instance of AdoptionPolicy value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AdoptionPolicy() { + } + + /** + * Creates or finds a AdoptionPolicy from its string representation. + * + * @param name a name to look for. + * @return the corresponding AdoptionPolicy. + */ + public static AdoptionPolicy fromString(String name) { + return fromString(name, AdoptionPolicy.class); + } + + /** + * Gets known AdoptionPolicy values. + * + * @return known AdoptionPolicy values. + */ + public static Collection values() { + return values(AdoptionPolicy.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/Affinity.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/Affinity.java new file mode 100644 index 000000000000..7623a11f3119 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/Affinity.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; + +/** + * Affinity is a group of cluster affinity scheduling rules. More to be added. + */ +@Fluent +public final class Affinity implements JsonSerializable { + /* + * ClusterAffinity contains cluster affinity scheduling rules for the selected resources. + */ + private ClusterAffinity clusterAffinity; + + /** + * Creates an instance of Affinity class. + */ + public Affinity() { + } + + /** + * Get the clusterAffinity property: ClusterAffinity contains cluster affinity scheduling rules for the selected + * resources. + * + * @return the clusterAffinity value. + */ + public ClusterAffinity clusterAffinity() { + return this.clusterAffinity; + } + + /** + * Set the clusterAffinity property: ClusterAffinity contains cluster affinity scheduling rules for the selected + * resources. + * + * @param clusterAffinity the clusterAffinity value to set. + * @return the Affinity object itself. + */ + public Affinity withClusterAffinity(ClusterAffinity clusterAffinity) { + this.clusterAffinity = clusterAffinity; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("clusterAffinity", this.clusterAffinity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Affinity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Affinity 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 Affinity. + */ + public static Affinity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Affinity deserializedAffinity = new Affinity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("clusterAffinity".equals(fieldName)) { + deserializedAffinity.clusterAffinity = ClusterAffinity.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAffinity; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterAffinity.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterAffinity.java new file mode 100644 index 000000000000..2edd0cde415a --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterAffinity.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; + +/** + * ClusterAffinity contains cluster affinity scheduling rules for the selected resources. + */ +@Fluent +public final class ClusterAffinity implements JsonSerializable { + /* + * If the affinity requirements specified by this field are not met at scheduling time, the resource will not be + * scheduled onto the cluster. If the affinity requirements specified by this field cease to be met at some point + * after the placement (e.g. due to an update), the system may or may not try to eventually remove the resource from + * the cluster. + */ + private ClusterSelector requiredDuringSchedulingIgnoredDuringExecution; + + /** + * Creates an instance of ClusterAffinity class. + */ + public ClusterAffinity() { + } + + /** + * Get the requiredDuringSchedulingIgnoredDuringExecution property: If the affinity requirements specified by this + * field are not met at scheduling time, the resource will not be scheduled onto the cluster. If the affinity + * requirements specified by this field cease to be met at some point after the placement (e.g. due to an update), + * the system may or may not try to eventually remove the resource from the cluster. + * + * @return the requiredDuringSchedulingIgnoredDuringExecution value. + */ + public ClusterSelector requiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution; + } + + /** + * Set the requiredDuringSchedulingIgnoredDuringExecution property: If the affinity requirements specified by this + * field are not met at scheduling time, the resource will not be scheduled onto the cluster. If the affinity + * requirements specified by this field cease to be met at some point after the placement (e.g. due to an update), + * the system may or may not try to eventually remove the resource from the cluster. + * + * @param requiredDuringSchedulingIgnoredDuringExecution the requiredDuringSchedulingIgnoredDuringExecution value to + * set. + * @return the ClusterAffinity object itself. + */ + public ClusterAffinity withRequiredDuringSchedulingIgnoredDuringExecution( + ClusterSelector requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("requiredDuringSchedulingIgnoredDuringExecution", + this.requiredDuringSchedulingIgnoredDuringExecution); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterAffinity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterAffinity 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 ClusterAffinity. + */ + public static ClusterAffinity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterAffinity deserializedClusterAffinity = new ClusterAffinity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("requiredDuringSchedulingIgnoredDuringExecution".equals(fieldName)) { + deserializedClusterAffinity.requiredDuringSchedulingIgnoredDuringExecution + = ClusterSelector.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterAffinity; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterResourcePlacementSpec.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterResourcePlacementSpec.java new file mode 100644 index 000000000000..2fcb4fb9542f --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterResourcePlacementSpec.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; + +/** + * ClusterResourcePlacementSpec defines the desired state of ClusterResourcePlacement. + */ +@Fluent +public final class ClusterResourcePlacementSpec implements JsonSerializable { + /* + * Policy defines how to select member clusters to place the selected resources. If unspecified, all the joined + * member clusters are selected. + */ + private PlacementPolicy policy; + + /** + * Creates an instance of ClusterResourcePlacementSpec class. + */ + public ClusterResourcePlacementSpec() { + } + + /** + * Get the policy property: Policy defines how to select member clusters to place the selected resources. If + * unspecified, all the joined member clusters are selected. + * + * @return the policy value. + */ + public PlacementPolicy policy() { + return this.policy; + } + + /** + * Set the policy property: Policy defines how to select member clusters to place the selected resources. If + * unspecified, all the joined member clusters are selected. + * + * @param policy the policy value to set. + * @return the ClusterResourcePlacementSpec object itself. + */ + public ClusterResourcePlacementSpec withPolicy(PlacementPolicy policy) { + this.policy = policy; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("policy", this.policy); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterResourcePlacementSpec from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterResourcePlacementSpec 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 ClusterResourcePlacementSpec. + */ + public static ClusterResourcePlacementSpec fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterResourcePlacementSpec deserializedClusterResourcePlacementSpec = new ClusterResourcePlacementSpec(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("policy".equals(fieldName)) { + deserializedClusterResourcePlacementSpec.policy = PlacementPolicy.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterResourcePlacementSpec; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterSelector.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterSelector.java new file mode 100644 index 000000000000..5c12eb70870c --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterSelector.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; +import java.util.List; + +/** + * ClusterSelector. + */ +@Fluent +public final class ClusterSelector implements JsonSerializable { + /* + * ClusterSelectorTerms is a list of cluster selector terms. The terms are `ORed`. + */ + private List clusterSelectorTerms; + + /** + * Creates an instance of ClusterSelector class. + */ + public ClusterSelector() { + } + + /** + * Get the clusterSelectorTerms property: ClusterSelectorTerms is a list of cluster selector terms. The terms are + * `ORed`. + * + * @return the clusterSelectorTerms value. + */ + public List clusterSelectorTerms() { + return this.clusterSelectorTerms; + } + + /** + * Set the clusterSelectorTerms property: ClusterSelectorTerms is a list of cluster selector terms. The terms are + * `ORed`. + * + * @param clusterSelectorTerms the clusterSelectorTerms value to set. + * @return the ClusterSelector object itself. + */ + public ClusterSelector withClusterSelectorTerms(List clusterSelectorTerms) { + this.clusterSelectorTerms = clusterSelectorTerms; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("clusterSelectorTerms", this.clusterSelectorTerms, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterSelector from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterSelector 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 ClusterSelector. + */ + public static ClusterSelector fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterSelector deserializedClusterSelector = new ClusterSelector(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("clusterSelectorTerms".equals(fieldName)) { + List clusterSelectorTerms + = reader.readArray(reader1 -> ClusterSelectorTerm.fromJson(reader1)); + deserializedClusterSelector.clusterSelectorTerms = clusterSelectorTerms; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterSelector; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterSelectorTerm.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterSelectorTerm.java new file mode 100644 index 000000000000..e9962a7e1923 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterSelectorTerm.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; + +/** + * ClusterSelectorTerm. + */ +@Fluent +public final class ClusterSelectorTerm implements JsonSerializable { + /* + * LabelSelector is a label query over all the joined member clusters. Clusters matching the query are selected. If + * you specify both label and property selectors in the same term, the results are AND'd. + */ + private LabelSelector labelSelector; + + /* + * PropertySelector is a property query over all joined member clusters. Clusters matching the query are selected. + * If you specify both label and property selectors in the same term, the results are AND'd. At this moment, + * PropertySelector can only be used with `RequiredDuringSchedulingIgnoredDuringExecution` affinity terms. This + * field is beta-level; it is for the property-based scheduling feature and is only functional when a property + * provider is enabled in the deployment. + */ + private PropertySelector propertySelector; + + /** + * Creates an instance of ClusterSelectorTerm class. + */ + public ClusterSelectorTerm() { + } + + /** + * Get the labelSelector property: LabelSelector is a label query over all the joined member clusters. Clusters + * matching the query are selected. If you specify both label and property selectors in the same term, the results + * are AND'd. + * + * @return the labelSelector value. + */ + public LabelSelector labelSelector() { + return this.labelSelector; + } + + /** + * Set the labelSelector property: LabelSelector is a label query over all the joined member clusters. Clusters + * matching the query are selected. If you specify both label and property selectors in the same term, the results + * are AND'd. + * + * @param labelSelector the labelSelector value to set. + * @return the ClusterSelectorTerm object itself. + */ + public ClusterSelectorTerm withLabelSelector(LabelSelector labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Get the propertySelector property: PropertySelector is a property query over all joined member clusters. Clusters + * matching the query are selected. If you specify both label and property selectors in the same term, the results + * are AND'd. At this moment, PropertySelector can only be used with + * `RequiredDuringSchedulingIgnoredDuringExecution` affinity terms. This field is beta-level; it is for the + * property-based scheduling feature and is only functional when a property provider is enabled in the deployment. + * + * @return the propertySelector value. + */ + public PropertySelector propertySelector() { + return this.propertySelector; + } + + /** + * Set the propertySelector property: PropertySelector is a property query over all joined member clusters. Clusters + * matching the query are selected. If you specify both label and property selectors in the same term, the results + * are AND'd. At this moment, PropertySelector can only be used with + * `RequiredDuringSchedulingIgnoredDuringExecution` affinity terms. This field is beta-level; it is for the + * property-based scheduling feature and is only functional when a property provider is enabled in the deployment. + * + * @param propertySelector the propertySelector value to set. + * @return the ClusterSelectorTerm object itself. + */ + public ClusterSelectorTerm withPropertySelector(PropertySelector propertySelector) { + this.propertySelector = propertySelector; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("labelSelector", this.labelSelector); + jsonWriter.writeJsonField("propertySelector", this.propertySelector); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterSelectorTerm from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterSelectorTerm 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 ClusterSelectorTerm. + */ + public static ClusterSelectorTerm fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterSelectorTerm deserializedClusterSelectorTerm = new ClusterSelectorTerm(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("labelSelector".equals(fieldName)) { + deserializedClusterSelectorTerm.labelSelector = LabelSelector.fromJson(reader); + } else if ("propertySelector".equals(fieldName)) { + deserializedClusterSelectorTerm.propertySelector = PropertySelector.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterSelectorTerm; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/DeletePolicy.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/DeletePolicy.java new file mode 100644 index 000000000000..ec8d10c073fc --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/DeletePolicy.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Delete options for the ARM managed namespace. + */ +public final class DeletePolicy extends ExpandableStringEnum { + /** + * Delete the ARM resource but keep the Namespace. + */ + public static final DeletePolicy KEEP = fromString("Keep"); + + /** + * Delete both ARM resource and Namespace. + */ + public static final DeletePolicy DELETE = fromString("Delete"); + + /** + * Creates a new instance of DeletePolicy value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DeletePolicy() { + } + + /** + * Creates or finds a DeletePolicy from its string representation. + * + * @param name a name to look for. + * @return the corresponding DeletePolicy. + */ + public static DeletePolicy fromString(String name) { + return fromString(name, DeletePolicy.class); + } + + /** + * Gets known DeletePolicy values. + * + * @return known DeletePolicy values. + */ + public static Collection values() { + return values(DeletePolicy.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespace.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespace.java new file mode 100644 index 000000000000..ac1beed83ef2 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespace.java @@ -0,0 +1,389 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceInner; +import java.util.Map; + +/** + * An immutable client-side representation of FleetManagedNamespace. + */ +public interface FleetManagedNamespace { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the etag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the provisioningState property: The status of the last operation. + * + * @return the provisioningState value. + */ + FleetManagedNamespaceProvisioningState provisioningState(); + + /** + * Gets the managedNamespaceProperties property: The namespace properties for the fleet managed namespace. + * + * @return the managedNamespaceProperties value. + */ + ManagedNamespaceProperties managedNamespaceProperties(); + + /** + * Gets the adoptionPolicy property: Action if the managed namespace with the same name already exists. Default is + * Never. + * + * @return the adoptionPolicy value. + */ + AdoptionPolicy adoptionPolicy(); + + /** + * Gets the deletePolicy property: Delete options of a fleet managed namespace. Default is Keep. + * + * @return the deletePolicy value. + */ + DeletePolicy deletePolicy(); + + /** + * Gets the propagationPolicy property: The profile of the propagation to create the namespace. + * + * @return the propagationPolicy value. + */ + PropagationPolicy propagationPolicy(); + + /** + * Gets the status property: Status information of the last operation for fleet managed namespace. + * + * @return the status value. + */ + FleetManagedNamespaceStatus status(); + + /** + * Gets the portalFqdn property: The Azure Portal FQDN of the Fleet hub. + * + * @return the portalFqdn value. + */ + String portalFqdn(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceInner object. + * + * @return the inner object. + */ + FleetManagedNamespaceInner innerModel(); + + /** + * The entirety of the FleetManagedNamespace definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The FleetManagedNamespace definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the FleetManagedNamespace definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the FleetManagedNamespace definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(String location); + } + + /** + * The stage of the FleetManagedNamespace definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, fleetName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @return the next definition stage. + */ + WithCreate withExistingFleet(String resourceGroupName, String fleetName); + } + + /** + * The stage of the FleetManagedNamespace definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithManagedNamespaceProperties, + DefinitionStages.WithAdoptionPolicy, DefinitionStages.WithDeletePolicy, + DefinitionStages.WithPropagationPolicy, DefinitionStages.WithIfMatch, DefinitionStages.WithIfNoneMatch { + /** + * Executes the create request. + * + * @return the created resource. + */ + FleetManagedNamespace create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + FleetManagedNamespace create(Context context); + } + + /** + * The stage of the FleetManagedNamespace definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the FleetManagedNamespace definition allowing to specify managedNamespaceProperties. + */ + interface WithManagedNamespaceProperties { + /** + * Specifies the managedNamespaceProperties property: The namespace properties for the fleet managed + * namespace.. + * + * @param managedNamespaceProperties The namespace properties for the fleet managed namespace. + * @return the next definition stage. + */ + WithCreate withManagedNamespaceProperties(ManagedNamespaceProperties managedNamespaceProperties); + } + + /** + * The stage of the FleetManagedNamespace definition allowing to specify adoptionPolicy. + */ + interface WithAdoptionPolicy { + /** + * Specifies the adoptionPolicy property: Action if the managed namespace with the same name already exists. + * Default is Never.. + * + * @param adoptionPolicy Action if the managed namespace with the same name already exists. Default is + * Never. + * @return the next definition stage. + */ + WithCreate withAdoptionPolicy(AdoptionPolicy adoptionPolicy); + } + + /** + * The stage of the FleetManagedNamespace definition allowing to specify deletePolicy. + */ + interface WithDeletePolicy { + /** + * Specifies the deletePolicy property: Delete options of a fleet managed namespace. Default is Keep.. + * + * @param deletePolicy Delete options of a fleet managed namespace. Default is Keep. + * @return the next definition stage. + */ + WithCreate withDeletePolicy(DeletePolicy deletePolicy); + } + + /** + * The stage of the FleetManagedNamespace definition allowing to specify propagationPolicy. + */ + interface WithPropagationPolicy { + /** + * Specifies the propagationPolicy property: The profile of the propagation to create the namespace.. + * + * @param propagationPolicy The profile of the propagation to create the namespace. + * @return the next definition stage. + */ + WithCreate withPropagationPolicy(PropagationPolicy propagationPolicy); + } + + /** + * The stage of the FleetManagedNamespace definition allowing to specify ifMatch. + */ + interface WithIfMatch { + /** + * Specifies the ifMatch property: The request should only proceed if an entity matches this string.. + * + * @param ifMatch The request should only proceed if an entity matches this string. + * @return the next definition stage. + */ + WithCreate withIfMatch(String ifMatch); + } + + /** + * The stage of the FleetManagedNamespace definition allowing to specify ifNoneMatch. + */ + interface WithIfNoneMatch { + /** + * Specifies the ifNoneMatch property: The request should only proceed if no entity matches this string.. + * + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @return the next definition stage. + */ + WithCreate withIfNoneMatch(String ifNoneMatch); + } + } + + /** + * Begins update for the FleetManagedNamespace resource. + * + * @return the stage of resource update. + */ + FleetManagedNamespace.Update update(); + + /** + * The template for FleetManagedNamespace update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithIfMatch { + /** + * Executes the update request. + * + * @return the updated resource. + */ + FleetManagedNamespace apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + FleetManagedNamespace apply(Context context); + } + + /** + * The FleetManagedNamespace update stages. + */ + interface UpdateStages { + /** + * The stage of the FleetManagedNamespace update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the FleetManagedNamespace update allowing to specify ifMatch. + */ + interface WithIfMatch { + /** + * Specifies the ifMatch property: The request should only proceed if an entity matches this string.. + * + * @param ifMatch The request should only proceed if an entity matches this string. + * @return the next definition stage. + */ + Update withIfMatch(String ifMatch); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + FleetManagedNamespace refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + FleetManagedNamespace refresh(Context context); +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespacePatch.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespacePatch.java new file mode 100644 index 000000000000..59d6278dc2f0 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespacePatch.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; +import java.util.Map; + +/** + * The properties of a fleet managed namespace that can be patched. + */ +@Fluent +public final class FleetManagedNamespacePatch implements JsonSerializable { + /* + * Resource tags. + */ + private Map tags; + + /** + * Creates an instance of FleetManagedNamespacePatch class. + */ + public FleetManagedNamespacePatch() { + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the FleetManagedNamespacePatch object itself. + */ + public FleetManagedNamespacePatch withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FleetManagedNamespacePatch from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FleetManagedNamespacePatch 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 FleetManagedNamespacePatch. + */ + public static FleetManagedNamespacePatch fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FleetManagedNamespacePatch deserializedFleetManagedNamespacePatch = new FleetManagedNamespacePatch(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedFleetManagedNamespacePatch.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedFleetManagedNamespacePatch; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaceProvisioningState.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaceProvisioningState.java new file mode 100644 index 000000000000..24aafa81e6ce --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaceProvisioningState.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The provisioning state of the fleet managed namespace resource. + */ +public final class FleetManagedNamespaceProvisioningState + extends ExpandableStringEnum { + /** + * Resource has been created. + */ + public static final FleetManagedNamespaceProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Resource creation failed. + */ + public static final FleetManagedNamespaceProvisioningState FAILED = fromString("Failed"); + + /** + * Resource creation was canceled. + */ + public static final FleetManagedNamespaceProvisioningState CANCELED = fromString("Canceled"); + + /** + * The provisioning state of a fleet managed namespace being created. + */ + public static final FleetManagedNamespaceProvisioningState CREATING = fromString("Creating"); + + /** + * The provisioning state of a fleet managed namespace being updated. + */ + public static final FleetManagedNamespaceProvisioningState UPDATING = fromString("Updating"); + + /** + * The provisioning state of a fleet managed namespace being deleted. + */ + public static final FleetManagedNamespaceProvisioningState DELETING = fromString("Deleting"); + + /** + * Creates a new instance of FleetManagedNamespaceProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public FleetManagedNamespaceProvisioningState() { + } + + /** + * Creates or finds a FleetManagedNamespaceProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding FleetManagedNamespaceProvisioningState. + */ + public static FleetManagedNamespaceProvisioningState fromString(String name) { + return fromString(name, FleetManagedNamespaceProvisioningState.class); + } + + /** + * Gets known FleetManagedNamespaceProvisioningState values. + * + * @return known FleetManagedNamespaceProvisioningState values. + */ + public static Collection values() { + return values(FleetManagedNamespaceProvisioningState.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaceStatus.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaceStatus.java new file mode 100644 index 000000000000..02fe3d36f2ef --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaceStatus.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.exception.ManagementError; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Status information for the fleet managed namespace. + */ +@Immutable +public final class FleetManagedNamespaceStatus implements JsonSerializable { + /* + * The last operation ID for the fleet managed namespace + */ + private String lastOperationId; + + /* + * The last operation error of the fleet managed namespace + */ + private ManagementError lastOperationError; + + /** + * Creates an instance of FleetManagedNamespaceStatus class. + */ + private FleetManagedNamespaceStatus() { + } + + /** + * Get the lastOperationId property: The last operation ID for the fleet managed namespace. + * + * @return the lastOperationId value. + */ + public String lastOperationId() { + return this.lastOperationId; + } + + /** + * Get the lastOperationError property: The last operation error of the fleet managed namespace. + * + * @return the lastOperationError value. + */ + public ManagementError lastOperationError() { + return this.lastOperationError; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FleetManagedNamespaceStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FleetManagedNamespaceStatus 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 FleetManagedNamespaceStatus. + */ + public static FleetManagedNamespaceStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FleetManagedNamespaceStatus deserializedFleetManagedNamespaceStatus = new FleetManagedNamespaceStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("lastOperationId".equals(fieldName)) { + deserializedFleetManagedNamespaceStatus.lastOperationId = reader.getString(); + } else if ("lastOperationError".equals(fieldName)) { + deserializedFleetManagedNamespaceStatus.lastOperationError = ManagementError.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedFleetManagedNamespaceStatus; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaces.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaces.java new file mode 100644 index 000000000000..a4a8220f08e4 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaces.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of FleetManagedNamespaces. + */ +public interface FleetManagedNamespaces { + /** + * Get a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 a FleetManagedNamespace along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String fleetName, + String managedNamespaceName, Context context); + + /** + * Get a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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 a FleetManagedNamespace. + */ + FleetManagedNamespace get(String resourceGroupName, String fleetName, String managedNamespaceName); + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @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. + */ + void delete(String resourceGroupName, String fleetName, String managedNamespaceName); + + /** + * Delete a FleetManagedNamespace. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @param managedNamespaceName The name of the fleet managed namespace resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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. + */ + void delete(String resourceGroupName, String fleetName, String managedNamespaceName, String ifMatch, + Context context); + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByFleet(String resourceGroupName, String fleetName); + + /** + * List FleetManagedNamespace resources by Fleet. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param fleetName The name of the Fleet resource. + * @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 response of a FleetManagedNamespace list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByFleet(String resourceGroupName, String fleetName, Context context); + + /** + * Get a FleetManagedNamespace. + * + * @param id the resource ID. + * @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 a FleetManagedNamespace along with {@link Response}. + */ + FleetManagedNamespace getById(String id); + + /** + * Get a FleetManagedNamespace. + * + * @param id the resource ID. + * @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 a FleetManagedNamespace along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a FleetManagedNamespace. + * + * @param id the resource ID. + * @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. + */ + void deleteById(String id); + + /** + * Delete a FleetManagedNamespace. + * + * @param id the resource ID. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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. + */ + void deleteByIdWithResponse(String id, String ifMatch, Context context); + + /** + * Begins definition for a new FleetManagedNamespace resource. + * + * @param name resource name. + * @return the first stage of the new FleetManagedNamespace definition. + */ + FleetManagedNamespace.DefinitionStages.Blank define(String name); +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelector.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelector.java new file mode 100644 index 000000000000..dc0e4e594178 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelector.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; +import java.util.List; +import java.util.Map; + +/** + * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. + * An empty label selector matches all objects. A null label selector matches no objects. + */ +@Fluent +public final class LabelSelector implements JsonSerializable { + /* + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an + * element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only + * "value". The requirements are ANDed. + */ + private Map matchLabels; + + /* + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + private List matchExpressions; + + /** + * Creates an instance of LabelSelector class. + */ + public LabelSelector() { + } + + /** + * Get the matchLabels property: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the + * values array contains only "value". The requirements are ANDed. + * + * @return the matchLabels value. + */ + public Map matchLabels() { + return this.matchLabels; + } + + /** + * Set the matchLabels property: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the + * values array contains only "value". The requirements are ANDed. + * + * @param matchLabels the matchLabels value to set. + * @return the LabelSelector object itself. + */ + public LabelSelector withMatchLabels(Map matchLabels) { + this.matchLabels = matchLabels; + return this; + } + + /** + * Get the matchExpressions property: matchExpressions is a list of label selector requirements. The requirements + * are ANDed. + * + * @return the matchExpressions value. + */ + public List matchExpressions() { + return this.matchExpressions; + } + + /** + * Set the matchExpressions property: matchExpressions is a list of label selector requirements. The requirements + * are ANDed. + * + * @param matchExpressions the matchExpressions value to set. + * @return the LabelSelector object itself. + */ + public LabelSelector withMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("matchLabels", this.matchLabels, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("matchExpressions", this.matchExpressions, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LabelSelector from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LabelSelector 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 LabelSelector. + */ + public static LabelSelector fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LabelSelector deserializedLabelSelector = new LabelSelector(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("matchLabels".equals(fieldName)) { + Map matchLabels = reader.readMap(reader1 -> reader1.getString()); + deserializedLabelSelector.matchLabels = matchLabels; + } else if ("matchExpressions".equals(fieldName)) { + List matchExpressions + = reader.readArray(reader1 -> LabelSelectorRequirement.fromJson(reader1)); + deserializedLabelSelector.matchExpressions = matchExpressions; + } else { + reader.skipChildren(); + } + } + + return deserializedLabelSelector; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelectorOperator.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelectorOperator.java new file mode 100644 index 000000000000..63fe025003d3 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelectorOperator.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * A label selector operator is the set of operators that can be used in a selector requirement. + */ +public final class LabelSelectorOperator extends ExpandableStringEnum { + /** + * Label Selector Operator In. + */ + public static final LabelSelectorOperator IN = fromString("In"); + + /** + * Label Selector Operator NotIn. + */ + public static final LabelSelectorOperator NOT_IN = fromString("NotIn"); + + /** + * Label Selector Operator Exists. + */ + public static final LabelSelectorOperator EXISTS = fromString("Exists"); + + /** + * Label Selector Operator DoesNotExist. + */ + public static final LabelSelectorOperator DOES_NOT_EXIST = fromString("DoesNotExist"); + + /** + * Creates a new instance of LabelSelectorOperator value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public LabelSelectorOperator() { + } + + /** + * Creates or finds a LabelSelectorOperator from its string representation. + * + * @param name a name to look for. + * @return the corresponding LabelSelectorOperator. + */ + public static LabelSelectorOperator fromString(String name) { + return fromString(name, LabelSelectorOperator.class); + } + + /** + * Gets known LabelSelectorOperator values. + * + * @return known LabelSelectorOperator values. + */ + public static Collection values() { + return values(LabelSelectorOperator.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelectorRequirement.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelectorRequirement.java new file mode 100644 index 000000000000..c54b9c17ff44 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelectorRequirement.java @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; +import java.util.List; + +/** + * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and + * values. + */ +@Fluent +public final class LabelSelectorRequirement implements JsonSerializable { + /* + * key is the label key that the selector applies to. + */ + private String key; + + /* + * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and + * DoesNotExist. + */ + private LabelSelectorOperator operator; + + /* + * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the + * operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + private List values; + + /** + * Creates an instance of LabelSelectorRequirement class. + */ + public LabelSelectorRequirement() { + } + + /** + * Get the key property: key is the label key that the selector applies to. + * + * @return the key value. + */ + public String key() { + return this.key; + } + + /** + * Set the key property: key is the label key that the selector applies to. + * + * @param key the key value to set. + * @return the LabelSelectorRequirement object itself. + */ + public LabelSelectorRequirement withKey(String key) { + this.key = key; + return this; + } + + /** + * Get the operator property: operator represents a key's relationship to a set of values. Valid operators are In, + * NotIn, Exists and DoesNotExist. + * + * @return the operator value. + */ + public LabelSelectorOperator operator() { + return this.operator; + } + + /** + * Set the operator property: operator represents a key's relationship to a set of values. Valid operators are In, + * NotIn, Exists and DoesNotExist. + * + * @param operator the operator value to set. + * @return the LabelSelectorRequirement object itself. + */ + public LabelSelectorRequirement withOperator(LabelSelectorOperator operator) { + this.operator = operator; + return this; + } + + /** + * Get the values property: values is an array of string values. If the operator is In or NotIn, the values array + * must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is + * replaced during a strategic merge patch. + * + * @return the values value. + */ + public List values() { + return this.values; + } + + /** + * Set the values property: values is an array of string values. If the operator is In or NotIn, the values array + * must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is + * replaced during a strategic merge patch. + * + * @param values the values value to set. + * @return the LabelSelectorRequirement object itself. + */ + public LabelSelectorRequirement withValues(List values) { + this.values = values; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("key", this.key); + jsonWriter.writeStringField("operator", this.operator == null ? null : this.operator.toString()); + jsonWriter.writeArrayField("values", this.values, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LabelSelectorRequirement from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LabelSelectorRequirement 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 LabelSelectorRequirement. + */ + public static LabelSelectorRequirement fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LabelSelectorRequirement deserializedLabelSelectorRequirement = new LabelSelectorRequirement(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("key".equals(fieldName)) { + deserializedLabelSelectorRequirement.key = reader.getString(); + } else if ("operator".equals(fieldName)) { + deserializedLabelSelectorRequirement.operator + = LabelSelectorOperator.fromString(reader.getString()); + } else if ("values".equals(fieldName)) { + List values = reader.readArray(reader1 -> reader1.getString()); + deserializedLabelSelectorRequirement.values = values; + } else { + reader.skipChildren(); + } + } + + return deserializedLabelSelectorRequirement; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedNamespaceProperties.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedNamespaceProperties.java new file mode 100644 index 000000000000..a3a97f319da2 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedNamespaceProperties.java @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; +import java.util.Map; + +/** + * The namespace properties for the fleet managed namespace. + */ +@Fluent +public final class ManagedNamespaceProperties implements JsonSerializable { + /* + * The labels for the fleet managed namespace. + */ + private Map labels; + + /* + * The annotations for the fleet managed namespace. + */ + private Map annotations; + + /* + * The default resource quota for the fleet managed namespace. + */ + private ResourceQuota defaultResourceQuota; + + /* + * The default network policy for the fleet managed namespace. + */ + private NetworkPolicy defaultNetworkPolicy; + + /** + * Creates an instance of ManagedNamespaceProperties class. + */ + public ManagedNamespaceProperties() { + } + + /** + * Get the labels property: The labels for the fleet managed namespace. + * + * @return the labels value. + */ + public Map labels() { + return this.labels; + } + + /** + * Set the labels property: The labels for the fleet managed namespace. + * + * @param labels the labels value to set. + * @return the ManagedNamespaceProperties object itself. + */ + public ManagedNamespaceProperties withLabels(Map labels) { + this.labels = labels; + return this; + } + + /** + * Get the annotations property: The annotations for the fleet managed namespace. + * + * @return the annotations value. + */ + public Map annotations() { + return this.annotations; + } + + /** + * Set the annotations property: The annotations for the fleet managed namespace. + * + * @param annotations the annotations value to set. + * @return the ManagedNamespaceProperties object itself. + */ + public ManagedNamespaceProperties withAnnotations(Map annotations) { + this.annotations = annotations; + return this; + } + + /** + * Get the defaultResourceQuota property: The default resource quota for the fleet managed namespace. + * + * @return the defaultResourceQuota value. + */ + public ResourceQuota defaultResourceQuota() { + return this.defaultResourceQuota; + } + + /** + * Set the defaultResourceQuota property: The default resource quota for the fleet managed namespace. + * + * @param defaultResourceQuota the defaultResourceQuota value to set. + * @return the ManagedNamespaceProperties object itself. + */ + public ManagedNamespaceProperties withDefaultResourceQuota(ResourceQuota defaultResourceQuota) { + this.defaultResourceQuota = defaultResourceQuota; + return this; + } + + /** + * Get the defaultNetworkPolicy property: The default network policy for the fleet managed namespace. + * + * @return the defaultNetworkPolicy value. + */ + public NetworkPolicy defaultNetworkPolicy() { + return this.defaultNetworkPolicy; + } + + /** + * Set the defaultNetworkPolicy property: The default network policy for the fleet managed namespace. + * + * @param defaultNetworkPolicy the defaultNetworkPolicy value to set. + * @return the ManagedNamespaceProperties object itself. + */ + public ManagedNamespaceProperties withDefaultNetworkPolicy(NetworkPolicy defaultNetworkPolicy) { + this.defaultNetworkPolicy = defaultNetworkPolicy; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("labels", this.labels, (writer, element) -> writer.writeString(element)); + jsonWriter.writeMapField("annotations", this.annotations, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("defaultResourceQuota", this.defaultResourceQuota); + jsonWriter.writeJsonField("defaultNetworkPolicy", this.defaultNetworkPolicy); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedNamespaceProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedNamespaceProperties 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 ManagedNamespaceProperties. + */ + public static ManagedNamespaceProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedNamespaceProperties deserializedManagedNamespaceProperties = new ManagedNamespaceProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("labels".equals(fieldName)) { + Map labels = reader.readMap(reader1 -> reader1.getString()); + deserializedManagedNamespaceProperties.labels = labels; + } else if ("annotations".equals(fieldName)) { + Map annotations = reader.readMap(reader1 -> reader1.getString()); + deserializedManagedNamespaceProperties.annotations = annotations; + } else if ("defaultResourceQuota".equals(fieldName)) { + deserializedManagedNamespaceProperties.defaultResourceQuota = ResourceQuota.fromJson(reader); + } else if ("defaultNetworkPolicy".equals(fieldName)) { + deserializedManagedNamespaceProperties.defaultNetworkPolicy = NetworkPolicy.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedNamespaceProperties; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/NetworkPolicy.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/NetworkPolicy.java new file mode 100644 index 000000000000..4ef72b2a9741 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/NetworkPolicy.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; + +/** + * The network policy for the managed namespace. + */ +@Fluent +public final class NetworkPolicy implements JsonSerializable { + /* + * The ingress policy for the managed namespace. + */ + private PolicyRule ingress; + + /* + * The egress policy for the managed namespace. + */ + private PolicyRule egress; + + /** + * Creates an instance of NetworkPolicy class. + */ + public NetworkPolicy() { + } + + /** + * Get the ingress property: The ingress policy for the managed namespace. + * + * @return the ingress value. + */ + public PolicyRule ingress() { + return this.ingress; + } + + /** + * Set the ingress property: The ingress policy for the managed namespace. + * + * @param ingress the ingress value to set. + * @return the NetworkPolicy object itself. + */ + public NetworkPolicy withIngress(PolicyRule ingress) { + this.ingress = ingress; + return this; + } + + /** + * Get the egress property: The egress policy for the managed namespace. + * + * @return the egress value. + */ + public PolicyRule egress() { + return this.egress; + } + + /** + * Set the egress property: The egress policy for the managed namespace. + * + * @param egress the egress value to set. + * @return the NetworkPolicy object itself. + */ + public NetworkPolicy withEgress(PolicyRule egress) { + this.egress = egress; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("ingress", this.ingress == null ? null : this.ingress.toString()); + jsonWriter.writeStringField("egress", this.egress == null ? null : this.egress.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkPolicy from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkPolicy 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 NetworkPolicy. + */ + public static NetworkPolicy fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkPolicy deserializedNetworkPolicy = new NetworkPolicy(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("ingress".equals(fieldName)) { + deserializedNetworkPolicy.ingress = PolicyRule.fromString(reader.getString()); + } else if ("egress".equals(fieldName)) { + deserializedNetworkPolicy.egress = PolicyRule.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkPolicy; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementPolicy.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementPolicy.java new file mode 100644 index 000000000000..e6ebef3bb750 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementPolicy.java @@ -0,0 +1,183 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; +import java.util.List; + +/** + * PlacementPolicy contains the rules to select target member clusters to place the selected resources. Note that only + * clusters that are both joined and satisfying the rules will be selected. You can only specify at most one of the two + * fields: ClusterNames and Affinity. If none is specified, all the joined clusters are selected. + */ +@Fluent +public final class PlacementPolicy implements JsonSerializable { + /* + * Type of placement. Can be "PickAll", "PickN" or "PickFixed". Default is PickAll. + */ + private PlacementType placementType; + + /* + * ClusterNames contains a list of names of MemberCluster to place the selected resources. Only valid if the + * placement type is "PickFixed" + */ + private List clusterNames; + + /* + * Affinity contains cluster affinity scheduling rules. Defines which member clusters to place the selected + * resources. Only valid if the placement type is "PickAll" or "PickN". + */ + private Affinity affinity; + + /* + * If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be updated or deleted. This field is + * beta-level and is for the taints and tolerations feature. + */ + private List tolerations; + + /** + * Creates an instance of PlacementPolicy class. + */ + public PlacementPolicy() { + } + + /** + * Get the placementType property: Type of placement. Can be "PickAll", "PickN" or "PickFixed". Default is PickAll. + * + * @return the placementType value. + */ + public PlacementType placementType() { + return this.placementType; + } + + /** + * Set the placementType property: Type of placement. Can be "PickAll", "PickN" or "PickFixed". Default is PickAll. + * + * @param placementType the placementType value to set. + * @return the PlacementPolicy object itself. + */ + public PlacementPolicy withPlacementType(PlacementType placementType) { + this.placementType = placementType; + return this; + } + + /** + * Get the clusterNames property: ClusterNames contains a list of names of MemberCluster to place the selected + * resources. Only valid if the placement type is "PickFixed". + * + * @return the clusterNames value. + */ + public List clusterNames() { + return this.clusterNames; + } + + /** + * Set the clusterNames property: ClusterNames contains a list of names of MemberCluster to place the selected + * resources. Only valid if the placement type is "PickFixed". + * + * @param clusterNames the clusterNames value to set. + * @return the PlacementPolicy object itself. + */ + public PlacementPolicy withClusterNames(List clusterNames) { + this.clusterNames = clusterNames; + return this; + } + + /** + * Get the affinity property: Affinity contains cluster affinity scheduling rules. Defines which member clusters to + * place the selected resources. Only valid if the placement type is "PickAll" or "PickN". + * + * @return the affinity value. + */ + public Affinity affinity() { + return this.affinity; + } + + /** + * Set the affinity property: Affinity contains cluster affinity scheduling rules. Defines which member clusters to + * place the selected resources. Only valid if the placement type is "PickAll" or "PickN". + * + * @param affinity the affinity value to set. + * @return the PlacementPolicy object itself. + */ + public PlacementPolicy withAffinity(Affinity affinity) { + this.affinity = affinity; + return this; + } + + /** + * Get the tolerations property: If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be + * updated or deleted. This field is beta-level and is for the taints and tolerations feature. + * + * @return the tolerations value. + */ + public List tolerations() { + return this.tolerations; + } + + /** + * Set the tolerations property: If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be + * updated or deleted. This field is beta-level and is for the taints and tolerations feature. + * + * @param tolerations the tolerations value to set. + * @return the PlacementPolicy object itself. + */ + public PlacementPolicy withTolerations(List tolerations) { + this.tolerations = tolerations; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("placementType", this.placementType == null ? null : this.placementType.toString()); + jsonWriter.writeArrayField("clusterNames", this.clusterNames, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("affinity", this.affinity); + jsonWriter.writeArrayField("tolerations", this.tolerations, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PlacementPolicy from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PlacementPolicy 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 PlacementPolicy. + */ + public static PlacementPolicy fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PlacementPolicy deserializedPlacementPolicy = new PlacementPolicy(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("placementType".equals(fieldName)) { + deserializedPlacementPolicy.placementType = PlacementType.fromString(reader.getString()); + } else if ("clusterNames".equals(fieldName)) { + List clusterNames = reader.readArray(reader1 -> reader1.getString()); + deserializedPlacementPolicy.clusterNames = clusterNames; + } else if ("affinity".equals(fieldName)) { + deserializedPlacementPolicy.affinity = Affinity.fromJson(reader); + } else if ("tolerations".equals(fieldName)) { + List tolerations = reader.readArray(reader1 -> Toleration.fromJson(reader1)); + deserializedPlacementPolicy.tolerations = tolerations; + } else { + reader.skipChildren(); + } + } + + return deserializedPlacementPolicy; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementProfile.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementProfile.java new file mode 100644 index 000000000000..89c57beb30a3 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementProfile.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; + +/** + * The configuration profile for default ClusterResourcePlacement for placement. + */ +@Fluent +public final class PlacementProfile implements JsonSerializable { + /* + * The default ClusterResourcePlacement policy configuration. + */ + private ClusterResourcePlacementSpec defaultClusterResourcePlacement; + + /** + * Creates an instance of PlacementProfile class. + */ + public PlacementProfile() { + } + + /** + * Get the defaultClusterResourcePlacement property: The default ClusterResourcePlacement policy configuration. + * + * @return the defaultClusterResourcePlacement value. + */ + public ClusterResourcePlacementSpec defaultClusterResourcePlacement() { + return this.defaultClusterResourcePlacement; + } + + /** + * Set the defaultClusterResourcePlacement property: The default ClusterResourcePlacement policy configuration. + * + * @param defaultClusterResourcePlacement the defaultClusterResourcePlacement value to set. + * @return the PlacementProfile object itself. + */ + public PlacementProfile + withDefaultClusterResourcePlacement(ClusterResourcePlacementSpec defaultClusterResourcePlacement) { + this.defaultClusterResourcePlacement = defaultClusterResourcePlacement; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("defaultClusterResourcePlacement", this.defaultClusterResourcePlacement); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PlacementProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PlacementProfile 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 PlacementProfile. + */ + public static PlacementProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PlacementProfile deserializedPlacementProfile = new PlacementProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("defaultClusterResourcePlacement".equals(fieldName)) { + deserializedPlacementProfile.defaultClusterResourcePlacement + = ClusterResourcePlacementSpec.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPlacementProfile; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementType.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementType.java new file mode 100644 index 000000000000..fc20fa6890be --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * PlacementType identifies the type of placement. + */ +public final class PlacementType extends ExpandableStringEnum { + /** + * PickAll picks all clusters that satisfy the rules. + */ + public static final PlacementType PICK_ALL = fromString("PickAll"); + + /** + * PickFixed picks a fixed set of clusters. + */ + public static final PlacementType PICK_FIXED = fromString("PickFixed"); + + /** + * Creates a new instance of PlacementType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PlacementType() { + } + + /** + * Creates or finds a PlacementType from its string representation. + * + * @param name a name to look for. + * @return the corresponding PlacementType. + */ + public static PlacementType fromString(String name) { + return fromString(name, PlacementType.class); + } + + /** + * Gets known PlacementType values. + * + * @return known PlacementType values. + */ + public static Collection values() { + return values(PlacementType.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PolicyRule.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PolicyRule.java new file mode 100644 index 000000000000..5792c1f9ef5f --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PolicyRule.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The possible values representing different network policy rules. + */ +public final class PolicyRule extends ExpandableStringEnum { + /** + * Allow all network traffic. + */ + public static final PolicyRule ALLOW_ALL = fromString("AllowAll"); + + /** + * Deny all network traffic. + */ + public static final PolicyRule DENY_ALL = fromString("DenyAll"); + + /** + * Allow traffic within the same namespace. + */ + public static final PolicyRule ALLOW_SAME_NAMESPACE = fromString("AllowSameNamespace"); + + /** + * Creates a new instance of PolicyRule value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PolicyRule() { + } + + /** + * Creates or finds a PolicyRule from its string representation. + * + * @param name a name to look for. + * @return the corresponding PolicyRule. + */ + public static PolicyRule fromString(String name) { + return fromString(name, PolicyRule.class); + } + + /** + * Gets known PolicyRule values. + * + * @return known PolicyRule values. + */ + public static Collection values() { + return values(PolicyRule.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropagationPolicy.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropagationPolicy.java new file mode 100644 index 000000000000..3f31032a2b9c --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropagationPolicy.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; + +/** + * The propagation to be used for provisioning the namespace among the fleet. + */ +@Fluent +public final class PropagationPolicy implements JsonSerializable { + /* + * The type of the policy to be used. Default is Placement. + */ + private PropagationType type; + + /* + * The profile to be used for propagation via placement. + */ + private PlacementProfile placementProfile; + + /** + * Creates an instance of PropagationPolicy class. + */ + public PropagationPolicy() { + } + + /** + * Get the type property: The type of the policy to be used. Default is Placement. + * + * @return the type value. + */ + public PropagationType type() { + return this.type; + } + + /** + * Set the type property: The type of the policy to be used. Default is Placement. + * + * @param type the type value to set. + * @return the PropagationPolicy object itself. + */ + public PropagationPolicy withType(PropagationType type) { + this.type = type; + return this; + } + + /** + * Get the placementProfile property: The profile to be used for propagation via placement. + * + * @return the placementProfile value. + */ + public PlacementProfile placementProfile() { + return this.placementProfile; + } + + /** + * Set the placementProfile property: The profile to be used for propagation via placement. + * + * @param placementProfile the placementProfile value to set. + * @return the PropagationPolicy object itself. + */ + public PropagationPolicy withPlacementProfile(PlacementProfile placementProfile) { + this.placementProfile = placementProfile; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeJsonField("placementProfile", this.placementProfile); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PropagationPolicy from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PropagationPolicy 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 PropagationPolicy. + */ + public static PropagationPolicy fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PropagationPolicy deserializedPropagationPolicy = new PropagationPolicy(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedPropagationPolicy.type = PropagationType.fromString(reader.getString()); + } else if ("placementProfile".equals(fieldName)) { + deserializedPropagationPolicy.placementProfile = PlacementProfile.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPropagationPolicy; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropagationType.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropagationType.java new file mode 100644 index 000000000000..5cde7616ca7d --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropagationType.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * How the namespace will be provisioned among the fleet members. + */ +public final class PropagationType extends ExpandableStringEnum { + /** + * Using ClusterResourcePlacement. + */ + public static final PropagationType PLACEMENT = fromString("Placement"); + + /** + * Creates a new instance of PropagationType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PropagationType() { + } + + /** + * Creates or finds a PropagationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding PropagationType. + */ + public static PropagationType fromString(String name) { + return fromString(name, PropagationType.class); + } + + /** + * Gets known PropagationType values. + * + * @return known PropagationType values. + */ + public static Collection values() { + return values(PropagationType.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelector.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelector.java new file mode 100644 index 000000000000..d776b05c532d --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelector.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; +import java.util.List; + +/** + * PropertySelector helps user specify property requirements when picking clusters for resource placement. + */ +@Fluent +public final class PropertySelector implements JsonSerializable { + /* + * MatchExpressions is an array of PropertySelectorRequirements. The requirements are AND'd. + */ + private List matchExpressions; + + /** + * Creates an instance of PropertySelector class. + */ + public PropertySelector() { + } + + /** + * Get the matchExpressions property: MatchExpressions is an array of PropertySelectorRequirements. The requirements + * are AND'd. + * + * @return the matchExpressions value. + */ + public List matchExpressions() { + return this.matchExpressions; + } + + /** + * Set the matchExpressions property: MatchExpressions is an array of PropertySelectorRequirements. The requirements + * are AND'd. + * + * @param matchExpressions the matchExpressions value to set. + * @return the PropertySelector object itself. + */ + public PropertySelector withMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("matchExpressions", this.matchExpressions, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PropertySelector from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PropertySelector 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 PropertySelector. + */ + public static PropertySelector fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PropertySelector deserializedPropertySelector = new PropertySelector(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("matchExpressions".equals(fieldName)) { + List matchExpressions + = reader.readArray(reader1 -> PropertySelectorRequirement.fromJson(reader1)); + deserializedPropertySelector.matchExpressions = matchExpressions; + } else { + reader.skipChildren(); + } + } + + return deserializedPropertySelector; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelectorOperator.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelectorOperator.java new file mode 100644 index 000000000000..bc71de811e8e --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelectorOperator.java @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * PropertySelectorOperator is the operator that can be used with PropertySelectorRequirements. + */ +public final class PropertySelectorOperator extends ExpandableStringEnum { + /** + * Gt dictates Fleet to select cluster if its observed value of a given property is greater than the value specified + * in the requirement. + */ + public static final PropertySelectorOperator GT = fromString("Gt"); + + /** + * Ge dictates Fleet to select cluster if its observed value of a given property is greater than or equal to the + * value specified in the requirement. + */ + public static final PropertySelectorOperator GE = fromString("Ge"); + + /** + * Eq dictates Fleet to select cluster if its observed value of a given property is equal to the values specified in + * the requirement. + */ + public static final PropertySelectorOperator EQ = fromString("Eq"); + + /** + * Ne dictates Fleet to select cluster if its observed value of a given property is not equal to the values + * specified in the requirement. + */ + public static final PropertySelectorOperator NE = fromString("Ne"); + + /** + * Lt dictates Fleet to select cluster if its observed value of a given property is less than the value specified in + * the requirement. + */ + public static final PropertySelectorOperator LT = fromString("Lt"); + + /** + * Le dictates Fleet to select cluster if its observed value of a given property is less than or equal to the value + * specified in the requirement. + */ + public static final PropertySelectorOperator LE = fromString("Le"); + + /** + * Creates a new instance of PropertySelectorOperator value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PropertySelectorOperator() { + } + + /** + * Creates or finds a PropertySelectorOperator from its string representation. + * + * @param name a name to look for. + * @return the corresponding PropertySelectorOperator. + */ + public static PropertySelectorOperator fromString(String name) { + return fromString(name, PropertySelectorOperator.class); + } + + /** + * Gets known PropertySelectorOperator values. + * + * @return known PropertySelectorOperator values. + */ + public static Collection values() { + return values(PropertySelectorOperator.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelectorRequirement.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelectorRequirement.java new file mode 100644 index 000000000000..abc153c68b89 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelectorRequirement.java @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; +import java.util.List; + +/** + * PropertySelectorRequirement is a specific property requirement when picking clusters for resource placement. + */ +@Fluent +public final class PropertySelectorRequirement implements JsonSerializable { + /* + * Name is the name of the property; it should be a Kubernetes label name. + */ + private String name; + + /* + * Operator specifies the relationship between a cluster's observed value of the specified property and the values + * given in the requirement. + */ + private PropertySelectorOperator operator; + + /* + * Values are a list of values of the specified property which Fleet will compare against the observed values of + * individual member clusters in accordance with the given operator. At this moment, each value should be a + * Kubernetes quantity. For more information, see https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. + * If the operator is Gt (greater than), Ge (greater than or equal to), Lt (less than), or `Le` (less than or equal + * to), Eq (equal to), or Ne (ne), exactly one value must be specified in the list. + */ + private List values; + + /** + * Creates an instance of PropertySelectorRequirement class. + */ + public PropertySelectorRequirement() { + } + + /** + * Get the name property: Name is the name of the property; it should be a Kubernetes label name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name is the name of the property; it should be a Kubernetes label name. + * + * @param name the name value to set. + * @return the PropertySelectorRequirement object itself. + */ + public PropertySelectorRequirement withName(String name) { + this.name = name; + return this; + } + + /** + * Get the operator property: Operator specifies the relationship between a cluster's observed value of the + * specified property and the values given in the requirement. + * + * @return the operator value. + */ + public PropertySelectorOperator operator() { + return this.operator; + } + + /** + * Set the operator property: Operator specifies the relationship between a cluster's observed value of the + * specified property and the values given in the requirement. + * + * @param operator the operator value to set. + * @return the PropertySelectorRequirement object itself. + */ + public PropertySelectorRequirement withOperator(PropertySelectorOperator operator) { + this.operator = operator; + return this; + } + + /** + * Get the values property: Values are a list of values of the specified property which Fleet will compare against + * the observed values of individual member clusters in accordance with the given operator. At this moment, each + * value should be a Kubernetes quantity. For more information, see + * https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. If the operator is Gt (greater than), Ge + * (greater than or equal to), Lt (less than), or `Le` (less than or equal to), Eq (equal to), or Ne (ne), exactly + * one value must be specified in the list. + * + * @return the values value. + */ + public List values() { + return this.values; + } + + /** + * Set the values property: Values are a list of values of the specified property which Fleet will compare against + * the observed values of individual member clusters in accordance with the given operator. At this moment, each + * value should be a Kubernetes quantity. For more information, see + * https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. If the operator is Gt (greater than), Ge + * (greater than or equal to), Lt (less than), or `Le` (less than or equal to), Eq (equal to), or Ne (ne), exactly + * one value must be specified in the list. + * + * @param values the values value to set. + * @return the PropertySelectorRequirement object itself. + */ + public PropertySelectorRequirement withValues(List values) { + this.values = values; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("operator", this.operator == null ? null : this.operator.toString()); + jsonWriter.writeArrayField("values", this.values, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PropertySelectorRequirement from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PropertySelectorRequirement 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 PropertySelectorRequirement. + */ + public static PropertySelectorRequirement fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PropertySelectorRequirement deserializedPropertySelectorRequirement = new PropertySelectorRequirement(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedPropertySelectorRequirement.name = reader.getString(); + } else if ("operator".equals(fieldName)) { + deserializedPropertySelectorRequirement.operator + = PropertySelectorOperator.fromString(reader.getString()); + } else if ("values".equals(fieldName)) { + List values = reader.readArray(reader1 -> reader1.getString()); + deserializedPropertySelectorRequirement.values = values; + } else { + reader.skipChildren(); + } + } + + return deserializedPropertySelectorRequirement; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ResourceQuota.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ResourceQuota.java new file mode 100644 index 000000000000..34df14d55ec4 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/ResourceQuota.java @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; + +/** + * The resource quota for the managed namespace. + */ +@Fluent +public final class ResourceQuota implements JsonSerializable { + /* + * The CPU request for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu + */ + private String cpuRequest; + + /* + * The CPU limit for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu + */ + private String cpuLimit; + + /* + * The memory request for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory + */ + private String memoryRequest; + + /* + * The memory limit for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory + */ + private String memoryLimit; + + /** + * Creates an instance of ResourceQuota class. + */ + public ResourceQuota() { + } + + /** + * Get the cpuRequest property: The CPU request for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu. + * + * @return the cpuRequest value. + */ + public String cpuRequest() { + return this.cpuRequest; + } + + /** + * Set the cpuRequest property: The CPU request for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu. + * + * @param cpuRequest the cpuRequest value to set. + * @return the ResourceQuota object itself. + */ + public ResourceQuota withCpuRequest(String cpuRequest) { + this.cpuRequest = cpuRequest; + return this; + } + + /** + * Get the cpuLimit property: The CPU limit for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu. + * + * @return the cpuLimit value. + */ + public String cpuLimit() { + return this.cpuLimit; + } + + /** + * Set the cpuLimit property: The CPU limit for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu. + * + * @param cpuLimit the cpuLimit value to set. + * @return the ResourceQuota object itself. + */ + public ResourceQuota withCpuLimit(String cpuLimit) { + this.cpuLimit = cpuLimit; + return this; + } + + /** + * Get the memoryRequest property: The memory request for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory. + * + * @return the memoryRequest value. + */ + public String memoryRequest() { + return this.memoryRequest; + } + + /** + * Set the memoryRequest property: The memory request for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory. + * + * @param memoryRequest the memoryRequest value to set. + * @return the ResourceQuota object itself. + */ + public ResourceQuota withMemoryRequest(String memoryRequest) { + this.memoryRequest = memoryRequest; + return this; + } + + /** + * Get the memoryLimit property: The memory limit for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory. + * + * @return the memoryLimit value. + */ + public String memoryLimit() { + return this.memoryLimit; + } + + /** + * Set the memoryLimit property: The memory limit for the managed namespace. See more at + * https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory. + * + * @param memoryLimit the memoryLimit value to set. + * @return the ResourceQuota object itself. + */ + public ResourceQuota withMemoryLimit(String memoryLimit) { + this.memoryLimit = memoryLimit; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("cpuRequest", this.cpuRequest); + jsonWriter.writeStringField("cpuLimit", this.cpuLimit); + jsonWriter.writeStringField("memoryRequest", this.memoryRequest); + jsonWriter.writeStringField("memoryLimit", this.memoryLimit); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceQuota from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceQuota 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 ResourceQuota. + */ + public static ResourceQuota fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceQuota deserializedResourceQuota = new ResourceQuota(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("cpuRequest".equals(fieldName)) { + deserializedResourceQuota.cpuRequest = reader.getString(); + } else if ("cpuLimit".equals(fieldName)) { + deserializedResourceQuota.cpuLimit = reader.getString(); + } else if ("memoryRequest".equals(fieldName)) { + deserializedResourceQuota.memoryRequest = reader.getString(); + } else if ("memoryLimit".equals(fieldName)) { + deserializedResourceQuota.memoryLimit = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceQuota; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/TaintEffect.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/TaintEffect.java new file mode 100644 index 000000000000..323c7e63da86 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/TaintEffect.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * TaintEffect. + */ +public final class TaintEffect extends ExpandableStringEnum { + /** + * Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to + * Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. + * Enforced by the scheduler. + */ + public static final TaintEffect NO_SCHEDULE = fromString("NoSchedule"); + + /** + * Creates a new instance of TaintEffect value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public TaintEffect() { + } + + /** + * Creates or finds a TaintEffect from its string representation. + * + * @param name a name to look for. + * @return the corresponding TaintEffect. + */ + public static TaintEffect fromString(String name) { + return fromString(name, TaintEffect.class); + } + + /** + * Gets known TaintEffect values. + * + * @return known TaintEffect values. + */ + public static Collection values() { + return values(TaintEffect.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/Toleration.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/Toleration.java new file mode 100644 index 000000000000..bc590acacc27 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/Toleration.java @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.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; + +/** + * Toleration allows ClusterResourcePlacement to tolerate any taint that matches the triple <key,value,effect> + * using the matching operator <operator>. + */ +@Fluent +public final class Toleration implements JsonSerializable { + /* + * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, + * operator must be Exists; this combination means to match all values and all keys. + */ + private String key; + + /* + * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. + * Exists is equivalent to wildcard for value, so that a ClusterResourcePlacement can tolerate all taints of a + * particular category. + */ + private TolerationOperator operator; + + /* + * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, + * otherwise just a regular string. + */ + private String value; + + /* + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, only allowed + * value is NoSchedule. + */ + private TaintEffect effect; + + /** + * Creates an instance of Toleration class. + */ + public Toleration() { + } + + /** + * Get the key property: Key is the taint key that the toleration applies to. Empty means match all taint keys. If + * the key is empty, operator must be Exists; this combination means to match all values and all keys. + * + * @return the key value. + */ + public String key() { + return this.key; + } + + /** + * Set the key property: Key is the taint key that the toleration applies to. Empty means match all taint keys. If + * the key is empty, operator must be Exists; this combination means to match all values and all keys. + * + * @param key the key value to set. + * @return the Toleration object itself. + */ + public Toleration withKey(String key) { + this.key = key; + return this; + } + + /** + * Get the operator property: Operator represents a key's relationship to the value. Valid operators are Exists and + * Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ClusterResourcePlacement can + * tolerate all taints of a particular category. + * + * @return the operator value. + */ + public TolerationOperator operator() { + return this.operator; + } + + /** + * Set the operator property: Operator represents a key's relationship to the value. Valid operators are Exists and + * Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ClusterResourcePlacement can + * tolerate all taints of a particular category. + * + * @param operator the operator value to set. + * @return the Toleration object itself. + */ + public Toleration withOperator(TolerationOperator operator) { + this.operator = operator; + return this; + } + + /** + * Get the value property: Value is the taint value the toleration matches to. If the operator is Exists, the value + * should be empty, otherwise just a regular string. + * + * @return the value value. + */ + public String value() { + return this.value; + } + + /** + * Set the value property: Value is the taint value the toleration matches to. If the operator is Exists, the value + * should be empty, otherwise just a regular string. + * + * @param value the value value to set. + * @return the Toleration object itself. + */ + public Toleration withValue(String value) { + this.value = value; + return this; + } + + /** + * Get the effect property: Effect indicates the taint effect to match. Empty means match all taint effects. When + * specified, only allowed value is NoSchedule. + * + * @return the effect value. + */ + public TaintEffect effect() { + return this.effect; + } + + /** + * Set the effect property: Effect indicates the taint effect to match. Empty means match all taint effects. When + * specified, only allowed value is NoSchedule. + * + * @param effect the effect value to set. + * @return the Toleration object itself. + */ + public Toleration withEffect(TaintEffect effect) { + this.effect = effect; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("key", this.key); + jsonWriter.writeStringField("operator", this.operator == null ? null : this.operator.toString()); + jsonWriter.writeStringField("value", this.value); + jsonWriter.writeStringField("effect", this.effect == null ? null : this.effect.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Toleration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Toleration 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 Toleration. + */ + public static Toleration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Toleration deserializedToleration = new Toleration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("key".equals(fieldName)) { + deserializedToleration.key = reader.getString(); + } else if ("operator".equals(fieldName)) { + deserializedToleration.operator = TolerationOperator.fromString(reader.getString()); + } else if ("value".equals(fieldName)) { + deserializedToleration.value = reader.getString(); + } else if ("effect".equals(fieldName)) { + deserializedToleration.effect = TaintEffect.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedToleration; + }); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/TolerationOperator.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/TolerationOperator.java new file mode 100644 index 000000000000..2e8e03782f83 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/java/com/azure/resourcemanager/containerservicefleet/models/TolerationOperator.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * A toleration operator is the set of operators that can be used in a toleration. + */ +public final class TolerationOperator extends ExpandableStringEnum { + /** + * Toleration Operator Exists. + */ + public static final TolerationOperator EXISTS = fromString("Exists"); + + /** + * Toleration Operator Equal. + */ + public static final TolerationOperator EQUAL = fromString("Equal"); + + /** + * Creates a new instance of TolerationOperator value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public TolerationOperator() { + } + + /** + * Creates or finds a TolerationOperator from its string representation. + * + * @param name a name to look for. + * @return the corresponding TolerationOperator. + */ + public static TolerationOperator fromString(String name) { + return fromString(name, TolerationOperator.class); + } + + /** + * Gets known TolerationOperator values. + * + * @return known TolerationOperator values. + */ + public static Collection values() { + return values(TolerationOperator.class); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/azure-resourcemanager-containerservicefleet_apiview_properties.json b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/azure-resourcemanager-containerservicefleet_apiview_properties.json index 406fa1fcdb9f..bf6b76d51cd4 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/azure-resourcemanager-containerservicefleet_apiview_properties.json +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/azure-resourcemanager-containerservicefleet_apiview_properties.json @@ -13,6 +13,16 @@ "com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.getWithResponse": "Microsoft.ContainerService.AutoUpgradeProfiles.get", "com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.listByFleet": "Microsoft.ContainerService.AutoUpgradeProfiles.listByFleet", "com.azure.resourcemanager.containerservicefleet.fluent.ContainerServiceFleetManagementClient": "Microsoft.ContainerService", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient": "Microsoft.ContainerService.FleetManagedNamespaces", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.beginCreateOrUpdate": "Microsoft.ContainerService.FleetManagedNamespaces.createOrUpdate", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.beginDelete": "Microsoft.ContainerService.FleetManagedNamespaces.delete", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.beginUpdate": "Microsoft.ContainerService.FleetManagedNamespaces.update", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.createOrUpdate": "Microsoft.ContainerService.FleetManagedNamespaces.createOrUpdate", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.delete": "Microsoft.ContainerService.FleetManagedNamespaces.delete", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.get": "Microsoft.ContainerService.FleetManagedNamespaces.get", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.getWithResponse": "Microsoft.ContainerService.FleetManagedNamespaces.get", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.listByFleet": "Microsoft.ContainerService.FleetManagedNamespaces.listByFleet", + "com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.update": "Microsoft.ContainerService.FleetManagedNamespaces.update", "com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient": "Microsoft.ContainerService.FleetMembers", "com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.beginCreate": "Microsoft.ContainerService.FleetMembers.create", "com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.beginDelete": "Microsoft.ContainerService.FleetMembers.delete", @@ -70,6 +80,8 @@ "com.azure.resourcemanager.containerservicefleet.fluent.models.AutoUpgradeProfileProperties": "Microsoft.ContainerService.AutoUpgradeProfileProperties", "com.azure.resourcemanager.containerservicefleet.fluent.models.FleetCredentialResultsInner": "Microsoft.ContainerService.FleetCredentialResults", "com.azure.resourcemanager.containerservicefleet.fluent.models.FleetInner": "Microsoft.ContainerService.Fleet", + "com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceInner": "Microsoft.ContainerService.FleetManagedNamespace", + "com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceProperties": "Microsoft.ContainerService.FleetManagedNamespaceProperties", "com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberInner": "Microsoft.ContainerService.FleetMember", "com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberProperties": "Microsoft.ContainerService.FleetMemberProperties", "com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties", @@ -85,12 +97,15 @@ "com.azure.resourcemanager.containerservicefleet.implementation.ContainerServiceFleetManagementClientBuilder": "Microsoft.ContainerService", "com.azure.resourcemanager.containerservicefleet.implementation.models.AutoUpgradeProfileListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.containerservicefleet.implementation.models.FleetListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.containerservicefleet.implementation.models.FleetManagedNamespaceListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.containerservicefleet.implementation.models.FleetMemberListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.containerservicefleet.implementation.models.FleetUpdateStrategyListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.containerservicefleet.implementation.models.GateListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.containerservicefleet.implementation.models.OperationListResult": "Azure.ResourceManager.CommonTypes.OperationListResult", "com.azure.resourcemanager.containerservicefleet.implementation.models.UpdateRunListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.containerservicefleet.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType", + "com.azure.resourcemanager.containerservicefleet.models.AdoptionPolicy": "Microsoft.ContainerService.AdoptionPolicy", + "com.azure.resourcemanager.containerservicefleet.models.Affinity": "Placement.V1.Affinity", "com.azure.resourcemanager.containerservicefleet.models.AgentProfile": "Microsoft.ContainerService.AgentProfile", "com.azure.resourcemanager.containerservicefleet.models.ApiServerAccessProfile": "Microsoft.ContainerService.APIServerAccessProfile", "com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeLastTriggerStatus": "Microsoft.ContainerService.AutoUpgradeLastTriggerStatus", @@ -98,8 +113,16 @@ "com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeNodeImageSelectionType": "Microsoft.ContainerService.AutoUpgradeNodeImageSelectionType", "com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeProfileProvisioningState": "Microsoft.ContainerService.AutoUpgradeProfileProvisioningState", "com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeProfileStatus": "Microsoft.ContainerService.AutoUpgradeProfileStatus", + "com.azure.resourcemanager.containerservicefleet.models.ClusterAffinity": "Placement.V1.ClusterAffinity", + "com.azure.resourcemanager.containerservicefleet.models.ClusterResourcePlacementSpec": "Placement.V1.ClusterResourcePlacementSpec", + "com.azure.resourcemanager.containerservicefleet.models.ClusterSelector": "Placement.V1.ClusterSelector", + "com.azure.resourcemanager.containerservicefleet.models.ClusterSelectorTerm": "Placement.V1.ClusterSelectorTerm", + "com.azure.resourcemanager.containerservicefleet.models.DeletePolicy": "Microsoft.ContainerService.DeletePolicy", "com.azure.resourcemanager.containerservicefleet.models.FleetCredentialResult": "Microsoft.ContainerService.FleetCredentialResult", "com.azure.resourcemanager.containerservicefleet.models.FleetHubProfile": "Microsoft.ContainerService.FleetHubProfile", + "com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespacePatch": "Microsoft.ContainerService.FleetManagedNamespacePatch", + "com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceProvisioningState": "Microsoft.ContainerService.FleetManagedNamespaceProvisioningState", + "com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceStatus": "Microsoft.ContainerService.FleetManagedNamespaceStatus", "com.azure.resourcemanager.containerservicefleet.models.FleetMemberProvisioningState": "Microsoft.ContainerService.FleetMemberProvisioningState", "com.azure.resourcemanager.containerservicefleet.models.FleetMemberStatus": "Microsoft.ContainerService.FleetMemberStatus", "com.azure.resourcemanager.containerservicefleet.models.FleetMemberUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel", @@ -114,22 +137,40 @@ "com.azure.resourcemanager.containerservicefleet.models.GateState": "Microsoft.ContainerService.GateState", "com.azure.resourcemanager.containerservicefleet.models.GateTarget": "Microsoft.ContainerService.GateTarget", "com.azure.resourcemanager.containerservicefleet.models.GateType": "Microsoft.ContainerService.GateType", + "com.azure.resourcemanager.containerservicefleet.models.LabelSelector": "Meta.V1.LabelSelector", + "com.azure.resourcemanager.containerservicefleet.models.LabelSelectorOperator": "Meta.V1.LabelSelectorOperator", + "com.azure.resourcemanager.containerservicefleet.models.LabelSelectorRequirement": "Meta.V1.LabelSelectorRequirement", "com.azure.resourcemanager.containerservicefleet.models.ManagedClusterUpdate": "Microsoft.ContainerService.ManagedClusterUpdate", "com.azure.resourcemanager.containerservicefleet.models.ManagedClusterUpgradeSpec": "Microsoft.ContainerService.ManagedClusterUpgradeSpec", "com.azure.resourcemanager.containerservicefleet.models.ManagedClusterUpgradeType": "Microsoft.ContainerService.ManagedClusterUpgradeType", + "com.azure.resourcemanager.containerservicefleet.models.ManagedNamespaceProperties": "Microsoft.ContainerService.ManagedNamespaceProperties", "com.azure.resourcemanager.containerservicefleet.models.ManagedServiceIdentity": "Azure.ResourceManager.Legacy.ManagedServiceIdentityV4", "com.azure.resourcemanager.containerservicefleet.models.ManagedServiceIdentityType": "Azure.ResourceManager.Legacy.ManagedServiceIdentityType", "com.azure.resourcemanager.containerservicefleet.models.MemberUpdateStatus": "Microsoft.ContainerService.MemberUpdateStatus", + "com.azure.resourcemanager.containerservicefleet.models.NetworkPolicy": "Microsoft.ContainerService.NetworkPolicy", "com.azure.resourcemanager.containerservicefleet.models.NodeImageSelection": "Microsoft.ContainerService.NodeImageSelection", "com.azure.resourcemanager.containerservicefleet.models.NodeImageSelectionStatus": "Microsoft.ContainerService.NodeImageSelectionStatus", "com.azure.resourcemanager.containerservicefleet.models.NodeImageSelectionType": "Microsoft.ContainerService.NodeImageSelectionType", "com.azure.resourcemanager.containerservicefleet.models.NodeImageVersion": "Microsoft.ContainerService.NodeImageVersion", "com.azure.resourcemanager.containerservicefleet.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay", "com.azure.resourcemanager.containerservicefleet.models.Origin": "Azure.ResourceManager.CommonTypes.Origin", + "com.azure.resourcemanager.containerservicefleet.models.PlacementPolicy": "Placement.V1.PlacementPolicy", + "com.azure.resourcemanager.containerservicefleet.models.PlacementProfile": "Microsoft.ContainerService.PlacementProfile", + "com.azure.resourcemanager.containerservicefleet.models.PlacementType": "Placement.V1.PlacementType", + "com.azure.resourcemanager.containerservicefleet.models.PolicyRule": "Microsoft.ContainerService.PolicyRule", + "com.azure.resourcemanager.containerservicefleet.models.PropagationPolicy": "Microsoft.ContainerService.PropagationPolicy", + "com.azure.resourcemanager.containerservicefleet.models.PropagationType": "Microsoft.ContainerService.PropagationType", + "com.azure.resourcemanager.containerservicefleet.models.PropertySelector": "Placement.V1.PropertySelector", + "com.azure.resourcemanager.containerservicefleet.models.PropertySelectorOperator": "Placement.V1.PropertySelectorOperator", + "com.azure.resourcemanager.containerservicefleet.models.PropertySelectorRequirement": "Placement.V1.PropertySelectorRequirement", + "com.azure.resourcemanager.containerservicefleet.models.ResourceQuota": "Microsoft.ContainerService.ResourceQuota", "com.azure.resourcemanager.containerservicefleet.models.SkipProperties": "Microsoft.ContainerService.SkipProperties", "com.azure.resourcemanager.containerservicefleet.models.SkipTarget": "Microsoft.ContainerService.SkipTarget", + "com.azure.resourcemanager.containerservicefleet.models.TaintEffect": "Core.V1.TaintEffect", "com.azure.resourcemanager.containerservicefleet.models.TargetType": "Microsoft.ContainerService.TargetType", "com.azure.resourcemanager.containerservicefleet.models.Timing": "Microsoft.ContainerService.Timing", + "com.azure.resourcemanager.containerservicefleet.models.Toleration": "Placement.V1.Toleration", + "com.azure.resourcemanager.containerservicefleet.models.TolerationOperator": "Core.V1.TolerationOperator", "com.azure.resourcemanager.containerservicefleet.models.UpdateGroup": "Microsoft.ContainerService.UpdateGroup", "com.azure.resourcemanager.containerservicefleet.models.UpdateGroupStatus": "Microsoft.ContainerService.UpdateGroupStatus", "com.azure.resourcemanager.containerservicefleet.models.UpdateRunGateStatus": "Microsoft.ContainerService.UpdateRunGateStatus", diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/azure-resourcemanager-containerservicefleet_metadata.json b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/azure-resourcemanager-containerservicefleet_metadata.json index 2febbab01bc6..bc5e437a199f 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/azure-resourcemanager-containerservicefleet_metadata.json +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/azure-resourcemanager-containerservicefleet_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersion":"2025-04-01-preview","crossLanguageDefinitions":{"com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfileOperationsClient":"Microsoft.ContainerService.AutoUpgradeProfileOperations","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfileOperationsClient.beginGenerateUpdateRun":"Microsoft.ContainerService.AutoUpgradeProfileOperations.generateUpdateRun","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfileOperationsClient.generateUpdateRun":"Microsoft.ContainerService.AutoUpgradeProfileOperations.generateUpdateRun","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient":"Microsoft.ContainerService.AutoUpgradeProfiles","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.beginCreateOrUpdate":"Microsoft.ContainerService.AutoUpgradeProfiles.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.beginDelete":"Microsoft.ContainerService.AutoUpgradeProfiles.delete","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.createOrUpdate":"Microsoft.ContainerService.AutoUpgradeProfiles.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.delete":"Microsoft.ContainerService.AutoUpgradeProfiles.delete","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.get":"Microsoft.ContainerService.AutoUpgradeProfiles.get","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.getWithResponse":"Microsoft.ContainerService.AutoUpgradeProfiles.get","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.listByFleet":"Microsoft.ContainerService.AutoUpgradeProfiles.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.ContainerServiceFleetManagementClient":"Microsoft.ContainerService","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient":"Microsoft.ContainerService.FleetMembers","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.beginCreate":"Microsoft.ContainerService.FleetMembers.create","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.beginDelete":"Microsoft.ContainerService.FleetMembers.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.beginUpdateAsync":"Microsoft.ContainerService.FleetMembers.updateAsync","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.create":"Microsoft.ContainerService.FleetMembers.create","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.delete":"Microsoft.ContainerService.FleetMembers.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.get":"Microsoft.ContainerService.FleetMembers.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.getWithResponse":"Microsoft.ContainerService.FleetMembers.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.listByFleet":"Microsoft.ContainerService.FleetMembers.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.updateAsync":"Microsoft.ContainerService.FleetMembers.updateAsync","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient":"Microsoft.ContainerService.FleetUpdateStrategies","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.beginCreateOrUpdate":"Microsoft.ContainerService.FleetUpdateStrategies.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.beginDelete":"Microsoft.ContainerService.FleetUpdateStrategies.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.createOrUpdate":"Microsoft.ContainerService.FleetUpdateStrategies.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.delete":"Microsoft.ContainerService.FleetUpdateStrategies.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.get":"Microsoft.ContainerService.FleetUpdateStrategies.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.getWithResponse":"Microsoft.ContainerService.FleetUpdateStrategies.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.listByFleet":"Microsoft.ContainerService.FleetUpdateStrategies.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient":"Microsoft.ContainerService.Fleets","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.beginCreate":"Microsoft.ContainerService.Fleets.create","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.beginDelete":"Microsoft.ContainerService.Fleets.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.beginUpdateAsync":"Microsoft.ContainerService.Fleets.updateAsync","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.create":"Microsoft.ContainerService.Fleets.create","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.delete":"Microsoft.ContainerService.Fleets.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.getByResourceGroup":"Microsoft.ContainerService.Fleets.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.getByResourceGroupWithResponse":"Microsoft.ContainerService.Fleets.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.list":"Microsoft.ContainerService.Fleets.listBySubscription","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.listByResourceGroup":"Microsoft.ContainerService.Fleets.listByResourceGroup","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.listCredentials":"Microsoft.ContainerService.Fleets.listCredentials","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.listCredentialsWithResponse":"Microsoft.ContainerService.Fleets.listCredentials","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.updateAsync":"Microsoft.ContainerService.Fleets.updateAsync","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient":"Microsoft.ContainerService.Gates","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.beginUpdate":"Microsoft.ContainerService.Gates.update","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.get":"Microsoft.ContainerService.Gates.get","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.getWithResponse":"Microsoft.ContainerService.Gates.get","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.listByFleet":"Microsoft.ContainerService.Gates.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.update":"Microsoft.ContainerService.Gates.update","com.azure.resourcemanager.containerservicefleet.fluent.OperationsClient":"Microsoft.ContainerService.Operations","com.azure.resourcemanager.containerservicefleet.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient":"Microsoft.ContainerService.UpdateRuns","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginCreateOrUpdate":"Microsoft.ContainerService.UpdateRuns.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginDelete":"Microsoft.ContainerService.UpdateRuns.delete","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginSkip":"Microsoft.ContainerService.UpdateRuns.skip","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginStart":"Microsoft.ContainerService.UpdateRuns.start","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginStop":"Microsoft.ContainerService.UpdateRuns.stop","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.createOrUpdate":"Microsoft.ContainerService.UpdateRuns.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.delete":"Microsoft.ContainerService.UpdateRuns.delete","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.get":"Microsoft.ContainerService.UpdateRuns.get","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.getWithResponse":"Microsoft.ContainerService.UpdateRuns.get","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.listByFleet":"Microsoft.ContainerService.UpdateRuns.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.skip":"Microsoft.ContainerService.UpdateRuns.skip","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.start":"Microsoft.ContainerService.UpdateRuns.start","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.stop":"Microsoft.ContainerService.UpdateRuns.stop","com.azure.resourcemanager.containerservicefleet.fluent.models.AutoUpgradeProfileInner":"Microsoft.ContainerService.AutoUpgradeProfile","com.azure.resourcemanager.containerservicefleet.fluent.models.AutoUpgradeProfileProperties":"Microsoft.ContainerService.AutoUpgradeProfileProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetCredentialResultsInner":"Microsoft.ContainerService.FleetCredentialResults","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetInner":"Microsoft.ContainerService.Fleet","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberInner":"Microsoft.ContainerService.FleetMember","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberProperties":"Microsoft.ContainerService.FleetMemberProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetProperties":"Microsoft.ContainerService.FleetProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetUpdateStrategyInner":"Microsoft.ContainerService.FleetUpdateStrategy","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetUpdateStrategyProperties":"Microsoft.ContainerService.FleetUpdateStrategyProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.GateInner":"Microsoft.ContainerService.Gate","com.azure.resourcemanager.containerservicefleet.fluent.models.GateProperties":"Microsoft.ContainerService.GateProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.GenerateResponseInner":"Microsoft.ContainerService.GenerateResponse","com.azure.resourcemanager.containerservicefleet.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.containerservicefleet.fluent.models.UpdateRunInner":"Microsoft.ContainerService.UpdateRun","com.azure.resourcemanager.containerservicefleet.fluent.models.UpdateRunProperties":"Microsoft.ContainerService.UpdateRunProperties","com.azure.resourcemanager.containerservicefleet.implementation.ContainerServiceFleetManagementClientBuilder":"Microsoft.ContainerService","com.azure.resourcemanager.containerservicefleet.implementation.models.AutoUpgradeProfileListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.FleetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.FleetMemberListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.FleetUpdateStrategyListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.GateListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.UpdateRunListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.containerservicefleet.models.AgentProfile":"Microsoft.ContainerService.AgentProfile","com.azure.resourcemanager.containerservicefleet.models.ApiServerAccessProfile":"Microsoft.ContainerService.APIServerAccessProfile","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeLastTriggerStatus":"Microsoft.ContainerService.AutoUpgradeLastTriggerStatus","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeNodeImageSelection":"Microsoft.ContainerService.AutoUpgradeNodeImageSelection","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeNodeImageSelectionType":"Microsoft.ContainerService.AutoUpgradeNodeImageSelectionType","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeProfileProvisioningState":"Microsoft.ContainerService.AutoUpgradeProfileProvisioningState","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeProfileStatus":"Microsoft.ContainerService.AutoUpgradeProfileStatus","com.azure.resourcemanager.containerservicefleet.models.FleetCredentialResult":"Microsoft.ContainerService.FleetCredentialResult","com.azure.resourcemanager.containerservicefleet.models.FleetHubProfile":"Microsoft.ContainerService.FleetHubProfile","com.azure.resourcemanager.containerservicefleet.models.FleetMemberProvisioningState":"Microsoft.ContainerService.FleetMemberProvisioningState","com.azure.resourcemanager.containerservicefleet.models.FleetMemberStatus":"Microsoft.ContainerService.FleetMemberStatus","com.azure.resourcemanager.containerservicefleet.models.FleetMemberUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.containerservicefleet.models.FleetPatch":"Microsoft.ContainerService.FleetPatch","com.azure.resourcemanager.containerservicefleet.models.FleetProvisioningState":"Microsoft.ContainerService.FleetProvisioningState","com.azure.resourcemanager.containerservicefleet.models.FleetStatus":"Microsoft.ContainerService.FleetStatus","com.azure.resourcemanager.containerservicefleet.models.FleetUpdateStrategyProvisioningState":"Microsoft.ContainerService.FleetUpdateStrategyProvisioningState","com.azure.resourcemanager.containerservicefleet.models.GateConfiguration":"Microsoft.ContainerService.GateConfiguration","com.azure.resourcemanager.containerservicefleet.models.GatePatch":"Microsoft.ContainerService.GatePatch","com.azure.resourcemanager.containerservicefleet.models.GatePatchProperties":"Microsoft.ContainerService.GatePatchProperties","com.azure.resourcemanager.containerservicefleet.models.GateProvisioningState":"Microsoft.ContainerService.GateProvisioningState","com.azure.resourcemanager.containerservicefleet.models.GateState":"Microsoft.ContainerService.GateState","com.azure.resourcemanager.containerservicefleet.models.GateTarget":"Microsoft.ContainerService.GateTarget","com.azure.resourcemanager.containerservicefleet.models.GateType":"Microsoft.ContainerService.GateType","com.azure.resourcemanager.containerservicefleet.models.ManagedClusterUpdate":"Microsoft.ContainerService.ManagedClusterUpdate","com.azure.resourcemanager.containerservicefleet.models.ManagedClusterUpgradeSpec":"Microsoft.ContainerService.ManagedClusterUpgradeSpec","com.azure.resourcemanager.containerservicefleet.models.ManagedClusterUpgradeType":"Microsoft.ContainerService.ManagedClusterUpgradeType","com.azure.resourcemanager.containerservicefleet.models.ManagedServiceIdentity":"Azure.ResourceManager.Legacy.ManagedServiceIdentityV4","com.azure.resourcemanager.containerservicefleet.models.ManagedServiceIdentityType":"Azure.ResourceManager.Legacy.ManagedServiceIdentityType","com.azure.resourcemanager.containerservicefleet.models.MemberUpdateStatus":"Microsoft.ContainerService.MemberUpdateStatus","com.azure.resourcemanager.containerservicefleet.models.NodeImageSelection":"Microsoft.ContainerService.NodeImageSelection","com.azure.resourcemanager.containerservicefleet.models.NodeImageSelectionStatus":"Microsoft.ContainerService.NodeImageSelectionStatus","com.azure.resourcemanager.containerservicefleet.models.NodeImageSelectionType":"Microsoft.ContainerService.NodeImageSelectionType","com.azure.resourcemanager.containerservicefleet.models.NodeImageVersion":"Microsoft.ContainerService.NodeImageVersion","com.azure.resourcemanager.containerservicefleet.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.containerservicefleet.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.containerservicefleet.models.SkipProperties":"Microsoft.ContainerService.SkipProperties","com.azure.resourcemanager.containerservicefleet.models.SkipTarget":"Microsoft.ContainerService.SkipTarget","com.azure.resourcemanager.containerservicefleet.models.TargetType":"Microsoft.ContainerService.TargetType","com.azure.resourcemanager.containerservicefleet.models.Timing":"Microsoft.ContainerService.Timing","com.azure.resourcemanager.containerservicefleet.models.UpdateGroup":"Microsoft.ContainerService.UpdateGroup","com.azure.resourcemanager.containerservicefleet.models.UpdateGroupStatus":"Microsoft.ContainerService.UpdateGroupStatus","com.azure.resourcemanager.containerservicefleet.models.UpdateRunGateStatus":"Microsoft.ContainerService.UpdateRunGateStatus","com.azure.resourcemanager.containerservicefleet.models.UpdateRunGateTargetProperties":"Microsoft.ContainerService.UpdateRunGateTargetProperties","com.azure.resourcemanager.containerservicefleet.models.UpdateRunProvisioningState":"Microsoft.ContainerService.UpdateRunProvisioningState","com.azure.resourcemanager.containerservicefleet.models.UpdateRunStatus":"Microsoft.ContainerService.UpdateRunStatus","com.azure.resourcemanager.containerservicefleet.models.UpdateRunStrategy":"Microsoft.ContainerService.UpdateRunStrategy","com.azure.resourcemanager.containerservicefleet.models.UpdateStage":"Microsoft.ContainerService.UpdateStage","com.azure.resourcemanager.containerservicefleet.models.UpdateStageStatus":"Microsoft.ContainerService.UpdateStageStatus","com.azure.resourcemanager.containerservicefleet.models.UpdateState":"Microsoft.ContainerService.UpdateState","com.azure.resourcemanager.containerservicefleet.models.UpdateStatus":"Microsoft.ContainerService.UpdateStatus","com.azure.resourcemanager.containerservicefleet.models.UpgradeChannel":"Microsoft.ContainerService.UpgradeChannel","com.azure.resourcemanager.containerservicefleet.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.containerservicefleet.models.WaitStatus":"Microsoft.ContainerService.WaitStatus"},"generatedFiles":["src/main/java/com/azure/resourcemanager/containerservicefleet/ContainerServiceFleetManager.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/AutoUpgradeProfileOperationsClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/AutoUpgradeProfilesClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/ContainerServiceFleetManagementClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetMembersClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetUpdateStrategiesClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetsClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/GatesClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/UpdateRunsClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetCredentialResultsInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberUpdateProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/GateInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/GateProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/GenerateResponseInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/package-info.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileOperationsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetCredentialResultsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMemberImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategyImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/GateImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/GatesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/GatesImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/GenerateResponseImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/UpdateRunImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/UpdateRunsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/UpdateRunsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/AutoUpgradeProfileListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetMemberListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetUpdateStrategyListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/GateListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/UpdateRunListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/package-info.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ActionType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AgentProfile.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ApiServerAccessProfile.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeLastTriggerStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeNodeImageSelection.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeNodeImageSelectionType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfile.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfileOperations.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfileProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfileStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfiles.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Fleet.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetCredentialResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetCredentialResults.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetHubProfile.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMember.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMemberProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMemberStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMemberUpdate.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMembers.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetPatch.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetUpdateStrategies.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetUpdateStrategy.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetUpdateStrategyProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Fleets.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Gate.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateConfiguration.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GatePatch.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GatePatchProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateTarget.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Gates.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GenerateResponse.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedClusterUpdate.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedClusterUpgradeSpec.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedClusterUpgradeType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/MemberUpdateStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/NodeImageSelection.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/NodeImageSelectionStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/NodeImageSelectionType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/NodeImageVersion.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Operation.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Operations.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Origin.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/SkipProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/SkipTarget.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/TargetType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Timing.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateGroup.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateGroupStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRun.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunGateStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunGateTargetProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunStrategy.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRuns.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateStage.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateStageStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpgradeChannel.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/WaitStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/package-info.java","src/main/java/com/azure/resourcemanager/containerservicefleet/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersion":"2025-08-01-preview","crossLanguageDefinitions":{"com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfileOperationsClient":"Microsoft.ContainerService.AutoUpgradeProfileOperations","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfileOperationsClient.beginGenerateUpdateRun":"Microsoft.ContainerService.AutoUpgradeProfileOperations.generateUpdateRun","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfileOperationsClient.generateUpdateRun":"Microsoft.ContainerService.AutoUpgradeProfileOperations.generateUpdateRun","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient":"Microsoft.ContainerService.AutoUpgradeProfiles","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.beginCreateOrUpdate":"Microsoft.ContainerService.AutoUpgradeProfiles.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.beginDelete":"Microsoft.ContainerService.AutoUpgradeProfiles.delete","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.createOrUpdate":"Microsoft.ContainerService.AutoUpgradeProfiles.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.delete":"Microsoft.ContainerService.AutoUpgradeProfiles.delete","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.get":"Microsoft.ContainerService.AutoUpgradeProfiles.get","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.getWithResponse":"Microsoft.ContainerService.AutoUpgradeProfiles.get","com.azure.resourcemanager.containerservicefleet.fluent.AutoUpgradeProfilesClient.listByFleet":"Microsoft.ContainerService.AutoUpgradeProfiles.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.ContainerServiceFleetManagementClient":"Microsoft.ContainerService","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient":"Microsoft.ContainerService.FleetManagedNamespaces","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.beginCreateOrUpdate":"Microsoft.ContainerService.FleetManagedNamespaces.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.beginDelete":"Microsoft.ContainerService.FleetManagedNamespaces.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.beginUpdate":"Microsoft.ContainerService.FleetManagedNamespaces.update","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.createOrUpdate":"Microsoft.ContainerService.FleetManagedNamespaces.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.delete":"Microsoft.ContainerService.FleetManagedNamespaces.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.get":"Microsoft.ContainerService.FleetManagedNamespaces.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.getWithResponse":"Microsoft.ContainerService.FleetManagedNamespaces.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.listByFleet":"Microsoft.ContainerService.FleetManagedNamespaces.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.FleetManagedNamespacesClient.update":"Microsoft.ContainerService.FleetManagedNamespaces.update","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient":"Microsoft.ContainerService.FleetMembers","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.beginCreate":"Microsoft.ContainerService.FleetMembers.create","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.beginDelete":"Microsoft.ContainerService.FleetMembers.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.beginUpdateAsync":"Microsoft.ContainerService.FleetMembers.updateAsync","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.create":"Microsoft.ContainerService.FleetMembers.create","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.delete":"Microsoft.ContainerService.FleetMembers.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.get":"Microsoft.ContainerService.FleetMembers.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.getWithResponse":"Microsoft.ContainerService.FleetMembers.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.listByFleet":"Microsoft.ContainerService.FleetMembers.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.FleetMembersClient.updateAsync":"Microsoft.ContainerService.FleetMembers.updateAsync","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient":"Microsoft.ContainerService.FleetUpdateStrategies","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.beginCreateOrUpdate":"Microsoft.ContainerService.FleetUpdateStrategies.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.beginDelete":"Microsoft.ContainerService.FleetUpdateStrategies.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.createOrUpdate":"Microsoft.ContainerService.FleetUpdateStrategies.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.delete":"Microsoft.ContainerService.FleetUpdateStrategies.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.get":"Microsoft.ContainerService.FleetUpdateStrategies.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.getWithResponse":"Microsoft.ContainerService.FleetUpdateStrategies.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetUpdateStrategiesClient.listByFleet":"Microsoft.ContainerService.FleetUpdateStrategies.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient":"Microsoft.ContainerService.Fleets","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.beginCreate":"Microsoft.ContainerService.Fleets.create","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.beginDelete":"Microsoft.ContainerService.Fleets.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.beginUpdateAsync":"Microsoft.ContainerService.Fleets.updateAsync","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.create":"Microsoft.ContainerService.Fleets.create","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.delete":"Microsoft.ContainerService.Fleets.delete","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.getByResourceGroup":"Microsoft.ContainerService.Fleets.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.getByResourceGroupWithResponse":"Microsoft.ContainerService.Fleets.get","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.list":"Microsoft.ContainerService.Fleets.listBySubscription","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.listByResourceGroup":"Microsoft.ContainerService.Fleets.listByResourceGroup","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.listCredentials":"Microsoft.ContainerService.Fleets.listCredentials","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.listCredentialsWithResponse":"Microsoft.ContainerService.Fleets.listCredentials","com.azure.resourcemanager.containerservicefleet.fluent.FleetsClient.updateAsync":"Microsoft.ContainerService.Fleets.updateAsync","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient":"Microsoft.ContainerService.Gates","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.beginUpdate":"Microsoft.ContainerService.Gates.update","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.get":"Microsoft.ContainerService.Gates.get","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.getWithResponse":"Microsoft.ContainerService.Gates.get","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.listByFleet":"Microsoft.ContainerService.Gates.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.GatesClient.update":"Microsoft.ContainerService.Gates.update","com.azure.resourcemanager.containerservicefleet.fluent.OperationsClient":"Microsoft.ContainerService.Operations","com.azure.resourcemanager.containerservicefleet.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient":"Microsoft.ContainerService.UpdateRuns","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginCreateOrUpdate":"Microsoft.ContainerService.UpdateRuns.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginDelete":"Microsoft.ContainerService.UpdateRuns.delete","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginSkip":"Microsoft.ContainerService.UpdateRuns.skip","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginStart":"Microsoft.ContainerService.UpdateRuns.start","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.beginStop":"Microsoft.ContainerService.UpdateRuns.stop","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.createOrUpdate":"Microsoft.ContainerService.UpdateRuns.createOrUpdate","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.delete":"Microsoft.ContainerService.UpdateRuns.delete","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.get":"Microsoft.ContainerService.UpdateRuns.get","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.getWithResponse":"Microsoft.ContainerService.UpdateRuns.get","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.listByFleet":"Microsoft.ContainerService.UpdateRuns.listByFleet","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.skip":"Microsoft.ContainerService.UpdateRuns.skip","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.start":"Microsoft.ContainerService.UpdateRuns.start","com.azure.resourcemanager.containerservicefleet.fluent.UpdateRunsClient.stop":"Microsoft.ContainerService.UpdateRuns.stop","com.azure.resourcemanager.containerservicefleet.fluent.models.AutoUpgradeProfileInner":"Microsoft.ContainerService.AutoUpgradeProfile","com.azure.resourcemanager.containerservicefleet.fluent.models.AutoUpgradeProfileProperties":"Microsoft.ContainerService.AutoUpgradeProfileProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetCredentialResultsInner":"Microsoft.ContainerService.FleetCredentialResults","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetInner":"Microsoft.ContainerService.Fleet","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceInner":"Microsoft.ContainerService.FleetManagedNamespace","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetManagedNamespaceProperties":"Microsoft.ContainerService.FleetManagedNamespaceProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberInner":"Microsoft.ContainerService.FleetMember","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberProperties":"Microsoft.ContainerService.FleetMemberProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetMemberUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetProperties":"Microsoft.ContainerService.FleetProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetUpdateStrategyInner":"Microsoft.ContainerService.FleetUpdateStrategy","com.azure.resourcemanager.containerservicefleet.fluent.models.FleetUpdateStrategyProperties":"Microsoft.ContainerService.FleetUpdateStrategyProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.GateInner":"Microsoft.ContainerService.Gate","com.azure.resourcemanager.containerservicefleet.fluent.models.GateProperties":"Microsoft.ContainerService.GateProperties","com.azure.resourcemanager.containerservicefleet.fluent.models.GenerateResponseInner":"Microsoft.ContainerService.GenerateResponse","com.azure.resourcemanager.containerservicefleet.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.containerservicefleet.fluent.models.UpdateRunInner":"Microsoft.ContainerService.UpdateRun","com.azure.resourcemanager.containerservicefleet.fluent.models.UpdateRunProperties":"Microsoft.ContainerService.UpdateRunProperties","com.azure.resourcemanager.containerservicefleet.implementation.ContainerServiceFleetManagementClientBuilder":"Microsoft.ContainerService","com.azure.resourcemanager.containerservicefleet.implementation.models.AutoUpgradeProfileListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.FleetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.FleetManagedNamespaceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.FleetMemberListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.FleetUpdateStrategyListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.GateListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.containerservicefleet.implementation.models.UpdateRunListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.containerservicefleet.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.containerservicefleet.models.AdoptionPolicy":"Microsoft.ContainerService.AdoptionPolicy","com.azure.resourcemanager.containerservicefleet.models.Affinity":"Placement.V1.Affinity","com.azure.resourcemanager.containerservicefleet.models.AgentProfile":"Microsoft.ContainerService.AgentProfile","com.azure.resourcemanager.containerservicefleet.models.ApiServerAccessProfile":"Microsoft.ContainerService.APIServerAccessProfile","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeLastTriggerStatus":"Microsoft.ContainerService.AutoUpgradeLastTriggerStatus","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeNodeImageSelection":"Microsoft.ContainerService.AutoUpgradeNodeImageSelection","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeNodeImageSelectionType":"Microsoft.ContainerService.AutoUpgradeNodeImageSelectionType","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeProfileProvisioningState":"Microsoft.ContainerService.AutoUpgradeProfileProvisioningState","com.azure.resourcemanager.containerservicefleet.models.AutoUpgradeProfileStatus":"Microsoft.ContainerService.AutoUpgradeProfileStatus","com.azure.resourcemanager.containerservicefleet.models.ClusterAffinity":"Placement.V1.ClusterAffinity","com.azure.resourcemanager.containerservicefleet.models.ClusterResourcePlacementSpec":"Placement.V1.ClusterResourcePlacementSpec","com.azure.resourcemanager.containerservicefleet.models.ClusterSelector":"Placement.V1.ClusterSelector","com.azure.resourcemanager.containerservicefleet.models.ClusterSelectorTerm":"Placement.V1.ClusterSelectorTerm","com.azure.resourcemanager.containerservicefleet.models.DeletePolicy":"Microsoft.ContainerService.DeletePolicy","com.azure.resourcemanager.containerservicefleet.models.FleetCredentialResult":"Microsoft.ContainerService.FleetCredentialResult","com.azure.resourcemanager.containerservicefleet.models.FleetHubProfile":"Microsoft.ContainerService.FleetHubProfile","com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespacePatch":"Microsoft.ContainerService.FleetManagedNamespacePatch","com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceProvisioningState":"Microsoft.ContainerService.FleetManagedNamespaceProvisioningState","com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespaceStatus":"Microsoft.ContainerService.FleetManagedNamespaceStatus","com.azure.resourcemanager.containerservicefleet.models.FleetMemberProvisioningState":"Microsoft.ContainerService.FleetMemberProvisioningState","com.azure.resourcemanager.containerservicefleet.models.FleetMemberStatus":"Microsoft.ContainerService.FleetMemberStatus","com.azure.resourcemanager.containerservicefleet.models.FleetMemberUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.containerservicefleet.models.FleetPatch":"Microsoft.ContainerService.FleetPatch","com.azure.resourcemanager.containerservicefleet.models.FleetProvisioningState":"Microsoft.ContainerService.FleetProvisioningState","com.azure.resourcemanager.containerservicefleet.models.FleetStatus":"Microsoft.ContainerService.FleetStatus","com.azure.resourcemanager.containerservicefleet.models.FleetUpdateStrategyProvisioningState":"Microsoft.ContainerService.FleetUpdateStrategyProvisioningState","com.azure.resourcemanager.containerservicefleet.models.GateConfiguration":"Microsoft.ContainerService.GateConfiguration","com.azure.resourcemanager.containerservicefleet.models.GatePatch":"Microsoft.ContainerService.GatePatch","com.azure.resourcemanager.containerservicefleet.models.GatePatchProperties":"Microsoft.ContainerService.GatePatchProperties","com.azure.resourcemanager.containerservicefleet.models.GateProvisioningState":"Microsoft.ContainerService.GateProvisioningState","com.azure.resourcemanager.containerservicefleet.models.GateState":"Microsoft.ContainerService.GateState","com.azure.resourcemanager.containerservicefleet.models.GateTarget":"Microsoft.ContainerService.GateTarget","com.azure.resourcemanager.containerservicefleet.models.GateType":"Microsoft.ContainerService.GateType","com.azure.resourcemanager.containerservicefleet.models.LabelSelector":"Meta.V1.LabelSelector","com.azure.resourcemanager.containerservicefleet.models.LabelSelectorOperator":"Meta.V1.LabelSelectorOperator","com.azure.resourcemanager.containerservicefleet.models.LabelSelectorRequirement":"Meta.V1.LabelSelectorRequirement","com.azure.resourcemanager.containerservicefleet.models.ManagedClusterUpdate":"Microsoft.ContainerService.ManagedClusterUpdate","com.azure.resourcemanager.containerservicefleet.models.ManagedClusterUpgradeSpec":"Microsoft.ContainerService.ManagedClusterUpgradeSpec","com.azure.resourcemanager.containerservicefleet.models.ManagedClusterUpgradeType":"Microsoft.ContainerService.ManagedClusterUpgradeType","com.azure.resourcemanager.containerservicefleet.models.ManagedNamespaceProperties":"Microsoft.ContainerService.ManagedNamespaceProperties","com.azure.resourcemanager.containerservicefleet.models.ManagedServiceIdentity":"Azure.ResourceManager.Legacy.ManagedServiceIdentityV4","com.azure.resourcemanager.containerservicefleet.models.ManagedServiceIdentityType":"Azure.ResourceManager.Legacy.ManagedServiceIdentityType","com.azure.resourcemanager.containerservicefleet.models.MemberUpdateStatus":"Microsoft.ContainerService.MemberUpdateStatus","com.azure.resourcemanager.containerservicefleet.models.NetworkPolicy":"Microsoft.ContainerService.NetworkPolicy","com.azure.resourcemanager.containerservicefleet.models.NodeImageSelection":"Microsoft.ContainerService.NodeImageSelection","com.azure.resourcemanager.containerservicefleet.models.NodeImageSelectionStatus":"Microsoft.ContainerService.NodeImageSelectionStatus","com.azure.resourcemanager.containerservicefleet.models.NodeImageSelectionType":"Microsoft.ContainerService.NodeImageSelectionType","com.azure.resourcemanager.containerservicefleet.models.NodeImageVersion":"Microsoft.ContainerService.NodeImageVersion","com.azure.resourcemanager.containerservicefleet.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.containerservicefleet.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.containerservicefleet.models.PlacementPolicy":"Placement.V1.PlacementPolicy","com.azure.resourcemanager.containerservicefleet.models.PlacementProfile":"Microsoft.ContainerService.PlacementProfile","com.azure.resourcemanager.containerservicefleet.models.PlacementType":"Placement.V1.PlacementType","com.azure.resourcemanager.containerservicefleet.models.PolicyRule":"Microsoft.ContainerService.PolicyRule","com.azure.resourcemanager.containerservicefleet.models.PropagationPolicy":"Microsoft.ContainerService.PropagationPolicy","com.azure.resourcemanager.containerservicefleet.models.PropagationType":"Microsoft.ContainerService.PropagationType","com.azure.resourcemanager.containerservicefleet.models.PropertySelector":"Placement.V1.PropertySelector","com.azure.resourcemanager.containerservicefleet.models.PropertySelectorOperator":"Placement.V1.PropertySelectorOperator","com.azure.resourcemanager.containerservicefleet.models.PropertySelectorRequirement":"Placement.V1.PropertySelectorRequirement","com.azure.resourcemanager.containerservicefleet.models.ResourceQuota":"Microsoft.ContainerService.ResourceQuota","com.azure.resourcemanager.containerservicefleet.models.SkipProperties":"Microsoft.ContainerService.SkipProperties","com.azure.resourcemanager.containerservicefleet.models.SkipTarget":"Microsoft.ContainerService.SkipTarget","com.azure.resourcemanager.containerservicefleet.models.TaintEffect":"Core.V1.TaintEffect","com.azure.resourcemanager.containerservicefleet.models.TargetType":"Microsoft.ContainerService.TargetType","com.azure.resourcemanager.containerservicefleet.models.Timing":"Microsoft.ContainerService.Timing","com.azure.resourcemanager.containerservicefleet.models.Toleration":"Placement.V1.Toleration","com.azure.resourcemanager.containerservicefleet.models.TolerationOperator":"Core.V1.TolerationOperator","com.azure.resourcemanager.containerservicefleet.models.UpdateGroup":"Microsoft.ContainerService.UpdateGroup","com.azure.resourcemanager.containerservicefleet.models.UpdateGroupStatus":"Microsoft.ContainerService.UpdateGroupStatus","com.azure.resourcemanager.containerservicefleet.models.UpdateRunGateStatus":"Microsoft.ContainerService.UpdateRunGateStatus","com.azure.resourcemanager.containerservicefleet.models.UpdateRunGateTargetProperties":"Microsoft.ContainerService.UpdateRunGateTargetProperties","com.azure.resourcemanager.containerservicefleet.models.UpdateRunProvisioningState":"Microsoft.ContainerService.UpdateRunProvisioningState","com.azure.resourcemanager.containerservicefleet.models.UpdateRunStatus":"Microsoft.ContainerService.UpdateRunStatus","com.azure.resourcemanager.containerservicefleet.models.UpdateRunStrategy":"Microsoft.ContainerService.UpdateRunStrategy","com.azure.resourcemanager.containerservicefleet.models.UpdateStage":"Microsoft.ContainerService.UpdateStage","com.azure.resourcemanager.containerservicefleet.models.UpdateStageStatus":"Microsoft.ContainerService.UpdateStageStatus","com.azure.resourcemanager.containerservicefleet.models.UpdateState":"Microsoft.ContainerService.UpdateState","com.azure.resourcemanager.containerservicefleet.models.UpdateStatus":"Microsoft.ContainerService.UpdateStatus","com.azure.resourcemanager.containerservicefleet.models.UpgradeChannel":"Microsoft.ContainerService.UpgradeChannel","com.azure.resourcemanager.containerservicefleet.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.containerservicefleet.models.WaitStatus":"Microsoft.ContainerService.WaitStatus"},"generatedFiles":["src/main/java/com/azure/resourcemanager/containerservicefleet/ContainerServiceFleetManager.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/AutoUpgradeProfileOperationsClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/AutoUpgradeProfilesClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/ContainerServiceFleetManagementClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetManagedNamespacesClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetMembersClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetUpdateStrategiesClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/FleetsClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/GatesClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/UpdateRunsClient.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/AutoUpgradeProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetCredentialResultsInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetManagedNamespaceInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetManagedNamespaceProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetMemberUpdateProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/FleetUpdateStrategyProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/GateInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/GateProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/GenerateResponseInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunInner.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/UpdateRunProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/containerservicefleet/fluent/package-info.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfileOperationsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/AutoUpgradeProfilesImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ContainerServiceFleetManagementClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetCredentialResultsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespaceImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespacesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetManagedNamespacesImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMemberImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetMembersImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategiesImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetUpdateStrategyImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/FleetsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/GateImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/GatesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/GatesImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/GenerateResponseImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/UpdateRunImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/UpdateRunsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/UpdateRunsImpl.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/AutoUpgradeProfileListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetManagedNamespaceListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetMemberListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/FleetUpdateStrategyListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/GateListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/models/UpdateRunListResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/implementation/package-info.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ActionType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AdoptionPolicy.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Affinity.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AgentProfile.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ApiServerAccessProfile.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeLastTriggerStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeNodeImageSelection.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeNodeImageSelectionType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfile.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfileOperations.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfileProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfileStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/AutoUpgradeProfiles.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterAffinity.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterResourcePlacementSpec.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterSelector.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ClusterSelectorTerm.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/DeletePolicy.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Fleet.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetCredentialResult.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetCredentialResults.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetHubProfile.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespace.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespacePatch.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaceProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaceStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetManagedNamespaces.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMember.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMemberProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMemberStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMemberUpdate.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetMembers.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetPatch.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetUpdateStrategies.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetUpdateStrategy.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/FleetUpdateStrategyProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Fleets.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Gate.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateConfiguration.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GatePatch.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GatePatchProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateTarget.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GateType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Gates.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/GenerateResponse.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelector.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelectorOperator.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/LabelSelectorRequirement.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedClusterUpdate.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedClusterUpgradeSpec.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedClusterUpgradeType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedNamespaceProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/MemberUpdateStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/NetworkPolicy.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/NodeImageSelection.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/NodeImageSelectionStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/NodeImageSelectionType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/NodeImageVersion.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Operation.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Operations.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Origin.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementPolicy.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementProfile.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/PlacementType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/PolicyRule.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropagationPolicy.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropagationType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelector.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelectorOperator.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/PropertySelectorRequirement.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/ResourceQuota.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/SkipProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/SkipTarget.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/TaintEffect.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/TargetType.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Timing.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/Toleration.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/TolerationOperator.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateGroup.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateGroupStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRun.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunGateStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunGateTargetProperties.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRunStrategy.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateRuns.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateStage.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateStageStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateState.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpdateStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UpgradeChannel.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/WaitStatus.java","src/main/java/com/azure/resourcemanager/containerservicefleet/models/package-info.java","src/main/java/com/azure/resourcemanager/containerservicefleet/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservicefleet/proxy-config.json b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservicefleet/proxy-config.json index 0301fb5d89cf..7fe3eb3343a4 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservicefleet/proxy-config.json +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservicefleet/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.containerservicefleet.implementation.AutoUpgradeProfileOperationsClientImpl$AutoUpgradeProfileOperationsService"],["com.azure.resourcemanager.containerservicefleet.implementation.AutoUpgradeProfilesClientImpl$AutoUpgradeProfilesService"],["com.azure.resourcemanager.containerservicefleet.implementation.FleetMembersClientImpl$FleetMembersService"],["com.azure.resourcemanager.containerservicefleet.implementation.FleetUpdateStrategiesClientImpl$FleetUpdateStrategiesService"],["com.azure.resourcemanager.containerservicefleet.implementation.FleetsClientImpl$FleetsService"],["com.azure.resourcemanager.containerservicefleet.implementation.GatesClientImpl$GatesService"],["com.azure.resourcemanager.containerservicefleet.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.containerservicefleet.implementation.UpdateRunsClientImpl$UpdateRunsService"]] \ No newline at end of file +[["com.azure.resourcemanager.containerservicefleet.implementation.AutoUpgradeProfileOperationsClientImpl$AutoUpgradeProfileOperationsService"],["com.azure.resourcemanager.containerservicefleet.implementation.AutoUpgradeProfilesClientImpl$AutoUpgradeProfilesService"],["com.azure.resourcemanager.containerservicefleet.implementation.FleetManagedNamespacesClientImpl$FleetManagedNamespacesService"],["com.azure.resourcemanager.containerservicefleet.implementation.FleetMembersClientImpl$FleetMembersService"],["com.azure.resourcemanager.containerservicefleet.implementation.FleetUpdateStrategiesClientImpl$FleetUpdateStrategiesService"],["com.azure.resourcemanager.containerservicefleet.implementation.FleetsClientImpl$FleetsService"],["com.azure.resourcemanager.containerservicefleet.implementation.GatesClientImpl$GatesService"],["com.azure.resourcemanager.containerservicefleet.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.containerservicefleet.implementation.UpdateRunsClientImpl$UpdateRunsService"]] \ No newline at end of file diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfileOperationsGenerateUpdateRunSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfileOperationsGenerateUpdateRunSamples.java index 74ea4c1305ed..a3792ddd1ceb 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfileOperationsGenerateUpdateRunSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfileOperationsGenerateUpdateRunSamples.java @@ -9,7 +9,7 @@ */ public final class AutoUpgradeProfileOperationsGenerateUpdateRunSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfileOperations_GenerateUpdateRun_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfileOperations_GenerateUpdateRun_MaximumSet_Gen.json */ /** * Sample code: AutoUpgradeProfileOperations_GenerateUpdateRun_MaximumSet. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesCreateOrUpdateSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesCreateOrUpdateSamples.java index d0c4484d8a70..aaec9b31af27 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesCreateOrUpdateSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class AutoUpgradeProfilesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_CreateOrUpdate.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_CreateOrUpdate.json */ /** * Sample code: Create an AutoUpgradeProfile. @@ -32,7 +32,7 @@ public static void createAnAutoUpgradeProfile( } /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Create an AutoUpgradeProfile. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesDeleteSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesDeleteSamples.java index 105cb67b9a1a..46845c619d9c 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesDeleteSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AutoUpgradeProfilesDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_Delete_MaximumSet_Gen.json */ /** * Sample code: Delete an AutoUpgradeProfile resource. - generated by [MaximumSet] rule. @@ -23,7 +23,7 @@ public static void deleteAnAutoUpgradeProfileResourceGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_Delete.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_Delete.json */ /** * Sample code: Delete an AutoUpgradeProfile resource. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesGetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesGetSamples.java index 25df3085df78..37b194fc5118 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesGetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesGetSamples.java @@ -9,7 +9,7 @@ */ public final class AutoUpgradeProfilesGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_Get_MaximumSet_Gen.json */ /** * Sample code: Gets an AutoUpgradeProfile resource. - generated by [MaximumSet] rule. @@ -23,7 +23,7 @@ public static void getsAnAutoUpgradeProfileResourceGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_Get.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_Get.json */ /** * Sample code: Gets an AutoUpgradeProfile resource. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesListByFleetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesListByFleetSamples.java index d76a0169af74..30f81bb9483b 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesListByFleetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfilesListByFleetSamples.java @@ -9,7 +9,7 @@ */ public final class AutoUpgradeProfilesListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_ListByFleet.json */ /** * Sample code: Lists the AutoUpgradeProfile resources by fleet. @@ -22,7 +22,7 @@ public static void listsTheAutoUpgradeProfileResourcesByFleet( } /* - * x-ms-original-file: 2025-04-01-preview/AutoUpgradeProfiles_ListByFleet_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/AutoUpgradeProfiles_ListByFleet_MaximumSet_Gen.json */ /** * Sample code: Lists the AutoUpgradeProfile resources by fleet. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesCreateOrUpdateSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0ec79893edaa --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesCreateOrUpdateSamples.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +import com.azure.resourcemanager.containerservicefleet.models.AdoptionPolicy; +import com.azure.resourcemanager.containerservicefleet.models.Affinity; +import com.azure.resourcemanager.containerservicefleet.models.ClusterAffinity; +import com.azure.resourcemanager.containerservicefleet.models.ClusterResourcePlacementSpec; +import com.azure.resourcemanager.containerservicefleet.models.ClusterSelector; +import com.azure.resourcemanager.containerservicefleet.models.ClusterSelectorTerm; +import com.azure.resourcemanager.containerservicefleet.models.DeletePolicy; +import com.azure.resourcemanager.containerservicefleet.models.LabelSelector; +import com.azure.resourcemanager.containerservicefleet.models.LabelSelectorOperator; +import com.azure.resourcemanager.containerservicefleet.models.LabelSelectorRequirement; +import com.azure.resourcemanager.containerservicefleet.models.ManagedNamespaceProperties; +import com.azure.resourcemanager.containerservicefleet.models.NetworkPolicy; +import com.azure.resourcemanager.containerservicefleet.models.PlacementPolicy; +import com.azure.resourcemanager.containerservicefleet.models.PlacementProfile; +import com.azure.resourcemanager.containerservicefleet.models.PlacementType; +import com.azure.resourcemanager.containerservicefleet.models.PolicyRule; +import com.azure.resourcemanager.containerservicefleet.models.PropagationPolicy; +import com.azure.resourcemanager.containerservicefleet.models.PropagationType; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelector; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelectorOperator; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelectorRequirement; +import com.azure.resourcemanager.containerservicefleet.models.ResourceQuota; +import com.azure.resourcemanager.containerservicefleet.models.TaintEffect; +import com.azure.resourcemanager.containerservicefleet.models.Toleration; +import com.azure.resourcemanager.containerservicefleet.models.TolerationOperator; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for FleetManagedNamespaces CreateOrUpdate. + */ +public final class FleetManagedNamespacesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_CreateOrUpdate.json + */ + /** + * Sample code: FleetManagedNamespaces_CreateOrUpdate. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesCreateOrUpdate( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.fleetManagedNamespaces() + .define("namespace1") + .withRegion("eastus") + .withExistingFleet("rgfleets", "fleet1") + .withManagedNamespaceProperties(new ManagedNamespaceProperties() + .withLabels(mapOf("key1", "fakeTokenPlaceholder")) + .withAnnotations(mapOf("key2", "fakeTokenPlaceholder")) + .withDefaultResourceQuota(new ResourceQuota().withCpuRequest("1") + .withCpuLimit("1") + .withMemoryRequest("10Gi") + .withMemoryLimit("32Gi")) + .withDefaultNetworkPolicy( + new NetworkPolicy().withIngress(PolicyRule.ALLOW_SAME_NAMESPACE).withEgress(PolicyRule.ALLOW_ALL))) + .withAdoptionPolicy(AdoptionPolicy.NEVER) + .withDeletePolicy(DeletePolicy.KEEP) + .withPropagationPolicy( + new PropagationPolicy().withType(PropagationType.PLACEMENT) + .withPlacementProfile( + new PlacementProfile() + .withDefaultClusterResourcePlacement( + new ClusterResourcePlacementSpec() + .withPolicy(new PlacementPolicy().withPlacementType(PlacementType.PICK_ALL) + .withAffinity(new Affinity().withClusterAffinity( + new ClusterAffinity().withRequiredDuringSchedulingIgnoredDuringExecution( + new ClusterSelector() + .withClusterSelectorTerms(Arrays.asList(new ClusterSelectorTerm() + .withLabelSelector( + new LabelSelector().withMatchLabels(mapOf("gpu", "true")) + .withMatchExpressions( + Arrays.asList(new LabelSelectorRequirement() + .withKey("fakeTokenPlaceholder") + .withOperator(LabelSelectorOperator.IN) + .withValues(Arrays.asList("production1", + "production2"))))) + .withPropertySelector( + new PropertySelector().withMatchExpressions(Arrays.asList( + new PropertySelectorRequirement().withName("zones") + .withOperator(PropertySelectorOperator.GT) + .withValues(Arrays.asList("1")))))))))) + .withTolerations(Arrays.asList(new Toleration().withKey("fakeTokenPlaceholder") + .withOperator(TolerationOperator.EXISTS) + .withValue("true") + .withEffect(TaintEffect.NO_SCHEDULE))))))) + .create(); + } + + // 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/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesDeleteSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesDeleteSamples.java new file mode 100644 index 000000000000..ad4956740b70 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +/** + * Samples for FleetManagedNamespaces Delete. + */ +public final class FleetManagedNamespacesDeleteSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_Delete.json + */ + /** + * Sample code: FleetManagedNamespaces_Delete. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesDelete( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.fleetManagedNamespaces() + .delete("rgfleets", "fleet1", "namespace1", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesGetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesGetSamples.java new file mode 100644 index 000000000000..61dbcce22fc5 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +/** + * Samples for FleetManagedNamespaces Get. + */ +public final class FleetManagedNamespacesGetSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_Get.json + */ + /** + * Sample code: FleetManagedNamespaces_Get. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesGet( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.fleetManagedNamespaces() + .getWithResponse("rgfleets", "fleet1", "namespace1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesListByFleetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesListByFleetSamples.java new file mode 100644 index 000000000000..49c15ab0c9fd --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesListByFleetSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +/** + * Samples for FleetManagedNamespaces ListByFleet. + */ +public final class FleetManagedNamespacesListByFleetSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_ListByFleet.json + */ + /** + * Sample code: FleetManagedNamespaces_ListByFleet. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesListByFleet( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.fleetManagedNamespaces().listByFleet("rgfleets", "fleet1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesUpdateSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesUpdateSamples.java new file mode 100644 index 000000000000..3f88515c1cd6 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacesUpdateSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespace; + +/** + * Samples for FleetManagedNamespaces Update. + */ +public final class FleetManagedNamespacesUpdateSamples { + /* + * x-ms-original-file: 2025-08-01-preview/FleetManagedNamespaces_Update.json + */ + /** + * Sample code: FleetManagedNamespaces_Update. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void fleetManagedNamespacesUpdate( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + FleetManagedNamespace resource = manager.fleetManagedNamespaces() + .getWithResponse("rgfleets", "fleet1", "namespace1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersCreateSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersCreateSamples.java index 995de82ea909..f34ea112c506 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersCreateSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersCreateSamples.java @@ -9,7 +9,7 @@ */ public final class FleetMembersCreateSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Create.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Create.json */ /** * Sample code: Creates a FleetMember resource with a long running operation. @@ -27,7 +27,7 @@ public static void createsAFleetMemberResourceWithALongRunningOperation( } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Create_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Create_MaximumSet_Gen.json */ /** * Sample code: Creates a FleetMember resource with a long running operation. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersDeleteSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersDeleteSamples.java index 6403a01700a3..fd0c997d5835 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersDeleteSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class FleetMembersDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Delete_MaximumSet_Gen.json */ /** * Sample code: Deletes a FleetMember resource asynchronously with a long running operation. - generated by @@ -23,7 +23,7 @@ public static void deletesAFleetMemberResourceAsynchronouslyWithALongRunningOper } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Delete.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Delete.json */ /** * Sample code: Deletes a FleetMember resource asynchronously with a long running operation. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersGetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersGetSamples.java index a58a32817835..aedacba70627 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersGetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersGetSamples.java @@ -9,7 +9,7 @@ */ public final class FleetMembersGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Get.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Get.json */ /** * Sample code: Gets a FleetMember resource. @@ -22,7 +22,7 @@ public final class FleetMembersGetSamples { } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Get_MaximumSet_Gen.json */ /** * Sample code: Gets a FleetMember resource. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersListByFleetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersListByFleetSamples.java index 50fd104bee45..6920814ef09d 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersListByFleetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersListByFleetSamples.java @@ -9,7 +9,7 @@ */ public final class FleetMembersListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_ListByFleet_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_ListByFleet_MaximumSet_Gen.json */ /** * Sample code: Lists the members of a Fleet. - generated by [MaximumSet] rule. @@ -22,7 +22,7 @@ public static void listsTheMembersOfAFleetGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_ListByFleet.json */ /** * Sample code: Lists the members of a Fleet. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersUpdateAsyncSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersUpdateAsyncSamples.java index 464b958f8eaf..51bba243e4f2 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersUpdateAsyncSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersUpdateAsyncSamples.java @@ -11,7 +11,7 @@ */ public final class FleetMembersUpdateAsyncSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Update_MaximumSet_Gen.json */ /** * Sample code: Updates a FleetMember resource synchronously. - generated by [MaximumSet] rule. @@ -27,7 +27,7 @@ public static void updatesAFleetMemberResourceSynchronouslyGeneratedByMaximumSet } /* - * x-ms-original-file: 2025-04-01-preview/FleetMembers_Update.json + * x-ms-original-file: 2025-08-01-preview/FleetMembers_Update.json */ /** * Sample code: Updates a FleetMember resource synchronously. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesCreateOrUpdateSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesCreateOrUpdateSamples.java index 878a32e32c34..a7aece0ff0a3 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesCreateOrUpdateSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class FleetUpdateStrategiesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetUpdateStrategies_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetUpdateStrategies_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Create a FleetUpdateStrategy. - generated by [MaximumSet] rule. @@ -37,7 +37,7 @@ public static void createAFleetUpdateStrategyGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/UpdateStrategies_CreateOrUpdate.json + * x-ms-original-file: 2025-08-01-preview/UpdateStrategies_CreateOrUpdate.json */ /** * Sample code: Create a FleetUpdateStrategy. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesDeleteSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesDeleteSamples.java index f474fbf89c23..7d16790bf33b 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesDeleteSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class FleetUpdateStrategiesDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateStrategies_Delete.json + * x-ms-original-file: 2025-08-01-preview/UpdateStrategies_Delete.json */ /** * Sample code: Delete a FleetUpdateStrategy resource. @@ -22,7 +22,7 @@ public static void deleteAFleetUpdateStrategyResource( } /* - * x-ms-original-file: 2025-04-01-preview/FleetUpdateStrategies_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetUpdateStrategies_Delete_MaximumSet_Gen.json */ /** * Sample code: Delete a FleetUpdateStrategy resource. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesGetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesGetSamples.java index c0936a19a620..f6aacd1179c3 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesGetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesGetSamples.java @@ -9,7 +9,7 @@ */ public final class FleetUpdateStrategiesGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/FleetUpdateStrategies_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetUpdateStrategies_Get_MaximumSet_Gen.json */ /** * Sample code: Get a FleetUpdateStrategy resource. - generated by [MaximumSet] rule. @@ -23,7 +23,7 @@ public static void getAFleetUpdateStrategyResourceGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/UpdateStrategies_Get.json + * x-ms-original-file: 2025-08-01-preview/UpdateStrategies_Get.json */ /** * Sample code: Get a FleetUpdateStrategy resource. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesListByFleetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesListByFleetSamples.java index 482feff77b78..0149cc2653e5 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesListByFleetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesListByFleetSamples.java @@ -9,7 +9,7 @@ */ public final class FleetUpdateStrategiesListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateStrategies_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/UpdateStrategies_ListByFleet.json */ /** * Sample code: List the FleetUpdateStrategy resources by fleet. @@ -22,7 +22,7 @@ public static void listTheFleetUpdateStrategyResourcesByFleet( } /* - * x-ms-original-file: 2025-04-01-preview/FleetUpdateStrategies_ListByFleet_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/FleetUpdateStrategies_ListByFleet_MaximumSet_Gen.json */ /** * Sample code: List the FleetUpdateStrategy resources by fleet. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsCreateSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsCreateSamples.java index 5b87820ffa19..e83aab8a275c 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsCreateSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsCreateSamples.java @@ -18,7 +18,7 @@ */ public final class FleetsCreateSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Creates a Fleet resource with a long running operation. - generated by [MaximumSet] rule. @@ -48,7 +48,7 @@ public static void createsAFleetResourceWithALongRunningOperationGeneratedByMaxi } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_CreateOrUpdate.json + * x-ms-original-file: 2025-08-01-preview/Fleets_CreateOrUpdate.json */ /** * Sample code: Creates a Fleet resource with a long running operation. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsDeleteSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsDeleteSamples.java index ef60c928ed29..143798f6f62a 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsDeleteSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Delete.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Delete.json */ /** * Sample code: Deletes a Fleet resource asynchronously with a long running operation. @@ -22,7 +22,7 @@ public static void deletesAFleetResourceAsynchronouslyWithALongRunningOperation( } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Delete_MaximumSet_Gen.json */ /** * Sample code: Deletes a Fleet resource asynchronously with a long running operation. - generated by [MaximumSet] diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsGetByResourceGroupSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsGetByResourceGroupSamples.java index 063471a09971..bd6768bf7466 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsGetByResourceGroupSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Get_MaximumSet_Gen.json */ /** * Sample code: Gets a Fleet resource. - generated by [MaximumSet] rule. @@ -22,7 +22,7 @@ public static void getsAFleetResourceGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Get.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Get.json */ /** * Sample code: Gets a Fleet resource. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListByResourceGroupSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListByResourceGroupSamples.java index 9920cb950796..d4d03dd77d69 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListByResourceGroupSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListByResourceGroup.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListByResourceGroup.json */ /** * Sample code: Lists the Fleet resources in a resource group. @@ -22,7 +22,7 @@ public static void listsTheFleetResourcesInAResourceGroup( } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: Lists the Fleet resources in a resource group. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListCredentialsSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListCredentialsSamples.java index 3ef1466532f8..8fc552f558c7 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListCredentialsSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListCredentialsSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsListCredentialsSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListCredentials_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListCredentials_MaximumSet_Gen.json */ /** * Sample code: Lists the user credentials of a Fleet. - generated by [MaximumSet] rule. @@ -22,7 +22,7 @@ public static void listsTheUserCredentialsOfAFleetGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListCredentialsResult.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListCredentialsResult.json */ /** * Sample code: Lists the user credentials of a Fleet. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListSamples.java index 5eba7abe64b4..5f485623b95f 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsListSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: Lists the Fleet resources in a subscription. - generated by [MaximumSet] rule. @@ -22,7 +22,7 @@ public static void listsTheFleetResourcesInASubscriptionGeneratedByMaximumSetRul } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_ListBySub.json + * x-ms-original-file: 2025-08-01-preview/Fleets_ListBySub.json */ /** * Sample code: Lists the Fleet resources in a subscription. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsUpdateAsyncSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsUpdateAsyncSamples.java index 030bb1dcb628..1d465cb8b72c 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsUpdateAsyncSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsUpdateAsyncSamples.java @@ -16,7 +16,7 @@ */ public final class FleetsUpdateAsyncSamples { /* - * x-ms-original-file: 2025-04-01-preview/Fleets_PatchTags.json + * x-ms-original-file: 2025-08-01-preview/Fleets_PatchTags.json */ /** * Sample code: Update a Fleet. @@ -32,7 +32,7 @@ public final class FleetsUpdateAsyncSamples { } /* - * x-ms-original-file: 2025-04-01-preview/Fleets_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Fleets_Update_MaximumSet_Gen.json */ /** * Sample code: Update a Fleet. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesGetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesGetSamples.java index c2c307cc03d9..b0cbbce564c7 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesGetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesGetSamples.java @@ -9,7 +9,7 @@ */ public final class GatesGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/Gates_Get.json + * x-ms-original-file: 2025-08-01-preview/Gates_Get.json */ /** * Sample code: Gets a Gate resource. @@ -21,4 +21,19 @@ public final class GatesGetSamples { manager.gates() .getWithResponse("rg1", "fleet1", "12345678-910a-bcde-f000-000000000000", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-08-01-preview/Gates_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Gates_Get_MaximumSet. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void + gatesGetMaximumSet(com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.gates() + .getWithResponse("rgfleets", "fleet-1", "12345678-910a-bcde-f000-000000000000", + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesListByFleetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesListByFleetSamples.java index 8fbe65d1990d..029aa771d415 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesListByFleetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesListByFleetSamples.java @@ -9,7 +9,7 @@ */ public final class GatesListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/Gates_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/Gates_ListByFleet.json */ /** * Sample code: Lists the Gates of a Fleet. @@ -20,4 +20,17 @@ public final class GatesListByFleetSamples { listsTheGatesOfAFleet(com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { manager.gates().listByFleet("rg1", "fleet1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-08-01-preview/Gates_ListByFleet_MaximumSet_Gen.json + */ + /** + * Sample code: Gates_ListByFleet_MaximumSet. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void gatesListByFleetMaximumSet( + com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.gates().listByFleet("rgfleets", "fleet-1", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesUpdateSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesUpdateSamples.java index dfbd89afe476..361b4a6d33a0 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesUpdateSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/GatesUpdateSamples.java @@ -13,7 +13,23 @@ */ public final class GatesUpdateSamples { /* - * x-ms-original-file: 2025-04-01-preview/Gates_Update.json + * x-ms-original-file: 2025-08-01-preview/Gates_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Gates_Update_MaximumSet. + * + * @param manager Entry point to ContainerServiceFleetManager. + */ + public static void + gatesUpdateMaximumSet(com.azure.resourcemanager.containerservicefleet.ContainerServiceFleetManager manager) { + manager.gates() + .update("rgfleets", "fleet-1", "12345678-910a-bcde-f000-000000000000", + new GatePatch().withProperties(new GatePatchProperties().withState(GateState.PENDING)), + "jqongzwjguenncptggiqzxxycakgrj", "fsyp", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-08-01-preview/Gates_Update.json */ /** * Sample code: Updates a Gate resource. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/OperationsListSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/OperationsListSamples.java index cf508d7963b1..ef0a63a40913 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/OperationsListSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-04-01-preview/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Operations_List_MinimumSet_Gen.json */ /** * Sample code: List the operations for the provider. - generated by [MinimumSet] rule. @@ -22,7 +22,7 @@ public static void listTheOperationsForTheProviderGeneratedByMinimumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/Operations_List.json + * x-ms-original-file: 2025-08-01-preview/Operations_List.json */ /** * Sample code: List the operations for the provider. @@ -35,7 +35,7 @@ public static void listTheOperationsForTheProvider( } /* - * x-ms-original-file: 2025-04-01-preview/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/Operations_List_MaximumSet_Gen.json */ /** * Sample code: List the operations for the provider. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsCreateOrUpdateSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsCreateOrUpdateSamples.java index 5cd07cb96b85..e4dfea97d1e2 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsCreateOrUpdateSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsCreateOrUpdateSamples.java @@ -22,7 +22,7 @@ */ public final class UpdateRunsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Create an UpdateRun. - generated by [MaximumSet] rule. @@ -50,7 +50,7 @@ public static void createAnUpdateRunGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_CreateOrUpdate.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_CreateOrUpdate.json */ /** * Sample code: Create an UpdateRun. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsDeleteSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsDeleteSamples.java index 1841938de3d4..d0b8b64481b7 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsDeleteSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class UpdateRunsDeleteSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Delete_MaximumSet_Gen.json */ /** * Sample code: Delete an updateRun resource. - generated by [MaximumSet] rule. @@ -23,7 +23,7 @@ public static void deleteAnUpdateRunResourceGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Delete.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Delete.json */ /** * Sample code: Delete an updateRun resource. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsGetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsGetSamples.java index 19e3d9702300..8d80697929d8 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsGetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsGetSamples.java @@ -9,7 +9,7 @@ */ public final class UpdateRunsGetSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Get_MaximumSet_Gen.json */ /** * Sample code: Gets an UpdateRun resource. - generated by [MaximumSet] rule. @@ -22,7 +22,7 @@ public static void getsAnUpdateRunResourceGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Get.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Get.json */ /** * Sample code: Gets an UpdateRun resource. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsListByFleetSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsListByFleetSamples.java index 051b13cffb28..b1d8dac7f41a 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsListByFleetSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsListByFleetSamples.java @@ -9,7 +9,7 @@ */ public final class UpdateRunsListByFleetSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_ListByFleet.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_ListByFleet.json */ /** * Sample code: Lists the UpdateRun resources by fleet. @@ -22,7 +22,7 @@ public static void listsTheUpdateRunResourcesByFleet( } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_ListByFleet_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_ListByFleet_MaximumSet_Gen.json */ /** * Sample code: Lists the UpdateRun resources by fleet. - generated by [MaximumSet] rule. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsSkipSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsSkipSamples.java index 2af82455fd10..2c7436e2a435 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsSkipSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsSkipSamples.java @@ -14,7 +14,7 @@ */ public final class UpdateRunsSkipSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Skip_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Skip_MaximumSet_Gen.json */ /** * Sample code: Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun. - generated by [MaximumSet] @@ -33,7 +33,7 @@ public static void skipsOneOrMoreMemberGroupStageAfterStageWaitSOfAnUpdateRunGen } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Skip.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Skip.json */ /** * Sample code: Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsStartSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsStartSamples.java index 4b97f6f2901c..50bce441284a 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsStartSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsStartSamples.java @@ -9,7 +9,7 @@ */ public final class UpdateRunsStartSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Start_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Start_MaximumSet_Gen.json */ /** * Sample code: Starts an UpdateRun. - generated by [MaximumSet] rule. @@ -23,7 +23,7 @@ public static void startsAnUpdateRunGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Start.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Start.json */ /** * Sample code: Starts an UpdateRun. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsStopSamples.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsStopSamples.java index 15d2e6aee6b9..5892435a4440 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsStopSamples.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/samples/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsStopSamples.java @@ -9,7 +9,7 @@ */ public final class UpdateRunsStopSamples { /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Stop_MaximumSet_Gen.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Stop_MaximumSet_Gen.json */ /** * Sample code: Stops an UpdateRun. - generated by [MaximumSet] rule. @@ -22,7 +22,7 @@ public static void stopsAnUpdateRunGeneratedByMaximumSetRule( } /* - * x-ms-original-file: 2025-04-01-preview/UpdateRuns_Stop.json + * x-ms-original-file: 2025-08-01-preview/UpdateRuns_Stop.json */ /** * Sample code: Stops an UpdateRun. diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeNodeImageSelectionTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeNodeImageSelectionTests.java index 11807d450bb1..81fe1429b136 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeNodeImageSelectionTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeNodeImageSelectionTests.java @@ -13,15 +13,15 @@ public final class AutoUpgradeNodeImageSelectionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutoUpgradeNodeImageSelection model - = BinaryData.fromString("{\"type\":\"Consistent\"}").toObject(AutoUpgradeNodeImageSelection.class); - Assertions.assertEquals(AutoUpgradeNodeImageSelectionType.CONSISTENT, model.type()); + = BinaryData.fromString("{\"type\":\"Latest\"}").toObject(AutoUpgradeNodeImageSelection.class); + Assertions.assertEquals(AutoUpgradeNodeImageSelectionType.LATEST, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AutoUpgradeNodeImageSelection model - = new AutoUpgradeNodeImageSelection().withType(AutoUpgradeNodeImageSelectionType.CONSISTENT); + = new AutoUpgradeNodeImageSelection().withType(AutoUpgradeNodeImageSelectionType.LATEST); model = BinaryData.fromObject(model).toObject(AutoUpgradeNodeImageSelection.class); - Assertions.assertEquals(AutoUpgradeNodeImageSelectionType.CONSISTENT, model.type()); + Assertions.assertEquals(AutoUpgradeNodeImageSelectionType.LATEST, model.type()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfileOperationsGenerateUpdateRunMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfileOperationsGenerateUpdateRunMockTests.java index f568c7ca47ee..a42f6d1e68fd 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfileOperationsGenerateUpdateRunMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/AutoUpgradeProfileOperationsGenerateUpdateRunMockTests.java @@ -19,7 +19,7 @@ public final class AutoUpgradeProfileOperationsGenerateUpdateRunMockTests { @Test public void testGenerateUpdateRun() throws Exception { - String responseStr = "{\"id\":\"v\"}"; + String responseStr = "{\"id\":\"rkambt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testGenerateUpdateRun() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GenerateResponse response = manager.autoUpgradeProfileOperations() - .generateUpdateRun("vgoup", "fiibfggjioolvr", "x", com.azure.core.util.Context.NONE); + .generateUpdateRun("uxrkjp", "dwxf", "wiivwzjbhyzsx", com.azure.core.util.Context.NONE); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacePatchTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacePatchTests.java new file mode 100644 index 000000000000..e3c639b7f8cd --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetManagedNamespacePatchTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.containerservicefleet.models.FleetManagedNamespacePatch; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class FleetManagedNamespacePatchTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + FleetManagedNamespacePatch model = BinaryData.fromString("{\"tags\":{\"yxczfclh\":\"xywnytnrsynlqidy\"}}") + .toObject(FleetManagedNamespacePatch.class); + Assertions.assertEquals("xywnytnrsynlqidy", model.tags().get("yxczfclh")); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + FleetManagedNamespacePatch model + = new FleetManagedNamespacePatch().withTags(mapOf("yxczfclh", "xywnytnrsynlqidy")); + model = BinaryData.fromObject(model).toObject(FleetManagedNamespacePatch.class); + Assertions.assertEquals("xywnytnrsynlqidy", model.tags().get("yxczfclh")); + } + + // 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/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersDeleteMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersDeleteMockTests.java index ca564d7e495a..1159d7096f92 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersDeleteMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetMembersDeleteMockTests.java @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.fleetMembers() - .delete("dsotbobzd", "pcjwv", "hdldwmgxcxrsl", "mutwuoe", com.azure.core.util.Context.NONE); + .delete("oxciqopidoamcio", "hkh", "zxkhnzbonlwnto", "gokdwbwhks", com.azure.core.util.Context.NONE); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesCreateOrUpdateMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesCreateOrUpdateMockTests.java index ce5fef7428df..698e33d9690b 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesCreateOrUpdateMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesCreateOrUpdateMockTests.java @@ -27,7 +27,7 @@ public final class FleetUpdateStrategiesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"strategy\":{\"stages\":[{\"name\":\"eljag\",\"groups\":[{\"name\":\"qhl\"},{\"name\":\"vriiio\"},{\"name\":\"nalghfkvtvsexso\"}],\"afterStageWaitInSeconds\":434184024,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"rhmzkwpj\",\"groups\":[{\"name\":\"spughftqsxhq\"},{\"name\":\"ujxukndxd\"},{\"name\":\"grjguufzd\"},{\"name\":\"syqtfi\"}],\"afterStageWaitInSeconds\":1852140441,\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"amvpphoszqzudph\",\"groups\":[{\"name\":\"vdkfwynwcvtbvk\"}],\"afterStageWaitInSeconds\":1479821561,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}]}},\"eTag\":\"wp\",\"id\":\"p\",\"name\":\"zcjaesgvvsccy\",\"type\":\"jguq\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"strategy\":{\"stages\":[{\"name\":\"yvudtjuewbci\",\"groups\":[{\"name\":\"uwhcjyxccybv\"},{\"name\":\"ayakkudzpx\"},{\"name\":\"wjplma\"}],\"afterStageWaitInSeconds\":625665728,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"dg\",\"groups\":[{\"name\":\"sjkmnwqj\"}],\"afterStageWaitInSeconds\":1313812453,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]},{\"name\":\"iacegfnmn\",\"groups\":[{\"name\":\"mvmemfnczd\"},{\"name\":\"vvbalx\"},{\"name\":\"l\"},{\"name\":\"chp\"}],\"afterStageWaitInSeconds\":1628077523,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]}]}},\"eTag\":\"ukuv\",\"id\":\"cswsmystul\",\"name\":\"qypfcv\",\"type\":\"er\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,23 +36,42 @@ public void testCreateOrUpdate() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - FleetUpdateStrategy response = manager.fleetUpdateStrategies() - .define("ytisibir") - .withExistingFleet("smwutwbdsrezpd", "hneuyowqkd") - .withStrategy(new UpdateRunStrategy().withStages(Arrays.asList(new UpdateStage().withName("pzimejzanlfzxi") - .withGroups(Arrays.asList(new UpdateGroup().withName("mbzonokix"), new UpdateGroup().withName("jq"))) - .withAfterStageWaitInSeconds(749799353) - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL)))))) - .withIfMatch("lsj") - .withIfNoneMatch("dhszfjv") - .create(); + FleetUpdateStrategy response + = manager.fleetUpdateStrategies() + .define("vutpthjoxo") + .withExistingFleet("wb", "lgy") + .withStrategy(new UpdateRunStrategy().withStages(Arrays.asList( + new UpdateStage().withName("sbpimlq") + .withGroups(Arrays.asList(new UpdateGroup().withName("xkcgxxlxsffgcvi"), + new UpdateGroup().withName("qzdwlvwlyoup"), new UpdateGroup().withName("gfbkjubdyh"))) + .withAfterStageWaitInSeconds(373887537) + .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))), + new UpdateStage().withName("wzf") + .withGroups(Arrays.asList(new UpdateGroup().withName("ttktlahbq"), + new UpdateGroup().withName("ctxtgzukxi"), new UpdateGroup().withName("mmqtgqqqxhr"))) + .withAfterStageWaitInSeconds(734515726) + .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL))), + new UpdateStage().withName("vokqdzfv") + .withGroups(Arrays.asList(new UpdateGroup().withName("vjlfrqtt"), + new UpdateGroup().withName("ajlkatnw"), new UpdateGroup().withName("yiopi"), + new UpdateGroup().withName("kqqfk"))) + .withAfterStageWaitInSeconds(113648851) + .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL)))))) + .withIfMatch("eoybfhjxakvvjgs") + .withIfNoneMatch("ordilmywwtkgkxny") + .create(); - Assertions.assertEquals("eljag", response.strategy().stages().get(0).name()); - Assertions.assertEquals("qhl", response.strategy().stages().get(0).groups().get(0).name()); - Assertions.assertEquals(434184024, response.strategy().stages().get(0).afterStageWaitInSeconds()); + Assertions.assertEquals("yvudtjuewbci", response.strategy().stages().get(0).name()); + Assertions.assertEquals("uwhcjyxccybv", response.strategy().stages().get(0).groups().get(0).name()); + Assertions.assertEquals(625665728, response.strategy().stages().get(0).afterStageWaitInSeconds()); Assertions.assertEquals(GateType.APPROVAL, response.strategy().stages().get(0).beforeGates().get(0).type()); Assertions.assertEquals(GateType.APPROVAL, response.strategy().stages().get(0).afterGates().get(0).type()); } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesDeleteMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesDeleteMockTests.java index c2dba63e5ccb..529a36b1ab38 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesDeleteMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesDeleteMockTests.java @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.fleetUpdateStrategies() - .delete("pjorwkqnyhg", "ij", "jivfxzsjabib", "ystawfsdjpvkvp", com.azure.core.util.Context.NONE); + .delete("ygdxpgpqchis", "epn", "bjcrxgibbdaxco", "fozauorsuk", com.azure.core.util.Context.NONE); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesGetWithResponseMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesGetWithResponseMockTests.java index 373cc6e322d7..73cf2b9636f3 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesGetWithResponseMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class FleetUpdateStrategiesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"strategy\":{\"stages\":[{\"name\":\"kyhejhzisxgf\",\"groups\":[{\"name\":\"olppvksrpqvujz\"}],\"afterStageWaitInSeconds\":126730684,\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]},{\"name\":\"ftswibyrcdlbhsh\",\"groups\":[{\"name\":\"racstwity\"}],\"afterStageWaitInSeconds\":56359046,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"odn\",\"groups\":[{\"name\":\"ltjcvnhltiugcxna\"},{\"name\":\"vwxqibyqunyo\"},{\"name\":\"xwlmdjr\"}],\"afterStageWaitInSeconds\":425671915,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}]}},\"eTag\":\"izsjqlhkrr\",\"id\":\"deibqip\",\"name\":\"kghv\",\"type\":\"ndzwmkrefa\"}"; + = "{\"properties\":{\"provisioningState\":\"Canceled\",\"strategy\":{\"stages\":[{\"name\":\"yvnqqybaryeuay\",\"groups\":[{\"name\":\"abqgzslesjcbh\"},{\"name\":\"rnntiewdjcv\"},{\"name\":\"quwrbehwag\"},{\"name\":\"hbuffkmrq\"}],\"afterStageWaitInSeconds\":226189444,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]},{\"name\":\"jfutacoebj\",\"groups\":[{\"name\":\"zcjznmwcpmgua\"},{\"name\":\"draufactkah\"},{\"name\":\"ovajjziuxxps\"},{\"name\":\"neekulfg\"}],\"afterStageWaitInSeconds\":1157333655,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]}]}},\"eTag\":\"d\",\"id\":\"tujbazpju\",\"name\":\"hminyflnorwmduv\",\"type\":\"pklvxw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FleetUpdateStrategy response = manager.fleetUpdateStrategies() - .getWithResponse("ttlstvlzywemhz", "ncsdtclusiyp", "sfgytguslfead", com.azure.core.util.Context.NONE) + .getWithResponse("hubskhudygooo", "kqfqjbvl", "orfmluiqt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("kyhejhzisxgf", response.strategy().stages().get(0).name()); - Assertions.assertEquals("olppvksrpqvujz", response.strategy().stages().get(0).groups().get(0).name()); - Assertions.assertEquals(126730684, response.strategy().stages().get(0).afterStageWaitInSeconds()); + Assertions.assertEquals("yvnqqybaryeuay", response.strategy().stages().get(0).name()); + Assertions.assertEquals("abqgzslesjcbh", response.strategy().stages().get(0).groups().get(0).name()); + Assertions.assertEquals(226189444, response.strategy().stages().get(0).afterStageWaitInSeconds()); Assertions.assertEquals(GateType.APPROVAL, response.strategy().stages().get(0).beforeGates().get(0).type()); Assertions.assertEquals(GateType.APPROVAL, response.strategy().stages().get(0).afterGates().get(0).type()); } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesListByFleetMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesListByFleetMockTests.java index 582987e3746e..4e2778544ef0 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesListByFleetMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategiesListByFleetMockTests.java @@ -23,7 +23,7 @@ public final class FleetUpdateStrategiesListByFleetMockTests { @Test public void testListByFleet() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"strategy\":{\"stages\":[{\"name\":\"klff\",\"groups\":[{\"name\":\"uwqlgzrfzeey\"}],\"afterStageWaitInSeconds\":32622439,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}]}},\"eTag\":\"ybbqwrv\",\"id\":\"dgmfpgvmpipasl\",\"name\":\"haq\",\"type\":\"x\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"strategy\":{\"stages\":[{\"name\":\"wey\",\"groups\":[{\"name\":\"unvmnnr\"},{\"name\":\"rbior\"},{\"name\":\"talywjhhgdnhxms\"},{\"name\":\"v\"}],\"afterStageWaitInSeconds\":2010806413,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"iqndieuzaofj\",\"groups\":[{\"name\":\"cyyysfgdot\"}],\"afterStageWaitInSeconds\":1822085864,\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"onmacjekniz\",\"groups\":[{\"name\":\"vcimpev\"}],\"afterStageWaitInSeconds\":716188449,\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}]}},\"eTag\":\"dxsm\",\"id\":\"cwrwfs\",\"name\":\"jfnynszqujizdvoq\",\"type\":\"tiby\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testListByFleet() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.fleetUpdateStrategies() - .listByFleet("jxbkzbzkdvn", "jabudurgkakmo", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.fleetUpdateStrategies().listByFleet("kwbqplhlvnuu", "pzlrphw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("klff", response.iterator().next().strategy().stages().get(0).name()); - Assertions.assertEquals("uwqlgzrfzeey", + Assertions.assertEquals("wey", response.iterator().next().strategy().stages().get(0).name()); + Assertions.assertEquals("unvmnnr", response.iterator().next().strategy().stages().get(0).groups().get(0).name()); - Assertions.assertEquals(32622439, + Assertions.assertEquals(2010806413, response.iterator().next().strategy().stages().get(0).afterStageWaitInSeconds()); Assertions.assertEquals(GateType.APPROVAL, response.iterator().next().strategy().stages().get(0).beforeGates().get(0).type()); diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyInnerTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyInnerTests.java index fc917ae23a7e..7c9e346339b3 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyInnerTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyInnerTests.java @@ -18,11 +18,11 @@ public final class FleetUpdateStrategyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FleetUpdateStrategyInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"strategy\":{\"stages\":[{\"name\":\"mclfplphoxuscr\",\"groups\":[{\"name\":\"gyepsbjt\"},{\"name\":\"zq\"}],\"afterStageWaitInSeconds\":2003590668,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]},{\"name\":\"fjz\",\"groups\":[{\"name\":\"kqujidsuyono\"},{\"name\":\"glaocq\"},{\"name\":\"tcc\"}],\"afterStageWaitInSeconds\":528280521,\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"oyrxvwfudwpzntxh\",\"groups\":[{\"name\":\"lrqjbhckfr\"}],\"afterStageWaitInSeconds\":2044526914,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}]}},\"eTag\":\"bpzkafkuwbc\",\"id\":\"wbme\",\"name\":\"hseyvju\",\"type\":\"rts\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\",\"strategy\":{\"stages\":[{\"name\":\"mkcxozapvh\",\"groups\":[{\"name\":\"prglya\"},{\"name\":\"dd\"},{\"name\":\"kcbcue\"}],\"afterStageWaitInSeconds\":465544934,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"osx\",\"groups\":[{\"name\":\"rhzo\"},{\"name\":\"m\"},{\"name\":\"bmrqyibahwfl\"},{\"name\":\"szdtmhrkwof\"}],\"afterStageWaitInSeconds\":1026914225,\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}]}},\"eTag\":\"tg\",\"id\":\"bwoenwashrt\",\"name\":\"tkcnqxwb\",\"type\":\"okulpiujwa\"}") .toObject(FleetUpdateStrategyInner.class); - Assertions.assertEquals("mclfplphoxuscr", model.strategy().stages().get(0).name()); - Assertions.assertEquals("gyepsbjt", model.strategy().stages().get(0).groups().get(0).name()); - Assertions.assertEquals(2003590668, model.strategy().stages().get(0).afterStageWaitInSeconds()); + Assertions.assertEquals("mkcxozapvh", model.strategy().stages().get(0).name()); + Assertions.assertEquals("prglya", model.strategy().stages().get(0).groups().get(0).name()); + Assertions.assertEquals(465544934, model.strategy().stages().get(0).afterStageWaitInSeconds()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).beforeGates().get(0).type()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).afterGates().get(0).type()); } @@ -30,39 +30,29 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FleetUpdateStrategyInner model - = new FleetUpdateStrategyInner() - .withStrategy( - new UpdateRunStrategy() - .withStages(Arrays.asList( - new UpdateStage().withName("mclfplphoxuscr") - .withGroups(Arrays.asList(new UpdateGroup().withName("gyepsbjt"), - new UpdateGroup().withName("zq"))) - .withAfterStageWaitInSeconds(2003590668) - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateStage().withName("fjz") - .withGroups(Arrays.asList(new UpdateGroup().withName("kqujidsuyono"), - new UpdateGroup().withName("glaocq"), new UpdateGroup().withName("tcc"))) - .withAfterStageWaitInSeconds(528280521) - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateStage().withName("oyrxvwfudwpzntxh") - .withGroups(Arrays.asList(new UpdateGroup().withName("lrqjbhckfr"))) - .withAfterStageWaitInSeconds(2044526914) - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL)))))); + = new FleetUpdateStrategyInner().withStrategy(new UpdateRunStrategy().withStages(Arrays.asList( + new UpdateStage().withName("mkcxozapvh") + .withGroups(Arrays.asList(new UpdateGroup().withName("prglya"), new UpdateGroup().withName("dd"), + new UpdateGroup().withName("kcbcue"))) + .withAfterStageWaitInSeconds(465544934) + .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL))), + new UpdateStage().withName("osx") + .withGroups(Arrays.asList(new UpdateGroup().withName("rhzo"), new UpdateGroup().withName("m"), + new UpdateGroup().withName("bmrqyibahwfl"), new UpdateGroup().withName("szdtmhrkwof"))) + .withAfterStageWaitInSeconds(1026914225) + .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL)))))); model = BinaryData.fromObject(model).toObject(FleetUpdateStrategyInner.class); - Assertions.assertEquals("mclfplphoxuscr", model.strategy().stages().get(0).name()); - Assertions.assertEquals("gyepsbjt", model.strategy().stages().get(0).groups().get(0).name()); - Assertions.assertEquals(2003590668, model.strategy().stages().get(0).afterStageWaitInSeconds()); + Assertions.assertEquals("mkcxozapvh", model.strategy().stages().get(0).name()); + Assertions.assertEquals("prglya", model.strategy().stages().get(0).groups().get(0).name()); + Assertions.assertEquals(465544934, model.strategy().stages().get(0).afterStageWaitInSeconds()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).beforeGates().get(0).type()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).afterGates().get(0).type()); } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyListResultTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyListResultTests.java index ee0df58fcabb..0d2b80000bf1 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyListResultTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyListResultTests.java @@ -12,9 +12,9 @@ public final class FleetUpdateStrategyListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FleetUpdateStrategyListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"strategy\":{\"stages\":[{\"name\":\"yjsflhhcaalnji\"},{\"name\":\"isxyawjoyaqcslyj\"},{\"name\":\"kiidzyex\"},{\"name\":\"nelixhnrztfo\"}]}},\"eTag\":\"bnxknalaulppg\",\"id\":\"tpnapnyiropuhpig\",\"name\":\"pgylg\",\"type\":\"git\"}],\"nextLink\":\"edjvcslynqw\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"strategy\":{\"stages\":[{\"name\":\"y\"},{\"name\":\"cogjltdtbn\"},{\"name\":\"hadoocrk\"},{\"name\":\"cikhnv\"}]}},\"eTag\":\"mqg\",\"id\":\"queziky\",\"name\":\"ggxkallatmelwuip\",\"type\":\"ccjzkzivgvv\"}],\"nextLink\":\"ayrhyrnx\"}") .toObject(FleetUpdateStrategyListResult.class); - Assertions.assertEquals("yjsflhhcaalnji", model.value().get(0).strategy().stages().get(0).name()); - Assertions.assertEquals("edjvcslynqw", model.nextLink()); + Assertions.assertEquals("y", model.value().get(0).strategy().stages().get(0).name()); + Assertions.assertEquals("ayrhyrnx", model.nextLink()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyPropertiesTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyPropertiesTests.java index a049c6eaa01e..ecd831ff7ceb 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyPropertiesTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetUpdateStrategyPropertiesTests.java @@ -18,18 +18,18 @@ public final class FleetUpdateStrategyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FleetUpdateStrategyProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Canceled\",\"strategy\":{\"stages\":[{\"name\":\"kdeemaofmxagkvtm\",\"groups\":[{\"name\":\"qkrhahvljua\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"ualaexqpvfadmw\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]},{\"name\":\"gomz\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]},{\"name\":\"nbbelda\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":1578257059,\"beforeGates\":[{\"displayName\":\"hashsfwxosow\",\"type\":\"Approval\"},{\"displayName\":\"ugicjooxdjebw\",\"type\":\"Approval\"},{\"displayName\":\"wwfvov\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"ecivyh\",\"type\":\"Approval\"},{\"displayName\":\"uojgj\",\"type\":\"Approval\"},{\"displayName\":\"ueiotwmcdyt\",\"type\":\"Approval\"},{\"displayName\":\"it\",\"type\":\"Approval\"}]},{\"name\":\"rjaw\",\"groups\":[{\"name\":\"gxhnisk\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]},{\"name\":\"klwndnhjdauwhv\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":1267034334,\"beforeGates\":[{\"displayName\":\"pow\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"qlveualupjmkh\",\"type\":\"Approval\"},{\"displayName\":\"bbcswsrtjri\",\"type\":\"Approval\"}]},{\"name\":\"rbpbewtghfgblcg\",\"groups\":[{\"name\":\"vlvqhjkbegi\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"ayqcgw\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"zmh\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]},{\"name\":\"avjcbpwx\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":1607260782,\"beforeGates\":[{\"displayName\":\"rwmdyvxqtay\",\"type\":\"Approval\"},{\"displayName\":\"wroyqbexrmcq\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"ojvknmefqsgzvaha\",\"type\":\"Approval\"},{\"displayName\":\"zhpvgqzcjrvxd\",\"type\":\"Approval\"},{\"displayName\":\"mwlxk\",\"type\":\"Approval\"},{\"displayName\":\"fhzovawjvzunluth\",\"type\":\"Approval\"}]},{\"name\":\"prnxipeil\",\"groups\":[{\"name\":\"uaejxdultsk\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]},{\"name\":\"e\",\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":1290652027,\"beforeGates\":[{\"displayName\":\"sjyofdx\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"ttouwaboekqvkel\",\"type\":\"Approval\"}]}]}}") + "{\"provisioningState\":\"Succeeded\",\"strategy\":{\"stages\":[{\"name\":\"qiiobyuqer\",\"groups\":[{\"name\":\"pqwcciuqgbdbutau\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":1745648414,\"beforeGates\":[{\"displayName\":\"oxafn\",\"type\":\"Approval\"},{\"displayName\":\"pichkoymkcdy\",\"type\":\"Approval\"},{\"displayName\":\"kkpwdreqnovvq\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"xywsuws\",\"type\":\"Approval\"},{\"displayName\":\"ndsytgadg\",\"type\":\"Approval\"}]},{\"name\":\"aeaeneqnzarrw\",\"groups\":[{\"name\":\"uijfqk\",\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":1821555350,\"beforeGates\":[{\"displayName\":\"bwwift\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"puvks\",\"type\":\"Approval\"},{\"displayName\":\"saknynfsyn\",\"type\":\"Approval\"},{\"displayName\":\"huopxodlqiynto\",\"type\":\"Approval\"},{\"displayName\":\"hleosjsw\",\"type\":\"Approval\"}]},{\"name\":\"mslyzrpzbchckqqz\",\"groups\":[{\"name\":\"xiy\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":1415235910,\"beforeGates\":[{\"displayName\":\"mibzyhwitsmypyyn\",\"type\":\"Approval\"},{\"displayName\":\"pumnz\",\"type\":\"Approval\"},{\"displayName\":\"z\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"knso\",\"type\":\"Approval\"},{\"displayName\":\"hxbld\",\"type\":\"Approval\"},{\"displayName\":\"wrlkdmtn\",\"type\":\"Approval\"},{\"displayName\":\"kotl\",\"type\":\"Approval\"}]}]}}") .toObject(FleetUpdateStrategyProperties.class); - Assertions.assertEquals("kdeemaofmxagkvtm", model.strategy().stages().get(0).name()); - Assertions.assertEquals("qkrhahvljua", model.strategy().stages().get(0).groups().get(0).name()); + Assertions.assertEquals("qiiobyuqer", model.strategy().stages().get(0).name()); + Assertions.assertEquals("pqwcciuqgbdbutau", model.strategy().stages().get(0).groups().get(0).name()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).groups().get(0).beforeGates().get(0).type()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).groups().get(0).afterGates().get(0).type()); - Assertions.assertEquals(1578257059, model.strategy().stages().get(0).afterStageWaitInSeconds()); - Assertions.assertEquals("hashsfwxosow", model.strategy().stages().get(0).beforeGates().get(0).displayName()); + Assertions.assertEquals(1745648414, model.strategy().stages().get(0).afterStageWaitInSeconds()); + Assertions.assertEquals("oxafn", model.strategy().stages().get(0).beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).beforeGates().get(0).type()); - Assertions.assertEquals("ecivyh", model.strategy().stages().get(0).afterGates().get(0).displayName()); + Assertions.assertEquals("xywsuws", model.strategy().stages().get(0).afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).afterGates().get(0).type()); } @@ -37,62 +37,38 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { FleetUpdateStrategyProperties model = new FleetUpdateStrategyProperties() - .withStrategy(new UpdateRunStrategy().withStages(Arrays.asList( - new UpdateStage().withName("kdeemaofmxagkvtm") - .withGroups(Arrays.asList( - new UpdateGroup().withName("qkrhahvljua") + .withStrategy( + new UpdateRunStrategy().withStages(Arrays.asList( + new UpdateStage().withName("qiiobyuqer") + .withGroups(Arrays.asList(new UpdateGroup().withName("pqwcciuqgbdbutau") .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateGroup().withName("ualaexqpvfadmw") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateGroup().withName("gomz") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateGroup().withName("nbbelda") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL))) .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL))))) - .withAfterStageWaitInSeconds(1578257059) - .withBeforeGates(Arrays.asList( - new GateConfiguration().withDisplayName("hashsfwxosow").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("ugicjooxdjebw").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("wwfvov").withType(GateType.APPROVAL))) - .withAfterGates( - Arrays.asList(new GateConfiguration().withDisplayName("ecivyh").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("uojgj").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("ueiotwmcdyt").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("it").withType(GateType.APPROVAL))), - new UpdateStage().withName("rjaw") - .withGroups(Arrays.asList( - new UpdateGroup().withName("gxhnisk") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateGroup().withName("klwndnhjdauwhv") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) + .withAfterStageWaitInSeconds(1745648414) + .withBeforeGates(Arrays.asList( + new GateConfiguration().withDisplayName("oxafn").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("pichkoymkcdy").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("kkpwdreqnovvq").withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList( + new GateConfiguration().withDisplayName("xywsuws").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("ndsytgadg").withType(GateType.APPROVAL))), + new UpdateStage().withName("aeaeneqnzarrw") + .withGroups(Arrays.asList(new UpdateGroup().withName("uijfqk") + .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))) .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL))))) - .withAfterStageWaitInSeconds(1267034334) - .withBeforeGates( - Arrays.asList(new GateConfiguration().withDisplayName("pow").withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList( - new GateConfiguration().withDisplayName("qlveualupjmkh").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("bbcswsrtjri").withType(GateType.APPROVAL))), - new UpdateStage().withName("rbpbewtghfgblcg") - .withGroups(Arrays.asList( - new UpdateGroup().withName("vlvqhjkbegi") + .withAfterStageWaitInSeconds(1821555350) + .withBeforeGates(Arrays + .asList(new GateConfiguration().withDisplayName("bwwift").withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList( + new GateConfiguration().withDisplayName("puvks").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("saknynfsyn").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("huopxodlqiynto").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("hleosjsw").withType(GateType.APPROVAL))), + new UpdateStage().withName("mslyzrpzbchckqqz") + .withGroups(Arrays.asList(new UpdateGroup().withName("xiy") .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), @@ -100,59 +76,28 @@ public void testSerialize() throws Exception { .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateGroup().withName("ayqcgw") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateGroup().withName("zmh") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateGroup().withName("avjcbpwx") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))))) - .withAfterStageWaitInSeconds(1607260782) - .withBeforeGates(Arrays.asList( - new GateConfiguration().withDisplayName("rwmdyvxqtay").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("wroyqbexrmcq").withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList( - new GateConfiguration().withDisplayName("ojvknmefqsgzvaha").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("zhpvgqzcjrvxd").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("mwlxk").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("fhzovawjvzunluth").withType(GateType.APPROVAL))), - new UpdateStage().withName("prnxipeil") - .withGroups(Arrays.asList( - new UpdateGroup().withName("uaejxdultsk") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))), - new UpdateGroup().withName("e") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL))))) - .withAfterStageWaitInSeconds(1290652027) - .withBeforeGates(Arrays - .asList(new GateConfiguration().withDisplayName("sjyofdx").withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList( - new GateConfiguration().withDisplayName("ttouwaboekqvkel").withType(GateType.APPROVAL)))))); + .withAfterStageWaitInSeconds(1415235910) + .withBeforeGates(Arrays.asList( + new GateConfiguration().withDisplayName("mibzyhwitsmypyyn").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("pumnz").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("z").withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList( + new GateConfiguration().withDisplayName("knso").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("hxbld").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("wrlkdmtn").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("kotl").withType(GateType.APPROVAL)))))); model = BinaryData.fromObject(model).toObject(FleetUpdateStrategyProperties.class); - Assertions.assertEquals("kdeemaofmxagkvtm", model.strategy().stages().get(0).name()); - Assertions.assertEquals("qkrhahvljua", model.strategy().stages().get(0).groups().get(0).name()); + Assertions.assertEquals("qiiobyuqer", model.strategy().stages().get(0).name()); + Assertions.assertEquals("pqwcciuqgbdbutau", model.strategy().stages().get(0).groups().get(0).name()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).groups().get(0).beforeGates().get(0).type()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).groups().get(0).afterGates().get(0).type()); - Assertions.assertEquals(1578257059, model.strategy().stages().get(0).afterStageWaitInSeconds()); - Assertions.assertEquals("hashsfwxosow", model.strategy().stages().get(0).beforeGates().get(0).displayName()); + Assertions.assertEquals(1745648414, model.strategy().stages().get(0).afterStageWaitInSeconds()); + Assertions.assertEquals("oxafn", model.strategy().stages().get(0).beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).beforeGates().get(0).type()); - Assertions.assertEquals("ecivyh", model.strategy().stages().get(0).afterGates().get(0).displayName()); + Assertions.assertEquals("xywsuws", model.strategy().stages().get(0).afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.strategy().stages().get(0).afterGates().get(0).type()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsDeleteMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsDeleteMockTests.java index 53e86ffc4e7f..f9d5190bcc01 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsDeleteMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.fleets().delete("wgdrjervnaenqp", "hin", "oygmift", com.azure.core.util.Context.NONE); + manager.fleets().delete("mzqa", "krmnjijpxacqqud", "nbyxbaaabjyv", com.azure.core.util.Context.NONE); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListCredentialsWithResponseMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListCredentialsWithResponseMockTests.java index 489e0e7ee408..1db5a369f986 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListCredentialsWithResponseMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/FleetsListCredentialsWithResponseMockTests.java @@ -19,8 +19,7 @@ public final class FleetsListCredentialsWithResponseMockTests { @Test public void testListCredentialsWithResponse() throws Exception { - String responseStr - = "{\"kubeconfigs\":[{\"name\":\"gxtibqdxbxw\"},{\"name\":\"ogqxndlkzgxhuri\"},{\"name\":\"podxunkb\"}]}"; + String responseStr = "{\"kubeconfigs\":[{\"name\":\"ckw\"},{\"name\":\"qwhxxbuyqaxzfeqz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +29,7 @@ public void testListCredentialsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FleetCredentialResults response = manager.fleets() - .listCredentialsWithResponse("nsikvmkqzeqqkdl", "fzxmhhvhgureodkw", com.azure.core.util.Context.NONE) + .listCredentialsWithResponse("dxrbuukzcle", "yhmlwpaztzp", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateConfigurationTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateConfigurationTests.java index ad73f1312f27..9c6435fd61b8 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateConfigurationTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateConfigurationTests.java @@ -12,17 +12,17 @@ public final class GateConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - GateConfiguration model = BinaryData.fromString("{\"displayName\":\"koklya\",\"type\":\"Approval\"}") + GateConfiguration model = BinaryData.fromString("{\"displayName\":\"bxvwv\",\"type\":\"Approval\"}") .toObject(GateConfiguration.class); - Assertions.assertEquals("koklya", model.displayName()); + Assertions.assertEquals("bxvwv", model.displayName()); Assertions.assertEquals(GateType.APPROVAL, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GateConfiguration model = new GateConfiguration().withDisplayName("koklya").withType(GateType.APPROVAL); + GateConfiguration model = new GateConfiguration().withDisplayName("bxvwv").withType(GateType.APPROVAL); model = BinaryData.fromObject(model).toObject(GateConfiguration.class); - Assertions.assertEquals("koklya", model.displayName()); + Assertions.assertEquals("bxvwv", model.displayName()); Assertions.assertEquals(GateType.APPROVAL, model.type()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateInnerTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateInnerTests.java index 879cd8269076..c6256022230d 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateInnerTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateInnerTests.java @@ -15,12 +15,12 @@ public final class GateInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GateInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"maajrmvdjwzrlo\",\"gateType\":\"Approval\",\"target\":{\"id\":\"clwhijcoejctbz\",\"updateRunProperties\":{\"name\":\"s\",\"stage\":\"y\",\"group\":\"kbfkg\",\"timing\":\"Before\"}},\"state\":\"Pending\"},\"eTag\":\"exxppofmxaxcfjp\",\"id\":\"dtocj\",\"name\":\"xhvpmoue\",\"type\":\"hd\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"abphlw\",\"gateType\":\"Approval\",\"target\":{\"id\":\"lfktsths\",\"updateRunProperties\":{\"name\":\"ocmnyyazttbtwwrq\",\"stage\":\"edckzywbiexzfey\",\"group\":\"axibxujw\",\"timing\":\"Before\"}},\"state\":\"Completed\"},\"eTag\":\"almuzyoxaepdkzja\",\"id\":\"ux\",\"name\":\"hdwbavxbniwdjs\",\"type\":\"zt\"}") .toObject(GateInner.class); - Assertions.assertEquals("maajrmvdjwzrlo", model.displayName()); + Assertions.assertEquals("abphlw", model.displayName()); Assertions.assertEquals(GateType.APPROVAL, model.gateType()); - Assertions.assertEquals("clwhijcoejctbz", model.target().id()); + Assertions.assertEquals("lfktsths", model.target().id()); Assertions.assertEquals(Timing.BEFORE, model.target().updateRunProperties().timing()); - Assertions.assertEquals(GateState.PENDING, model.state()); + Assertions.assertEquals(GateState.COMPLETED, model.state()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateListResultTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateListResultTests.java index 77a162ee1d60..d10eb7617615 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateListResultTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateListResultTests.java @@ -15,13 +15,13 @@ public final class GateListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GateListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"kftutqxlngxlefg\",\"gateType\":\"Approval\",\"target\":{\"id\":\"nxkrx\",\"updateRunProperties\":{\"name\":\"mi\",\"stage\":\"thz\",\"group\":\"qdrabhjybigehoqf\",\"timing\":\"After\"}},\"state\":\"Skipped\"},\"eTag\":\"kanyktzlcuiywg\",\"id\":\"wgndrvynhzgpp\",\"name\":\"rcgyn\",\"type\":\"ocpecfvmmco\"}],\"nextLink\":\"sxlzevgbmqj\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"kyzxuutk\",\"gateType\":\"Approval\",\"target\":{\"id\":\"ws\",\"updateRunProperties\":{\"name\":\"svlxotogtwrup\",\"stage\":\"xvnmicykvceov\",\"group\":\"lo\",\"timing\":\"After\"}},\"state\":\"Pending\"},\"eTag\":\"yfjfcnjbkcn\",\"id\":\"hbttkphyw\",\"name\":\"nv\",\"type\":\"t\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"mclfplphoxuscr\",\"gateType\":\"Approval\",\"target\":{\"id\":\"bgyepsbj\",\"updateRunProperties\":{\"name\":\"zq\",\"stage\":\"xywpmueefjzwfqkq\",\"group\":\"ids\",\"timing\":\"Before\"}},\"state\":\"Completed\"},\"eTag\":\"obglaocqxtcc\",\"id\":\"yudxytlmoy\",\"name\":\"xv\",\"type\":\"fudwpznt\"}],\"nextLink\":\"dzhlrq\"}") .toObject(GateListResult.class); - Assertions.assertEquals("kftutqxlngxlefg", model.value().get(0).displayName()); + Assertions.assertEquals("kyzxuutk", model.value().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.value().get(0).gateType()); - Assertions.assertEquals("nxkrx", model.value().get(0).target().id()); + Assertions.assertEquals("ws", model.value().get(0).target().id()); Assertions.assertEquals(Timing.AFTER, model.value().get(0).target().updateRunProperties().timing()); - Assertions.assertEquals(GateState.SKIPPED, model.value().get(0).state()); - Assertions.assertEquals("sxlzevgbmqj", model.nextLink()); + Assertions.assertEquals(GateState.PENDING, model.value().get(0).state()); + Assertions.assertEquals("dzhlrq", model.nextLink()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatePropertiesTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatePropertiesTests.java index 1a3eeda05181..68be76f3e6f1 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatePropertiesTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatePropertiesTests.java @@ -15,12 +15,12 @@ public final class GatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GateProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Canceled\",\"displayName\":\"qeojnxqbzvddntw\",\"gateType\":\"Approval\",\"target\":{\"id\":\"eic\",\"updateRunProperties\":{\"name\":\"w\",\"stage\":\"zao\",\"group\":\"uhrhcffcyddgl\",\"timing\":\"After\"}},\"state\":\"Skipped\"}") + "{\"provisioningState\":\"Succeeded\",\"displayName\":\"gnxytxhpzxbz\",\"gateType\":\"Approval\",\"target\":{\"id\":\"zabglcuhxwt\",\"updateRunProperties\":{\"name\":\"yqiklbbovplwzb\",\"stage\":\"gy\",\"group\":\"uosvmkfssxqukk\",\"timing\":\"After\"}},\"state\":\"Pending\"}") .toObject(GateProperties.class); - Assertions.assertEquals("qeojnxqbzvddntw", model.displayName()); + Assertions.assertEquals("gnxytxhpzxbz", model.displayName()); Assertions.assertEquals(GateType.APPROVAL, model.gateType()); - Assertions.assertEquals("eic", model.target().id()); + Assertions.assertEquals("zabglcuhxwt", model.target().id()); Assertions.assertEquals(Timing.AFTER, model.target().updateRunProperties().timing()); - Assertions.assertEquals(GateState.SKIPPED, model.state()); + Assertions.assertEquals(GateState.PENDING, model.state()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateTargetTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateTargetTests.java index 3e3f223e1e7f..86e1f8c65aa0 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateTargetTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GateTargetTests.java @@ -13,9 +13,9 @@ public final class GateTargetTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GateTarget model = BinaryData.fromString( - "{\"id\":\"hjq\",\"updateRunProperties\":{\"name\":\"pyeicxm\",\"stage\":\"iwqvhkh\",\"group\":\"uigdtopbobjog\",\"timing\":\"Before\"}}") + "{\"id\":\"gmgsxnkjzkde\",\"updateRunProperties\":{\"name\":\"pvlopwiyighxpkd\",\"stage\":\"baiuebbaumny\",\"group\":\"ped\",\"timing\":\"After\"}}") .toObject(GateTarget.class); - Assertions.assertEquals("hjq", model.id()); - Assertions.assertEquals(Timing.BEFORE, model.updateRunProperties().timing()); + Assertions.assertEquals("gmgsxnkjzkde", model.id()); + Assertions.assertEquals(Timing.AFTER, model.updateRunProperties().timing()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesGetWithResponseMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesGetWithResponseMockTests.java index 008e853f3002..39ff2a6b1c53 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesGetWithResponseMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class GatesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"kcdyhbpk\",\"gateType\":\"Approval\",\"target\":{\"id\":\"wdreqnovvqfovl\",\"updateRunProperties\":{\"name\":\"ywsuwsy\",\"stage\":\"ndsytgadg\",\"group\":\"aeaeneqnzarrw\",\"timing\":\"Before\"}},\"state\":\"Completed\"},\"eTag\":\"ijfqkacewiipfp\",\"id\":\"ji\",\"name\":\"wwiftohqkvpuv\",\"type\":\"sgplsakn\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"zqzudph\",\"gateType\":\"Approval\",\"target\":{\"id\":\"mvdk\",\"updateRunProperties\":{\"name\":\"ynwcvtbv\",\"stage\":\"yhmtnvyqiat\",\"group\":\"wp\",\"timing\":\"After\"}},\"state\":\"Completed\"},\"eTag\":\"zcjaesgvvsccy\",\"id\":\"g\",\"name\":\"qfhwyg\",\"type\":\"lvdnkfx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,13 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - Gate response = manager.gates() - .getWithResponse("erpqlpqwcciuqg", "dbutauvfbtkuwhh", "hykojoxafnndlpic", com.azure.core.util.Context.NONE) - .getValue(); + Gate response + = manager.gates().getWithResponse("yqtfihwh", "otzi", "gamv", com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals("kcdyhbpk", response.displayName()); + Assertions.assertEquals("zqzudph", response.displayName()); Assertions.assertEquals(GateType.APPROVAL, response.gateType()); - Assertions.assertEquals("wdreqnovvqfovl", response.target().id()); - Assertions.assertEquals(Timing.BEFORE, response.target().updateRunProperties().timing()); + Assertions.assertEquals("mvdk", response.target().id()); + Assertions.assertEquals(Timing.AFTER, response.target().updateRunProperties().timing()); Assertions.assertEquals(GateState.COMPLETED, response.state()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesListByFleetMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesListByFleetMockTests.java index 5dce35aa368d..fbca1b8f7298 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesListByFleetMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesListByFleetMockTests.java @@ -25,7 +25,7 @@ public final class GatesListByFleetMockTests { @Test public void testListByFleet() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"khnvpam\",\"gateType\":\"Approval\",\"target\":{\"id\":\"x\",\"updateRunProperties\":{\"name\":\"u\",\"stage\":\"ik\",\"group\":\"ggxkallatmelwuip\",\"timing\":\"After\"}},\"state\":\"Skipped\"},\"eTag\":\"zkzivgvvcnay\",\"id\":\"yrnxxmueedn\",\"name\":\"rdvstkwqqtch\",\"type\":\"alm\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"gllqwjy\",\"gateType\":\"Approval\",\"target\":{\"id\":\"jayvblmhv\",\"updateRunProperties\":{\"name\":\"uhbxvvy\",\"stage\":\"s\",\"group\":\"byrqufeg\",\"timing\":\"Before\"}},\"state\":\"Pending\"},\"eTag\":\"zfbn\",\"id\":\"mctlpdngitv\",\"name\":\"bmhrixkwmyijejv\",\"type\":\"grhbpn\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,13 +34,12 @@ public void testListByFleet() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.gates().listByFleet("gsyocogj", "tdtbnnhadooc", com.azure.core.util.Context.NONE); + PagedIterable response = manager.gates().listByFleet("ggjioolvr", "x", com.azure.core.util.Context.NONE); - Assertions.assertEquals("khnvpam", response.iterator().next().displayName()); + Assertions.assertEquals("gllqwjy", response.iterator().next().displayName()); Assertions.assertEquals(GateType.APPROVAL, response.iterator().next().gateType()); - Assertions.assertEquals("x", response.iterator().next().target().id()); - Assertions.assertEquals(Timing.AFTER, response.iterator().next().target().updateRunProperties().timing()); - Assertions.assertEquals(GateState.SKIPPED, response.iterator().next().state()); + Assertions.assertEquals("jayvblmhv", response.iterator().next().target().id()); + Assertions.assertEquals(Timing.BEFORE, response.iterator().next().target().updateRunProperties().timing()); + Assertions.assertEquals(GateState.PENDING, response.iterator().next().state()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesUpdateMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesUpdateMockTests.java index 1362bbc67f83..1a4acf4bbc80 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesUpdateMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GatesUpdateMockTests.java @@ -26,7 +26,7 @@ public final class GatesUpdateMockTests { @Test public void testUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"ox\",\"gateType\":\"Approval\",\"target\":{\"id\":\"suiizynkedyat\",\"updateRunProperties\":{\"name\":\"yhqmibzyhwi\",\"stage\":\"mypyynpcdpu\",\"group\":\"zgmwznmabikns\",\"timing\":\"Before\"}},\"state\":\"Pending\"},\"eTag\":\"hxbld\",\"id\":\"wwrlkdmtncv\",\"name\":\"kotl\",\"type\":\"xdy\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"wkyhkobopgxe\",\"gateType\":\"Approval\",\"target\":{\"id\":\"owepbqpcrfkb\",\"updateRunProperties\":{\"name\":\"csnjvcdwxlpqekft\",\"stage\":\"htjsying\",\"group\":\"qatmtdhtmdvy\",\"timing\":\"Before\"}},\"state\":\"Pending\"},\"eTag\":\"dgszywkbirryuzh\",\"id\":\"kj\",\"name\":\"qrvqq\",\"type\":\"atjinrvgoupmfiib\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,13 +36,13 @@ public void testUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Gate response = manager.gates() - .update("n", "synljphuopxodl", "iyntorzihle", - new GatePatch().withProperties(new GatePatchProperties().withState(GateState.PENDING)), "jswsrmslyz", - "pzbchck", com.azure.core.util.Context.NONE); + .update("semdwzrmu", "apfcqdpsq", "qvpsvuoymg", + new GatePatch().withProperties(new GatePatchProperties().withState(GateState.PENDING)), "elvezrypq", + "mfe", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ox", response.displayName()); + Assertions.assertEquals("wkyhkobopgxe", response.displayName()); Assertions.assertEquals(GateType.APPROVAL, response.gateType()); - Assertions.assertEquals("suiizynkedyat", response.target().id()); + Assertions.assertEquals("owepbqpcrfkb", response.target().id()); Assertions.assertEquals(Timing.BEFORE, response.target().updateRunProperties().timing()); Assertions.assertEquals(GateState.PENDING, response.state()); } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GenerateResponseInnerTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GenerateResponseInnerTests.java index bfb79827f404..d11e2251df94 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GenerateResponseInnerTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/GenerateResponseInnerTests.java @@ -10,7 +10,6 @@ public final class GenerateResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - GenerateResponseInner model - = BinaryData.fromString("{\"id\":\"jhxxjyn\"}").toObject(GenerateResponseInner.class); + GenerateResponseInner model = BinaryData.fromString("{\"id\":\"c\"}").toObject(GenerateResponseInner.class); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedClusterUpdateTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedClusterUpdateTests.java index 49c82990fc3a..edd0f21dbb1d 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedClusterUpdateTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedClusterUpdateTests.java @@ -18,24 +18,24 @@ public final class ManagedClusterUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedClusterUpdate model = BinaryData.fromString( - "{\"upgrade\":{\"type\":\"ControlPlaneOnly\",\"kubernetesVersion\":\"nuqszfkbey\"},\"nodeImageSelection\":{\"type\":\"Latest\",\"customNodeImageVersions\":[{\"version\":\"mwvvjektcxsenhw\"},{\"version\":\"s\"},{\"version\":\"rzpwvlqdqgbiq\"}]}}") + "{\"upgrade\":{\"type\":\"NodeImageOnly\",\"kubernetesVersion\":\"qbhsfxobl\"},\"nodeImageSelection\":{\"type\":\"Custom\",\"customNodeImageVersions\":[{\"version\":\"pe\"},{\"version\":\"wfbkrvrns\"},{\"version\":\"hqjohxcrsbfova\"}]}}") .toObject(ManagedClusterUpdate.class); - Assertions.assertEquals(ManagedClusterUpgradeType.CONTROL_PLANE_ONLY, model.upgrade().type()); - Assertions.assertEquals("nuqszfkbey", model.upgrade().kubernetesVersion()); - Assertions.assertEquals(NodeImageSelectionType.LATEST, model.nodeImageSelection().type()); + Assertions.assertEquals(ManagedClusterUpgradeType.NODE_IMAGE_ONLY, model.upgrade().type()); + Assertions.assertEquals("qbhsfxobl", model.upgrade().kubernetesVersion()); + Assertions.assertEquals(NodeImageSelectionType.CUSTOM, model.nodeImageSelection().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedClusterUpdate model = new ManagedClusterUpdate() - .withUpgrade(new ManagedClusterUpgradeSpec().withType(ManagedClusterUpgradeType.CONTROL_PLANE_ONLY) - .withKubernetesVersion("nuqszfkbey")) - .withNodeImageSelection(new NodeImageSelection().withType(NodeImageSelectionType.LATEST) + .withUpgrade(new ManagedClusterUpgradeSpec().withType(ManagedClusterUpgradeType.NODE_IMAGE_ONLY) + .withKubernetesVersion("qbhsfxobl")) + .withNodeImageSelection(new NodeImageSelection().withType(NodeImageSelectionType.CUSTOM) .withCustomNodeImageVersions( Arrays.asList(new NodeImageVersion(), new NodeImageVersion(), new NodeImageVersion()))); model = BinaryData.fromObject(model).toObject(ManagedClusterUpdate.class); - Assertions.assertEquals(ManagedClusterUpgradeType.CONTROL_PLANE_ONLY, model.upgrade().type()); - Assertions.assertEquals("nuqszfkbey", model.upgrade().kubernetesVersion()); - Assertions.assertEquals(NodeImageSelectionType.LATEST, model.nodeImageSelection().type()); + Assertions.assertEquals(ManagedClusterUpgradeType.NODE_IMAGE_ONLY, model.upgrade().type()); + Assertions.assertEquals("qbhsfxobl", model.upgrade().kubernetesVersion()); + Assertions.assertEquals(NodeImageSelectionType.CUSTOM, model.nodeImageSelection().type()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedClusterUpgradeSpecTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedClusterUpgradeSpecTests.java index fb940053cbb0..168286fa0438 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedClusterUpgradeSpecTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedClusterUpgradeSpecTests.java @@ -13,19 +13,19 @@ public final class ManagedClusterUpgradeSpecTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedClusterUpgradeSpec model - = BinaryData.fromString("{\"type\":\"NodeImageOnly\",\"kubernetesVersion\":\"hkaetcktvfc\"}") + = BinaryData.fromString("{\"type\":\"ControlPlaneOnly\",\"kubernetesVersion\":\"uvwbhsqfs\"}") .toObject(ManagedClusterUpgradeSpec.class); - Assertions.assertEquals(ManagedClusterUpgradeType.NODE_IMAGE_ONLY, model.type()); - Assertions.assertEquals("hkaetcktvfc", model.kubernetesVersion()); + Assertions.assertEquals(ManagedClusterUpgradeType.CONTROL_PLANE_ONLY, model.type()); + Assertions.assertEquals("uvwbhsqfs", model.kubernetesVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedClusterUpgradeSpec model - = new ManagedClusterUpgradeSpec().withType(ManagedClusterUpgradeType.NODE_IMAGE_ONLY) - .withKubernetesVersion("hkaetcktvfc"); + = new ManagedClusterUpgradeSpec().withType(ManagedClusterUpgradeType.CONTROL_PLANE_ONLY) + .withKubernetesVersion("uvwbhsqfs"); model = BinaryData.fromObject(model).toObject(ManagedClusterUpgradeSpec.class); - Assertions.assertEquals(ManagedClusterUpgradeType.NODE_IMAGE_ONLY, model.type()); - Assertions.assertEquals("hkaetcktvfc", model.kubernetesVersion()); + Assertions.assertEquals(ManagedClusterUpgradeType.CONTROL_PLANE_ONLY, model.type()); + Assertions.assertEquals("uvwbhsqfs", model.kubernetesVersion()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedNamespacePropertiesTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedNamespacePropertiesTests.java new file mode 100644 index 000000000000..c06098f1ecea --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ManagedNamespacePropertiesTests.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.containerservicefleet.models.ManagedNamespaceProperties; +import com.azure.resourcemanager.containerservicefleet.models.NetworkPolicy; +import com.azure.resourcemanager.containerservicefleet.models.PolicyRule; +import com.azure.resourcemanager.containerservicefleet.models.ResourceQuota; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ManagedNamespacePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedNamespaceProperties model = BinaryData.fromString( + "{\"labels\":{\"njeaseipheofloke\":\"hcbonqvpkvlr\",\"enjbdlwtgrhp\":\"y\",\"umasxazjpq\":\"jp\",\"ualhbxxhejj\":\"e\"},\"annotations\":{\"mcy\":\"dudgwdslfhot\"},\"defaultResourceQuota\":{\"cpuRequest\":\"lbjnpgacftadehx\",\"cpuLimit\":\"tyfsoppusuesn\",\"memoryRequest\":\"dejbavo\",\"memoryLimit\":\"zdmohctbqvu\"},\"defaultNetworkPolicy\":{\"ingress\":\"AllowAll\",\"egress\":\"DenyAll\"}}") + .toObject(ManagedNamespaceProperties.class); + Assertions.assertEquals("hcbonqvpkvlr", model.labels().get("njeaseipheofloke")); + Assertions.assertEquals("dudgwdslfhot", model.annotations().get("mcy")); + Assertions.assertEquals("lbjnpgacftadehx", model.defaultResourceQuota().cpuRequest()); + Assertions.assertEquals("tyfsoppusuesn", model.defaultResourceQuota().cpuLimit()); + Assertions.assertEquals("dejbavo", model.defaultResourceQuota().memoryRequest()); + Assertions.assertEquals("zdmohctbqvu", model.defaultResourceQuota().memoryLimit()); + Assertions.assertEquals(PolicyRule.ALLOW_ALL, model.defaultNetworkPolicy().ingress()); + Assertions.assertEquals(PolicyRule.DENY_ALL, model.defaultNetworkPolicy().egress()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ManagedNamespaceProperties model = new ManagedNamespaceProperties() + .withLabels( + mapOf("njeaseipheofloke", "hcbonqvpkvlr", "enjbdlwtgrhp", "y", "umasxazjpq", "jp", "ualhbxxhejj", "e")) + .withAnnotations(mapOf("mcy", "dudgwdslfhot")) + .withDefaultResourceQuota(new ResourceQuota().withCpuRequest("lbjnpgacftadehx") + .withCpuLimit("tyfsoppusuesn") + .withMemoryRequest("dejbavo") + .withMemoryLimit("zdmohctbqvu")) + .withDefaultNetworkPolicy( + new NetworkPolicy().withIngress(PolicyRule.ALLOW_ALL).withEgress(PolicyRule.DENY_ALL)); + model = BinaryData.fromObject(model).toObject(ManagedNamespaceProperties.class); + Assertions.assertEquals("hcbonqvpkvlr", model.labels().get("njeaseipheofloke")); + Assertions.assertEquals("dudgwdslfhot", model.annotations().get("mcy")); + Assertions.assertEquals("lbjnpgacftadehx", model.defaultResourceQuota().cpuRequest()); + Assertions.assertEquals("tyfsoppusuesn", model.defaultResourceQuota().cpuLimit()); + Assertions.assertEquals("dejbavo", model.defaultResourceQuota().memoryRequest()); + Assertions.assertEquals("zdmohctbqvu", model.defaultResourceQuota().memoryLimit()); + Assertions.assertEquals(PolicyRule.ALLOW_ALL, model.defaultNetworkPolicy().ingress()); + Assertions.assertEquals(PolicyRule.DENY_ALL, model.defaultNetworkPolicy().egress()); + } + + // 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/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NetworkPolicyTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NetworkPolicyTests.java new file mode 100644 index 000000000000..0e7257d2879c --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NetworkPolicyTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.containerservicefleet.models.NetworkPolicy; +import com.azure.resourcemanager.containerservicefleet.models.PolicyRule; +import org.junit.jupiter.api.Assertions; + +public final class NetworkPolicyTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkPolicy model = BinaryData.fromString("{\"ingress\":\"AllowAll\",\"egress\":\"AllowSameNamespace\"}") + .toObject(NetworkPolicy.class); + Assertions.assertEquals(PolicyRule.ALLOW_ALL, model.ingress()); + Assertions.assertEquals(PolicyRule.ALLOW_SAME_NAMESPACE, model.egress()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkPolicy model + = new NetworkPolicy().withIngress(PolicyRule.ALLOW_ALL).withEgress(PolicyRule.ALLOW_SAME_NAMESPACE); + model = BinaryData.fromObject(model).toObject(NetworkPolicy.class); + Assertions.assertEquals(PolicyRule.ALLOW_ALL, model.ingress()); + Assertions.assertEquals(PolicyRule.ALLOW_SAME_NAMESPACE, model.egress()); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageSelectionStatusTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageSelectionStatusTests.java index 71e198f44482..56d823633138 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageSelectionStatusTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageSelectionStatusTests.java @@ -10,8 +10,8 @@ public final class NodeImageSelectionStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NodeImageSelectionStatus model = BinaryData - .fromString("{\"selectedNodeImageVersions\":[{\"version\":\"nmpxttdb\"},{\"version\":\"bnlankxmyskpb\"}]}") + NodeImageSelectionStatus model = BinaryData.fromString( + "{\"selectedNodeImageVersions\":[{\"version\":\"xzb\"},{\"version\":\"blylpstdbh\"},{\"version\":\"srzdzucerscdn\"},{\"version\":\"evfiwjmygt\"}]}") .toObject(NodeImageSelectionStatus.class); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageSelectionTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageSelectionTests.java index 541a97faa3fb..d8bbc7be76c4 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageSelectionTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageSelectionTests.java @@ -14,18 +14,17 @@ public final class NodeImageSelectionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NodeImageSelection model = BinaryData.fromString( - "{\"type\":\"Latest\",\"customNodeImageVersions\":[{\"version\":\"kymuctqhjfbebr\"},{\"version\":\"xerf\"},{\"version\":\"utttxfvjrbirp\"}]}") - .toObject(NodeImageSelection.class); - Assertions.assertEquals(NodeImageSelectionType.LATEST, model.type()); + NodeImageSelection model + = BinaryData.fromString("{\"type\":\"Custom\",\"customNodeImageVersions\":[{\"version\":\"birx\"}]}") + .toObject(NodeImageSelection.class); + Assertions.assertEquals(NodeImageSelectionType.CUSTOM, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NodeImageSelection model = new NodeImageSelection().withType(NodeImageSelectionType.LATEST) - .withCustomNodeImageVersions( - Arrays.asList(new NodeImageVersion(), new NodeImageVersion(), new NodeImageVersion())); + NodeImageSelection model = new NodeImageSelection().withType(NodeImageSelectionType.CUSTOM) + .withCustomNodeImageVersions(Arrays.asList(new NodeImageVersion())); model = BinaryData.fromObject(model).toObject(NodeImageSelection.class); - Assertions.assertEquals(NodeImageSelectionType.LATEST, model.type()); + Assertions.assertEquals(NodeImageSelectionType.CUSTOM, model.type()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageVersionTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageVersionTests.java index 7fef5e7bbffe..3ceaf7291252 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageVersionTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/NodeImageVersionTests.java @@ -11,7 +11,7 @@ public final class NodeImageVersionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NodeImageVersion model - = BinaryData.fromString("{\"version\":\"epcyvahfnlj\"}").toObject(NodeImageVersion.class); + = BinaryData.fromString("{\"version\":\"ybsrfbjfdtwss\"}").toObject(NodeImageVersion.class); } @org.junit.jupiter.api.Test diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/OperationsListMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/OperationsListMockTests.java index cf321e9b8c50..381062e98991 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/OperationsListMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"divkrt\",\"isDataAction\":false,\"display\":{\"provider\":\"zvszj\",\"resource\":\"uvjfdxxive\",\"operation\":\"t\",\"description\":\"aqtdoqmcbx\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"elsfeaen\",\"isDataAction\":true,\"display\":{\"provider\":\"tkl\",\"resource\":\"xbjhwuaanozjosph\",\"operation\":\"ulpjr\",\"description\":\"ag\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/PropertySelectorRequirementTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/PropertySelectorRequirementTests.java new file mode 100644 index 000000000000..063f00e4aed2 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/PropertySelectorRequirementTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelectorOperator; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelectorRequirement; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class PropertySelectorRequirementTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PropertySelectorRequirement model = BinaryData + .fromString( + "{\"name\":\"lihkaetcktvfc\",\"operator\":\"Gt\",\"values\":[\"snkymuctq\",\"jf\",\"ebrjcxe\"]}") + .toObject(PropertySelectorRequirement.class); + Assertions.assertEquals("lihkaetcktvfc", model.name()); + Assertions.assertEquals(PropertySelectorOperator.GT, model.operator()); + Assertions.assertEquals("snkymuctq", model.values().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PropertySelectorRequirement model = new PropertySelectorRequirement().withName("lihkaetcktvfc") + .withOperator(PropertySelectorOperator.GT) + .withValues(Arrays.asList("snkymuctq", "jf", "ebrjcxe")); + model = BinaryData.fromObject(model).toObject(PropertySelectorRequirement.class); + Assertions.assertEquals("lihkaetcktvfc", model.name()); + Assertions.assertEquals(PropertySelectorOperator.GT, model.operator()); + Assertions.assertEquals("snkymuctq", model.values().get(0)); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/PropertySelectorTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/PropertySelectorTests.java new file mode 100644 index 000000000000..287ea91295b6 --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/PropertySelectorTests.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelector; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelectorOperator; +import com.azure.resourcemanager.containerservicefleet.models.PropertySelectorRequirement; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class PropertySelectorTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PropertySelector model = BinaryData.fromString( + "{\"matchExpressions\":[{\"name\":\"lpbuxwgipwhonowk\",\"operator\":\"Lt\",\"values\":[\"wankixzbi\",\"jeputtmrywn\",\"zoqftiyqzrnkcqvy\",\"lwh\"]},{\"name\":\"lsicohoqqnwv\",\"operator\":\"Ne\",\"values\":[\"avwhheunm\"]},{\"name\":\"qhgyxzkonocukok\",\"operator\":\"Ne\",\"values\":[\"xuconu\",\"szfkbe\"]},{\"name\":\"pewr\",\"operator\":\"Eq\",\"values\":[\"wv\",\"jektcxsenh\",\"lrsf\",\"rzpwvlqdqgbiq\"]}]}") + .toObject(PropertySelector.class); + Assertions.assertEquals("lpbuxwgipwhonowk", model.matchExpressions().get(0).name()); + Assertions.assertEquals(PropertySelectorOperator.LT, model.matchExpressions().get(0).operator()); + Assertions.assertEquals("wankixzbi", model.matchExpressions().get(0).values().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PropertySelector model = new PropertySelector().withMatchExpressions(Arrays.asList( + new PropertySelectorRequirement().withName("lpbuxwgipwhonowk") + .withOperator(PropertySelectorOperator.LT) + .withValues(Arrays.asList("wankixzbi", "jeputtmrywn", "zoqftiyqzrnkcqvy", "lwh")), + new PropertySelectorRequirement().withName("lsicohoqqnwv") + .withOperator(PropertySelectorOperator.NE) + .withValues(Arrays.asList("avwhheunm")), + new PropertySelectorRequirement().withName("qhgyxzkonocukok") + .withOperator(PropertySelectorOperator.NE) + .withValues(Arrays.asList("xuconu", "szfkbe")), + new PropertySelectorRequirement().withName("pewr") + .withOperator(PropertySelectorOperator.EQ) + .withValues(Arrays.asList("wv", "jektcxsenh", "lrsf", "rzpwvlqdqgbiq")))); + model = BinaryData.fromObject(model).toObject(PropertySelector.class); + Assertions.assertEquals("lpbuxwgipwhonowk", model.matchExpressions().get(0).name()); + Assertions.assertEquals(PropertySelectorOperator.LT, model.matchExpressions().get(0).operator()); + Assertions.assertEquals("wankixzbi", model.matchExpressions().get(0).values().get(0)); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ResourceQuotaTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ResourceQuotaTests.java new file mode 100644 index 000000000000..0b08f281a82b --- /dev/null +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/ResourceQuotaTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservicefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.containerservicefleet.models.ResourceQuota; +import org.junit.jupiter.api.Assertions; + +public final class ResourceQuotaTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ResourceQuota model = BinaryData.fromString( + "{\"cpuRequest\":\"vo\",\"cpuLimit\":\"ujjugwdkcglh\",\"memoryRequest\":\"azjdyggd\",\"memoryLimit\":\"ixhbkuofqweykhm\"}") + .toObject(ResourceQuota.class); + Assertions.assertEquals("vo", model.cpuRequest()); + Assertions.assertEquals("ujjugwdkcglh", model.cpuLimit()); + Assertions.assertEquals("azjdyggd", model.memoryRequest()); + Assertions.assertEquals("ixhbkuofqweykhm", model.memoryLimit()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ResourceQuota model = new ResourceQuota().withCpuRequest("vo") + .withCpuLimit("ujjugwdkcglh") + .withMemoryRequest("azjdyggd") + .withMemoryLimit("ixhbkuofqweykhm"); + model = BinaryData.fromObject(model).toObject(ResourceQuota.class); + Assertions.assertEquals("vo", model.cpuRequest()); + Assertions.assertEquals("ujjugwdkcglh", model.cpuLimit()); + Assertions.assertEquals("azjdyggd", model.memoryRequest()); + Assertions.assertEquals("ixhbkuofqweykhm", model.memoryLimit()); + } +} diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/SkipPropertiesTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/SkipPropertiesTests.java index 5cce243413bf..3120205a28bf 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/SkipPropertiesTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/SkipPropertiesTests.java @@ -14,18 +14,21 @@ public final class SkipPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SkipProperties model = BinaryData.fromString("{\"targets\":[{\"type\":\"Stage\",\"name\":\"bttk\"}]}") + SkipProperties model = BinaryData + .fromString( + "{\"targets\":[{\"type\":\"Group\",\"name\":\"mond\"},{\"type\":\"Group\",\"name\":\"quxvypomgkop\"}]}") .toObject(SkipProperties.class); - Assertions.assertEquals(TargetType.STAGE, model.targets().get(0).type()); - Assertions.assertEquals("bttk", model.targets().get(0).name()); + Assertions.assertEquals(TargetType.GROUP, model.targets().get(0).type()); + Assertions.assertEquals("mond", model.targets().get(0).name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SkipProperties model = new SkipProperties() - .withTargets(Arrays.asList(new SkipTarget().withType(TargetType.STAGE).withName("bttk"))); + .withTargets(Arrays.asList(new SkipTarget().withType(TargetType.GROUP).withName("mond"), + new SkipTarget().withType(TargetType.GROUP).withName("quxvypomgkop"))); model = BinaryData.fromObject(model).toObject(SkipProperties.class); - Assertions.assertEquals(TargetType.STAGE, model.targets().get(0).type()); - Assertions.assertEquals("bttk", model.targets().get(0).name()); + Assertions.assertEquals(TargetType.GROUP, model.targets().get(0).type()); + Assertions.assertEquals("mond", model.targets().get(0).name()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/SkipTargetTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/SkipTargetTests.java index daac16cf8b48..902334842d18 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/SkipTargetTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/SkipTargetTests.java @@ -13,16 +13,16 @@ public final class SkipTargetTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SkipTarget model - = BinaryData.fromString("{\"type\":\"Member\",\"name\":\"ywpnvjt\"}").toObject(SkipTarget.class); - Assertions.assertEquals(TargetType.MEMBER, model.type()); - Assertions.assertEquals("ywpnvjt", model.name()); + = BinaryData.fromString("{\"type\":\"Group\",\"name\":\"hojvpajqgxysmocm\"}").toObject(SkipTarget.class); + Assertions.assertEquals(TargetType.GROUP, model.type()); + Assertions.assertEquals("hojvpajqgxysmocm", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SkipTarget model = new SkipTarget().withType(TargetType.MEMBER).withName("ywpnvjt"); + SkipTarget model = new SkipTarget().withType(TargetType.GROUP).withName("hojvpajqgxysmocm"); model = BinaryData.fromObject(model).toObject(SkipTarget.class); - Assertions.assertEquals(TargetType.MEMBER, model.type()); - Assertions.assertEquals("ywpnvjt", model.name()); + Assertions.assertEquals(TargetType.GROUP, model.type()); + Assertions.assertEquals("hojvpajqgxysmocm", model.name()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateGroupTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateGroupTests.java index 2b66af25f2e7..30050229e673 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateGroupTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateGroupTests.java @@ -15,29 +15,29 @@ public final class UpdateGroupTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UpdateGroup model = BinaryData.fromString( - "{\"name\":\"mryw\",\"beforeGates\":[{\"displayName\":\"qftiy\",\"type\":\"Approval\"},{\"displayName\":\"n\",\"type\":\"Approval\"},{\"displayName\":\"vyxlwhzlsicohoqq\",\"type\":\"Approval\"},{\"displayName\":\"lryav\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"nmmqhgyxzkon\",\"type\":\"Approval\"}]}") + "{\"name\":\"nrmfqjhhk\",\"beforeGates\":[{\"displayName\":\"jy\",\"type\":\"Approval\"},{\"displayName\":\"xxjyngudivkrtsw\",\"type\":\"Approval\"},{\"displayName\":\"zvszj\",\"type\":\"Approval\"},{\"displayName\":\"vjfdx\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"vtcqaqtdo\",\"type\":\"Approval\"}]}") .toObject(UpdateGroup.class); - Assertions.assertEquals("mryw", model.name()); - Assertions.assertEquals("qftiy", model.beforeGates().get(0).displayName()); + Assertions.assertEquals("nrmfqjhhk", model.name()); + Assertions.assertEquals("jy", model.beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.beforeGates().get(0).type()); - Assertions.assertEquals("nmmqhgyxzkon", model.afterGates().get(0).displayName()); + Assertions.assertEquals("vtcqaqtdo", model.afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.afterGates().get(0).type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UpdateGroup model = new UpdateGroup().withName("mryw") - .withBeforeGates(Arrays.asList(new GateConfiguration().withDisplayName("qftiy").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("n").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("vyxlwhzlsicohoqq").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("lryav").withType(GateType.APPROVAL))) + UpdateGroup model = new UpdateGroup().withName("nrmfqjhhk") + .withBeforeGates(Arrays.asList(new GateConfiguration().withDisplayName("jy").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("xxjyngudivkrtsw").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("zvszj").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("vjfdx").withType(GateType.APPROVAL))) .withAfterGates( - Arrays.asList(new GateConfiguration().withDisplayName("nmmqhgyxzkon").withType(GateType.APPROVAL))); + Arrays.asList(new GateConfiguration().withDisplayName("vtcqaqtdo").withType(GateType.APPROVAL))); model = BinaryData.fromObject(model).toObject(UpdateGroup.class); - Assertions.assertEquals("mryw", model.name()); - Assertions.assertEquals("qftiy", model.beforeGates().get(0).displayName()); + Assertions.assertEquals("nrmfqjhhk", model.name()); + Assertions.assertEquals("jy", model.beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.beforeGates().get(0).type()); - Assertions.assertEquals("nmmqhgyxzkon", model.afterGates().get(0).displayName()); + Assertions.assertEquals("vtcqaqtdo", model.afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.afterGates().get(0).type()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunGateTargetPropertiesTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunGateTargetPropertiesTests.java index 8e4b9eba1b7b..33a5bfd2695a 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunGateTargetPropertiesTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunGateTargetPropertiesTests.java @@ -12,9 +12,10 @@ public final class UpdateRunGateTargetPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UpdateRunGateTargetProperties model - = BinaryData.fromString("{\"name\":\"e\",\"stage\":\"a\",\"group\":\"uhrzayvvt\",\"timing\":\"After\"}") - .toObject(UpdateRunGateTargetProperties.class); - Assertions.assertEquals(Timing.AFTER, model.timing()); + UpdateRunGateTargetProperties model = BinaryData + .fromString( + "{\"name\":\"jn\",\"stage\":\"ckhsmtxpsieb\",\"group\":\"hvpesapskrdqm\",\"timing\":\"Before\"}") + .toObject(UpdateRunGateTargetProperties.class); + Assertions.assertEquals(Timing.BEFORE, model.timing()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunListResultTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunListResultTests.java index 7171000560f6..7b65e6aec5e1 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunListResultTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunListResultTests.java @@ -14,16 +14,15 @@ public final class UpdateRunListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UpdateRunListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"updateStrategyId\":\"cxy\",\"strategy\":{\"stages\":[{\"name\":\"tnrsyn\"}]},\"managedClusterUpdate\":{\"upgrade\":{\"type\":\"Full\",\"kubernetesVersion\":\"dybyxczfclhaa\"},\"nodeImageSelection\":{\"type\":\"Latest\",\"customNodeImageVersions\":[{}]}},\"status\":{\"status\":{\"startTime\":\"2021-10-01T07:26:45Z\",\"completedTime\":\"2021-02-16T08:29:45Z\",\"state\":\"Running\",\"error\":{}},\"stages\":[{},{}],\"nodeImageSelection\":{\"selectedNodeImageVersions\":[{},{},{},{}]}},\"autoUpgradeProfileId\":\"cocmnyyaztt\"},\"eTag\":\"wwrq\",\"id\":\"edckzywbiexzfey\",\"name\":\"eaxib\",\"type\":\"ujwb\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"updateStrategyId\":\"muzyoxaepdk\",\"strategy\":{\"stages\":[{\"name\":\"ncuxrhdwb\"},{\"name\":\"v\"}]},\"managedClusterUpdate\":{\"upgrade\":{\"type\":\"NodeImageOnly\",\"kubernetesVersion\":\"iwdjswztsdbpgn\"},\"nodeImageSelection\":{\"type\":\"Consistent\",\"customNodeImageVersions\":[{},{},{}]}},\"status\":{\"status\":{\"startTime\":\"2021-04-28T02:43:47Z\",\"completedTime\":\"2021-03-08T11:52:03Z\",\"state\":\"Failed\",\"error\":{}},\"stages\":[{},{},{},{}],\"nodeImageSelection\":{\"selectedNodeImageVersions\":[{},{},{},{}]}},\"autoUpgradeProfileId\":\"xwtctyqiklbbovpl\"},\"eTag\":\"bhvgy\",\"id\":\"uosvmkfssxqukk\",\"name\":\"plgmgsxnk\",\"type\":\"zkd\"},{\"properties\":{\"provisioningState\":\"Failed\",\"updateStrategyId\":\"lopwiyig\",\"strategy\":{\"stages\":[{\"name\":\"kdwzbaiuebbaumny\"},{\"name\":\"upedeojnabckhs\"}]},\"managedClusterUpdate\":{\"upgrade\":{\"type\":\"NodeImageOnly\",\"kubernetesVersion\":\"psiebtfhvpes\"},\"nodeImageSelection\":{\"type\":\"Custom\",\"customNodeImageVersions\":[{},{},{},{}]}},\"status\":{\"status\":{\"startTime\":\"2021-05-04T20:04:22Z\",\"completedTime\":\"2021-01-31T10:46:35Z\",\"state\":\"Stopping\",\"error\":{}},\"stages\":[{},{}],\"nodeImageSelection\":{\"selectedNodeImageVersions\":[{},{},{}]}},\"autoUpgradeProfileId\":\"xuutkncwscwsv\"},\"eTag\":\"otogtwrupqs\",\"id\":\"nmic\",\"name\":\"kvceoveilovnotyf\",\"type\":\"fcnj\"}],\"nextLink\":\"cn\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"updateStrategyId\":\"tmweriofzpyq\",\"strategy\":{\"stages\":[{\"name\":\"wab\"},{\"name\":\"ets\"},{\"name\":\"hszhedplvwiwu\"},{\"name\":\"mwmbes\"}]},\"managedClusterUpdate\":{\"upgrade\":{\"type\":\"Full\",\"kubernetesVersion\":\"k\"},\"nodeImageSelection\":{\"type\":\"Consistent\",\"customNodeImageVersions\":[{},{},{}]}},\"status\":{\"status\":{\"startTime\":\"2021-11-04T18:03:15Z\",\"completedTime\":\"2021-04-04T02:55:07Z\",\"state\":\"Failed\",\"error\":{}},\"stages\":[{}],\"nodeImageSelection\":{\"selectedNodeImageVersions\":[{}]}},\"autoUpgradeProfileId\":\"sikvmkqzeqqkdlt\"},\"eTag\":\"xmhhvhgureo\",\"id\":\"wobdagxtibqdx\",\"name\":\"xwak\",\"type\":\"ogqxndlkzgxhuri\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"updateStrategyId\":\"dxunkbebxmubyyn\",\"strategy\":{\"stages\":[{\"name\":\"rbqtkoie\"}]},\"managedClusterUpdate\":{\"upgrade\":{\"type\":\"Full\",\"kubernetesVersion\":\"otgqrlltmu\"},\"nodeImageSelection\":{\"type\":\"Consistent\",\"customNodeImageVersions\":[{},{},{},{}]}},\"status\":{\"status\":{\"startTime\":\"2021-10-11T08:08:51Z\",\"completedTime\":\"2021-04-09T22:19:25Z\",\"state\":\"Running\",\"error\":{}},\"stages\":[{},{},{}],\"nodeImageSelection\":{\"selectedNodeImageVersions\":[{},{},{},{}]}},\"autoUpgradeProfileId\":\"uvpb\"},\"eTag\":\"d\",\"id\":\"orppxebmnzbtb\",\"name\":\"jpglkfgohdne\",\"type\":\"el\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"updateStrategyId\":\"yhtozfikdowwqu\",\"strategy\":{\"stages\":[{\"name\":\"zx\"},{\"name\":\"lvithhqzonosgg\"}]},\"managedClusterUpdate\":{\"upgrade\":{\"type\":\"NodeImageOnly\",\"kubernetesVersion\":\"ohfwds\"},\"nodeImageSelection\":{\"type\":\"Custom\",\"customNodeImageVersions\":[{},{}]}},\"status\":{\"status\":{\"startTime\":\"2021-03-15T03:19:59Z\",\"completedTime\":\"2021-08-17T16:46:36Z\",\"state\":\"Completed\",\"error\":{}},\"stages\":[{},{}],\"nodeImageSelection\":{\"selectedNodeImageVersions\":[{}]}},\"autoUpgradeProfileId\":\"zewk\"},\"eTag\":\"hqcrailvpnpp\",\"id\":\"flrwd\",\"name\":\"hdlxyjrxsagafcn\",\"type\":\"hgw\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"updateStrategyId\":\"dgfbcvkcvqvpke\",\"strategy\":{\"stages\":[{\"name\":\"vdrhvoo\"},{\"name\":\"sotbob\"},{\"name\":\"dopcjwvnh\"}]},\"managedClusterUpdate\":{\"upgrade\":{\"type\":\"Full\",\"kubernetesVersion\":\"wmgxcxrsl\"},\"nodeImageSelection\":{\"type\":\"Consistent\",\"customNodeImageVersions\":[{},{}]}},\"status\":{\"status\":{\"startTime\":\"2021-07-28T00:53:44Z\",\"completedTime\":\"2021-09-01T04:33:23Z\",\"state\":\"Failed\",\"error\":{}},\"stages\":[{},{}],\"nodeImageSelection\":{\"selectedNodeImageVersions\":[{},{}]}},\"autoUpgradeProfileId\":\"luicpdggkzzlvmbm\"},\"eTag\":\"xmodf\",\"id\":\"efyw\",\"name\":\"bpfvm\",\"type\":\"yhrfouyftaakcpw\"}],\"nextLink\":\"zvqtmnubexkp\"}") .toObject(UpdateRunListResult.class); - Assertions.assertEquals("cxy", model.value().get(0).updateStrategyId()); - Assertions.assertEquals("tnrsyn", model.value().get(0).strategy().stages().get(0).name()); + Assertions.assertEquals("tmweriofzpyq", model.value().get(0).updateStrategyId()); + Assertions.assertEquals("wab", model.value().get(0).strategy().stages().get(0).name()); Assertions.assertEquals(ManagedClusterUpgradeType.FULL, model.value().get(0).managedClusterUpdate().upgrade().type()); - Assertions.assertEquals("dybyxczfclhaa", - model.value().get(0).managedClusterUpdate().upgrade().kubernetesVersion()); - Assertions.assertEquals(NodeImageSelectionType.LATEST, + Assertions.assertEquals("k", model.value().get(0).managedClusterUpdate().upgrade().kubernetesVersion()); + Assertions.assertEquals(NodeImageSelectionType.CONSISTENT, model.value().get(0).managedClusterUpdate().nodeImageSelection().type()); - Assertions.assertEquals("cn", model.nextLink()); + Assertions.assertEquals("zvqtmnubexkp", model.nextLink()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunStrategyTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunStrategyTests.java index cc7f072d7ee2..803df90b1466 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunStrategyTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunStrategyTests.java @@ -17,81 +17,76 @@ public final class UpdateRunStrategyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UpdateRunStrategy model = BinaryData.fromString( - "{\"stages\":[{\"name\":\"ypvhezrkg\",\"groups\":[{\"name\":\"jrefovgmkqsle\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":203599917,\"beforeGates\":[{\"displayName\":\"gjcrcczsqpjhvm\",\"type\":\"Approval\"},{\"displayName\":\"v\",\"type\":\"Approval\"},{\"displayName\":\"ounqecano\",\"type\":\"Approval\"},{\"displayName\":\"pfhyhl\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"pjmcmatuokthfuiu\",\"type\":\"Approval\"},{\"displayName\":\"sfcpkvxodpuozm\",\"type\":\"Approval\"}]},{\"name\":\"ydagfuaxbe\",\"groups\":[{\"name\":\"uokktwhrdxwz\",\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":760240945,\"beforeGates\":[{\"displayName\":\"ryocfsfksymdd\",\"type\":\"Approval\"},{\"displayName\":\"kiiuxhqyudxor\",\"type\":\"Approval\"},{\"displayName\":\"b\",\"type\":\"Approval\"},{\"displayName\":\"zvyifqrvkdvj\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"vvdfwatkpnpul\",\"type\":\"Approval\"}]},{\"name\":\"xbczwtruwiqz\",\"groups\":[{\"name\":\"vsovmyokac\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":432282678,\"beforeGates\":[{\"displayName\":\"bvvnchrkcciw\",\"type\":\"Approval\"},{\"displayName\":\"uqkhrsajiwku\",\"type\":\"Approval\"},{\"displayName\":\"skghsauuimj\",\"type\":\"Approval\"},{\"displayName\":\"ied\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"yjr\",\"type\":\"Approval\"},{\"displayName\":\"y\",\"type\":\"Approval\"},{\"displayName\":\"v\",\"type\":\"Approval\"},{\"displayName\":\"sonpclhocohs\",\"type\":\"Approval\"}]}]}") + "{\"stages\":[{\"name\":\"jyzhpvgq\",\"groups\":[{\"name\":\"rvxdjzlmw\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":977455104,\"beforeGates\":[{\"displayName\":\"u\",\"type\":\"Approval\"},{\"displayName\":\"thnnpr\",\"type\":\"Approval\"},{\"displayName\":\"peilpjzuaejxdu\",\"type\":\"Approval\"},{\"displayName\":\"kzbbtd\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"ekg\",\"type\":\"Approval\"},{\"displayName\":\"zuhkfpbsjyof\",\"type\":\"Approval\"},{\"displayName\":\"uusdttouwa\",\"type\":\"Approval\"},{\"displayName\":\"kqvkelnsmvbxwyjs\",\"type\":\"Approval\"}]},{\"name\":\"hhcaal\",\"groups\":[{\"name\":\"xisxyawjoyaqcsl\",\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"xznelixhnrztf\",\"beforeGates\":[{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}]},{\"name\":\"laulppg\",\"beforeGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"},{\"type\":\"Approval\"}],\"afterGates\":[{\"type\":\"Approval\"},{\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":332175768,\"beforeGates\":[{\"displayName\":\"igvpgylg\",\"type\":\"Approval\"},{\"displayName\":\"txmedj\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"n\",\"type\":\"Approval\"},{\"displayName\":\"ncw\",\"type\":\"Approval\"},{\"displayName\":\"xgk\",\"type\":\"Approval\"}]}]}") .toObject(UpdateRunStrategy.class); - Assertions.assertEquals("ypvhezrkg", model.stages().get(0).name()); - Assertions.assertEquals("jrefovgmkqsle", model.stages().get(0).groups().get(0).name()); + Assertions.assertEquals("jyzhpvgq", model.stages().get(0).name()); + Assertions.assertEquals("rvxdjzlmw", model.stages().get(0).groups().get(0).name()); Assertions.assertEquals(GateType.APPROVAL, model.stages().get(0).groups().get(0).beforeGates().get(0).type()); Assertions.assertEquals(GateType.APPROVAL, model.stages().get(0).groups().get(0).afterGates().get(0).type()); - Assertions.assertEquals(203599917, model.stages().get(0).afterStageWaitInSeconds()); - Assertions.assertEquals("gjcrcczsqpjhvm", model.stages().get(0).beforeGates().get(0).displayName()); + Assertions.assertEquals(977455104, model.stages().get(0).afterStageWaitInSeconds()); + Assertions.assertEquals("u", model.stages().get(0).beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.stages().get(0).beforeGates().get(0).type()); - Assertions.assertEquals("pjmcmatuokthfuiu", model.stages().get(0).afterGates().get(0).displayName()); + Assertions.assertEquals("ekg", model.stages().get(0).afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.stages().get(0).afterGates().get(0).type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UpdateRunStrategy model - = new UpdateRunStrategy().withStages(Arrays.asList( - new UpdateStage().withName("ypvhezrkg") - .withGroups(Arrays.asList(new UpdateGroup().withName("jrefovgmkqsle") - .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + UpdateRunStrategy model = new UpdateRunStrategy().withStages(Arrays.asList( + new UpdateStage().withName("jyzhpvgq") + .withGroups(Arrays.asList(new UpdateGroup().withName("rvxdjzlmw") + .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL))))) + .withAfterStageWaitInSeconds(977455104) + .withBeforeGates(Arrays.asList(new GateConfiguration().withDisplayName("u").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("thnnpr").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("peilpjzuaejxdu").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("kzbbtd").withType(GateType.APPROVAL))) + .withAfterGates( + Arrays.asList(new GateConfiguration().withDisplayName("ekg").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("zuhkfpbsjyof").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("uusdttouwa").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("kqvkelnsmvbxwyjs").withType(GateType.APPROVAL))), + new UpdateStage().withName("hhcaal") + .withGroups(Arrays.asList( + new UpdateGroup().withName("xisxyawjoyaqcsl") + .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))))) - .withAfterStageWaitInSeconds(203599917) - .withBeforeGates(Arrays.asList( - new GateConfiguration().withDisplayName("gjcrcczsqpjhvm").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("v").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("ounqecano").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("pfhyhl").withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList( - new GateConfiguration().withDisplayName("pjmcmatuokthfuiu").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("sfcpkvxodpuozm").withType(GateType.APPROVAL))), - new UpdateStage().withName("ydagfuaxbe") - .withGroups(Arrays.asList(new UpdateGroup().withName("uokktwhrdxwz") + new GateConfiguration().withType(GateType.APPROVAL))), + new UpdateGroup().withName("xznelixhnrztf") .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL))) .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))))) - .withAfterStageWaitInSeconds(760240945) - .withBeforeGates(Arrays - .asList(new GateConfiguration().withDisplayName("ryocfsfksymdd").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("kiiuxhqyudxor").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("b").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("zvyifqrvkdvj").withType(GateType.APPROVAL))) - .withAfterGates(Arrays - .asList(new GateConfiguration().withDisplayName("vvdfwatkpnpul").withType(GateType.APPROVAL))), - new UpdateStage().withName("xbczwtruwiqz") - .withGroups(Arrays.asList(new UpdateGroup().withName("vsovmyokac") + new GateConfiguration().withType(GateType.APPROVAL))), + new UpdateGroup().withName("laulppg") .withBeforeGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), - new GateConfiguration().withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL), + new GateConfiguration().withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withType(GateType.APPROVAL), new GateConfiguration().withType(GateType.APPROVAL))))) - .withAfterStageWaitInSeconds(432282678) - .withBeforeGates(Arrays.asList( - new GateConfiguration().withDisplayName("bvvnchrkcciw").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("uqkhrsajiwku").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("skghsauuimj").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("ied").withType(GateType.APPROVAL))) - .withAfterGates( - Arrays.asList(new GateConfiguration().withDisplayName("yjr").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("y").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("v").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("sonpclhocohs").withType(GateType.APPROVAL))))); + .withAfterStageWaitInSeconds(332175768) + .withBeforeGates( + Arrays.asList(new GateConfiguration().withDisplayName("igvpgylg").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("txmedj").withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withDisplayName("n").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("ncw").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("xgk").withType(GateType.APPROVAL))))); model = BinaryData.fromObject(model).toObject(UpdateRunStrategy.class); - Assertions.assertEquals("ypvhezrkg", model.stages().get(0).name()); - Assertions.assertEquals("jrefovgmkqsle", model.stages().get(0).groups().get(0).name()); + Assertions.assertEquals("jyzhpvgq", model.stages().get(0).name()); + Assertions.assertEquals("rvxdjzlmw", model.stages().get(0).groups().get(0).name()); Assertions.assertEquals(GateType.APPROVAL, model.stages().get(0).groups().get(0).beforeGates().get(0).type()); Assertions.assertEquals(GateType.APPROVAL, model.stages().get(0).groups().get(0).afterGates().get(0).type()); - Assertions.assertEquals(203599917, model.stages().get(0).afterStageWaitInSeconds()); - Assertions.assertEquals("gjcrcczsqpjhvm", model.stages().get(0).beforeGates().get(0).displayName()); + Assertions.assertEquals(977455104, model.stages().get(0).afterStageWaitInSeconds()); + Assertions.assertEquals("u", model.stages().get(0).beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.stages().get(0).beforeGates().get(0).type()); - Assertions.assertEquals("pjmcmatuokthfuiu", model.stages().get(0).afterGates().get(0).displayName()); + Assertions.assertEquals("ekg", model.stages().get(0).afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.stages().get(0).afterGates().get(0).type()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsDeleteMockTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsDeleteMockTests.java index cc402f9529aa..6be11245e511 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsDeleteMockTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateRunsDeleteMockTests.java @@ -27,8 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.updateRuns() - .delete("r", "lsfeaenwabfatkld", "xbjhwuaanozjosph", "oulpjrv", com.azure.core.util.Context.NONE); + manager.updateRuns().delete("lik", "xwslolbqpv", "zlmvfelfktgp", "crpw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateStageTests.java b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateStageTests.java index 1ab050053c88..bebf3b156d30 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateStageTests.java +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/src/test/java/com/azure/resourcemanager/containerservicefleet/generated/UpdateStageTests.java @@ -16,67 +16,45 @@ public final class UpdateStageTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UpdateStage model = BinaryData.fromString( - "{\"name\":\"ev\",\"groups\":[{\"name\":\"gz\",\"beforeGates\":[{\"displayName\":\"fmvfaxkffeiit\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"zy\",\"type\":\"Approval\"}]},{\"name\":\"hxmzsbbzoggig\",\"beforeGates\":[{\"displayName\":\"ur\",\"type\":\"Approval\"},{\"displayName\":\"xjnspy\",\"type\":\"Approval\"},{\"displayName\":\"koen\",\"type\":\"Approval\"},{\"displayName\":\"knvudwtiukb\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"pocipazyxoegu\",\"type\":\"Approval\"},{\"displayName\":\"npiucgygevqznty\",\"type\":\"Approval\"},{\"displayName\":\"bpizcdrqjsdpydn\",\"type\":\"Approval\"},{\"displayName\":\"xdeoejzic\",\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":764179455,\"beforeGates\":[{\"displayName\":\"gzfbishcbk\",\"type\":\"Approval\"},{\"displayName\":\"deyeamdphagalpbu\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"whonowk\",\"type\":\"Approval\"},{\"displayName\":\"wankixzbi\",\"type\":\"Approval\"},{\"displayName\":\"pu\",\"type\":\"Approval\"}]}") + "{\"name\":\"mgucna\",\"groups\":[{\"name\":\"eoellwptfdygp\",\"beforeGates\":[{\"displayName\":\"ac\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"qrhhu\",\"type\":\"Approval\"}]}],\"afterStageWaitInSeconds\":284689658,\"beforeGates\":[{\"displayName\":\"eqx\",\"type\":\"Approval\"}],\"afterGates\":[{\"displayName\":\"hzxct\",\"type\":\"Approval\"},{\"displayName\":\"bkdmo\",\"type\":\"Approval\"},{\"displayName\":\"ostmgrcf\",\"type\":\"Approval\"}]}") .toObject(UpdateStage.class); - Assertions.assertEquals("ev", model.name()); - Assertions.assertEquals("gz", model.groups().get(0).name()); - Assertions.assertEquals("fmvfaxkffeiit", model.groups().get(0).beforeGates().get(0).displayName()); + Assertions.assertEquals("mgucna", model.name()); + Assertions.assertEquals("eoellwptfdygp", model.groups().get(0).name()); + Assertions.assertEquals("ac", model.groups().get(0).beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.groups().get(0).beforeGates().get(0).type()); - Assertions.assertEquals("zy", model.groups().get(0).afterGates().get(0).displayName()); + Assertions.assertEquals("qrhhu", model.groups().get(0).afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.groups().get(0).afterGates().get(0).type()); - Assertions.assertEquals(764179455, model.afterStageWaitInSeconds()); - Assertions.assertEquals("gzfbishcbk", model.beforeGates().get(0).displayName()); + Assertions.assertEquals(284689658, model.afterStageWaitInSeconds()); + Assertions.assertEquals("eqx", model.beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.beforeGates().get(0).type()); - Assertions.assertEquals("whonowk", model.afterGates().get(0).displayName()); + Assertions.assertEquals("hzxct", model.afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.afterGates().get(0).type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UpdateStage model - = new UpdateStage().withName("ev") - .withGroups( - Arrays - .asList( - new UpdateGroup().withName("gz") - .withBeforeGates(Arrays.asList(new GateConfiguration().withDisplayName("fmvfaxkffeiit") - .withType(GateType.APPROVAL))) - .withAfterGates(Arrays - .asList(new GateConfiguration().withDisplayName("zy").withType(GateType.APPROVAL))), - new UpdateGroup().withName("hxmzsbbzoggig") - .withBeforeGates(Arrays.asList( - new GateConfiguration().withDisplayName("ur").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("xjnspy").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("koen").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("knvudwtiukb").withType(GateType.APPROVAL))) - .withAfterGates(Arrays.asList(new GateConfiguration() - .withDisplayName("pocipazyxoegu") - .withType(GateType.APPROVAL), - new GateConfiguration() - .withDisplayName("npiucgygevqznty") - .withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("bpizcdrqjsdpydn") - .withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("xdeoejzic").withType(GateType.APPROVAL))))) - .withAfterStageWaitInSeconds(764179455) + UpdateStage model = new UpdateStage().withName("mgucna") + .withGroups(Arrays.asList(new UpdateGroup().withName("eoellwptfdygp") .withBeforeGates( - Arrays.asList(new GateConfiguration().withDisplayName("gzfbishcbk").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("deyeamdphagalpbu").withType(GateType.APPROVAL))) + Arrays.asList(new GateConfiguration().withDisplayName("ac").withType(GateType.APPROVAL))) .withAfterGates( - Arrays.asList(new GateConfiguration().withDisplayName("whonowk").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("wankixzbi").withType(GateType.APPROVAL), - new GateConfiguration().withDisplayName("pu").withType(GateType.APPROVAL))); + Arrays.asList(new GateConfiguration().withDisplayName("qrhhu").withType(GateType.APPROVAL))))) + .withAfterStageWaitInSeconds(284689658) + .withBeforeGates(Arrays.asList(new GateConfiguration().withDisplayName("eqx").withType(GateType.APPROVAL))) + .withAfterGates(Arrays.asList(new GateConfiguration().withDisplayName("hzxct").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("bkdmo").withType(GateType.APPROVAL), + new GateConfiguration().withDisplayName("ostmgrcf").withType(GateType.APPROVAL))); model = BinaryData.fromObject(model).toObject(UpdateStage.class); - Assertions.assertEquals("ev", model.name()); - Assertions.assertEquals("gz", model.groups().get(0).name()); - Assertions.assertEquals("fmvfaxkffeiit", model.groups().get(0).beforeGates().get(0).displayName()); + Assertions.assertEquals("mgucna", model.name()); + Assertions.assertEquals("eoellwptfdygp", model.groups().get(0).name()); + Assertions.assertEquals("ac", model.groups().get(0).beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.groups().get(0).beforeGates().get(0).type()); - Assertions.assertEquals("zy", model.groups().get(0).afterGates().get(0).displayName()); + Assertions.assertEquals("qrhhu", model.groups().get(0).afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.groups().get(0).afterGates().get(0).type()); - Assertions.assertEquals(764179455, model.afterStageWaitInSeconds()); - Assertions.assertEquals("gzfbishcbk", model.beforeGates().get(0).displayName()); + Assertions.assertEquals(284689658, model.afterStageWaitInSeconds()); + Assertions.assertEquals("eqx", model.beforeGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.beforeGates().get(0).type()); - Assertions.assertEquals("whonowk", model.afterGates().get(0).displayName()); + Assertions.assertEquals("hzxct", model.afterGates().get(0).displayName()); Assertions.assertEquals(GateType.APPROVAL, model.afterGates().get(0).type()); } } diff --git a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/tsp-location.yaml b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/tsp-location.yaml index 1f2a13ead55a..e556ecdb5c14 100644 --- a/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/tsp-location.yaml +++ b/sdk/containerservicefleet/azure-resourcemanager-containerservicefleet/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/containerservice/Fleet.Management -commit: 05584a1019e75159b0dc70a6751afaa2c77868e6 +commit: d0cd556bd91d2dda700e983c0d253fa025b324c0 repo: Azure/azure-rest-api-specs additionalDirectories: